Thank you guys
g++ solved my problem
Jan-Benedict Glaw wrote:
>
> On Thu, 2008-05-29 14:04:24 -0700, Lopezio <[EMAIL PROTECTED]> wrote:
>> Thank you for your help.I'm a beginer on cpp. I'm programming in
>> windows/dos
>> mode and i get error when i compile the program
>> #include <iostream>
>> int main(){
>> std::cout << "olare" << std::endl;
>> }
>> I get error when i compile the program with gcc ola.cpp -o ola.exe
>> Can you help me?
>
> It would have helped if you had the error message included...
>
> But I know what's missing. Remember what was said? The gcc compiler
> (being a C compiler that's capable of recognizing and compiling C++
> sources) won't include libstdc++ in the linker run. So either add that:
>
> gcc foo.cpp -lstdc++
>
> ...or use g++ to compile and link.
>
> MfG, JBG
>
> --
> Jan-Benedict Glaw [EMAIL PROTECTED]
> +49-172-7608481
> Signature of: Ich hatte in letzter Zeit ein bißchen viel
> Realitycheck.
> the second : Langsam möchte ich mal wieder weiterträumen
> können.
> -- Maximilian Wilhelm (18. Mai 2006,
> #lug-owl.de)
>
>
>
--
View this message in context:
http://www.nabble.com/Program-editor-programming-c%2B%2B-tp17532397p17546848.html
Sent from the gcc - Dev mailing list archive at Nabble.com.