|
From: <cx...@nt...> - 2005-01-19 09:36:14
|
I have similar problems. It seems like compiler is not linking in standard libraries... Mirek SourceForge.net wrote: >Read and respond to this message at: >https://sourceforge.net/forum/message.php?msg_id=2946986 >By: neo_in_matrix > >After installing Candidate: MinGW-3.2.0-rc-2.exe, the following *simple* program >won't compile! > >#include "main.h" //which has only one line: #include<cstdio> > >int main(int /* argc */, char * * /* argv */) >{ > puts("Hello!"); > printf("Press ENTER to end..."); > getchar(); > > return 0; >} > >C:\MinGW\bin\g++ -BC:\Borland\CBX\MinGW\bin -o >C:\Borland\CBX\samples\welcome\windows\Release_Build\Welcome.exe >windows\Release_Build\main.obj >entry symbol _mainCRTStartup; defaulting to 00401000 >' >windows\Release_Build\main.obj(.text+0xe):main.cpp: undefined reference >to `puts' >: undefined reference to `printf' >windows\Release_Build\main.obj(.text+0x1e):main.cpp: undefined reference to >`_imp___iob' >\main.obj(.text+0x2f):main.cpp: undefined reference to `_imp___iob' >to `_imp___iob' >windows\Release_Build\main.obj(.text+0x3e):main.cpp: undefined reference to >`_filbuf' >collect2: ld returned 1 exit status >windows\Release_Build\main.obj(.text+0x39):main.cpp: undefined reference > GNU C++ Linker exited with error code: 1 >Build cancelled due to errors > > >______________________________________________________________________ >You are receiving this email because you elected to monitor this forum. >To stop monitoring this forum, login to SourceForge.net and visit: >https://sourceforge.net/forum/unmonitor.php?forum_id=286529 > > >------------------------------------------------------- >The SF.Net email is sponsored by: Beat the post-holiday blues >Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. >It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt >_______________________________________________ >MinGW-users mailing list >Min...@li... > >You may change your MinGW Account Options or unsubscribe at: >https://lists.sourceforge.net/lists/listinfo/mingw-users > > > > |