Program editor programming c++
Jan-Benedict Glaw
jbglaw@lug-owl.de
Thu May 29 21:18:00 GMT 2008
On Thu, 2008-05-29 14:04:24 -0700, Lopezio <geral@mariolopes.com> 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 jbglaw@lug-owl.de +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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20080529/4bb93e4c/attachment.sig>
More information about the Gcc
mailing list