If you called gcc, add -lstdc++ to the command line.. and possibly the path to your c++ library if the LD_LIBRARY_PATH environment variable has not been set.
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
Problems installing GCC on Windows
Ok, it turns out I had conflicting copies of the libstc++.a (and other libs) in my cygwin directory, and I had to specify which one I was using with the -L switch before it would recognize the proper one. I got it to work now, but the LD_LIBRARY_PATH environment variable seems to have no effect.
quote:Original post by Fruny
If you called gcc, add -lstdc++ to the command line.. and possibly the path to your c++ library if the LD_LIBRARY_PATH environment variable has not been set.
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
You the man that fixed my hassles with GCC 3.1 as well (never needed that tag with 2.95 for some reason and never thought to use it)
Ok, the tools are all working perfectly now... but I still have one thing I cannot figure out...
How do I compile my code into a .a file that I can use a lib include? I tried "-o libmylib.a" but it doens''t recognise this file as a library when I try to include it as a lib (using "-lmylib") in another file.
Anyone know how to do this?
How do I compile my code into a .a file that I can use a lib include? I tried "-o libmylib.a" but it doens''t recognise this file as a library when I try to include it as a lib (using "-lmylib") in another file.
Anyone know how to do this?
You build object files (.o) with the -static switch and then use ar rcs libname.a object files.
Ok, now I have a new problem =/ I''m trynna compile a windows application (using the "-mwindows" option), and whenever I try to link my project, it tells me that it can''t find the Entry Point "_WinMainCRTStartup", the program still runs, but it runs through a console first, and messes up the command line options sent to the resulting program. Why can''t it find the proper entry point, what things have I missed here?
I''m sorry if these questions seem juvenile, but I really don''t know where else to turn here.
I''m sorry if these questions seem juvenile, but I really don''t know where else to turn here.
Try explicitly linking with libmingw32.a (-lmingw32). I think that's where the 'real' entry point for WinMain is declared. Edit: I can't spell .
[edited by - Null and Void on June 29, 2002 6:32:00 PM]
[edited by - Null and Void on June 29, 2002 6:32:00 PM]
And if that doesn''t work, it''s probably a compatibility error between Mingw32 and GCC 3.whatever -- since Mingw and GCC are being developed by two different teams, it stands to reason that they won''t be always 100% compatible. Sorry I don''t have any suggestions if that does turn out to be the case.
Twilight Dragon
Win32 API Expert
www.freewebz.com/j-world
Twilight Dragon
Win32 API Expert
www.freewebz.com/j-world
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement