From: SourceForge.net <no...@so...> - 2007-07-06 02:10:08
|
Bugs item #1686087, was opened at 2007-03-22 15:02 Message generated for change (Comment added) made by hckr83 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1686087&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Vista Issue Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jordan (hckr83) Assigned to: Nobody/Anonymous (nobody) Summary: no include search path Initial Comment: I have been trying everythign to get this thing to work, and now I'm stumped.. When I try compiling a simple file like #include <stdio.h> ... printf("hello"); ... it will freak out and say no include search path in which to search for stdio.h why the crap is this!? I thought it was installed properly! if all else, then how can I manually add an include search path(also provide me something for lib search path) ---------------------------------------------------------------------- >Comment By: Jordan (hckr83) Date: 2007-07-06 02:10 Message: Logged In: YES user_id=1183483 Originator: YES I got around it by putting all my projects onto C:, and putting "C:\mingw\libexec\gcc\mingw32\3.4.5;" into path, nothing to modify in makefiles.. ---------------------------------------------------------------------- Comment By: Marc Andrysco (marc_andrysco) Date: 2007-07-06 02:01 Message: Logged In: YES user_id=1570146 Originator: NO I ran into the same problem. Took me two days, but I managed to find a way to get things to compile. I had to explicitly include all the paths for libraries, includes, and binaries. I have cygwin installed to C:\cygwin and MinGW installed to C:\cygwin\mingw. I had call 'export PATH=$PATH:/mingw/bin:/mingw/libexec/gcc/mingw32/3.4.2' in order to get the libraries to work correctly. As for the includes, I added '-I/cygwin/mingw/include -I/cygwin/mingw/lib/gcc/mingw32/3.4.2/include' when compiling my source files. To resolve the paths for the libraries, I added '-L/cygwin/mingw/lib -L/cygwin/mingw/lib/gcc/mingw32/3.4.2 -I/cygwin/mingw/lib/gcc/mingw32/3.4.2'. Lastly, the files '/mingw/lib/crt2.o', '/mingw/lib/gcc/mingw32/3.4.2/crtbegin.o', and '/mingw/lib/gcc/mingw32/3.4.2/crtend.o' needed to be copied to the local directory. I will be adding a new Makefile to my projects in order to cover these changes. From what it looks like, MinGW on Windows can't figure out where anything is on its own. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1686087&group_id=2435 |