From: SourceForge.net <no...@so...> - 2005-01-19 05:40:23
|
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 |