From: SourceForge.net <no...@so...> - 2006-05-24 15:13:37
|
Bugs item #1493668, was opened at 2006-05-23 23:36 Message generated for change (Comment added) made by infidel You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1493668&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: website Group: Waiting User Response Status: Pending Resolution: None Priority: 5 Submitted By: Ale Vesely (alevesely) Assigned to: Earnie Boyd (earnie) Summary: Install directory for MinGW must be C:\mingw, or linkd Initial Comment: Hi, please amend that page in http://www.mingw.org/MinGWiki/index.php/Install%20MinGW where it says "2. Create a directory to install all the stuff into..." In facts the directory MUST be the root directory, or gcc won't work. I everytime got fooled by the fstab feature of msys. It is important that new users understand that the fstab mounts are only seen by the shell: native programs, including gcc, know nothing about it. Since Windows 2000 one can soft link a directory, a JUNCTION in Windows parlance and overcome this limitation, e.g. linkd C:\mingw C:\myfancyplace\MinGW linkd D:\mingw C:\myfancyplace\MinGW that also solves the problem of compiling from a different drive. (Linkd.exe can be downloaded with the resource kit, othe sysinternals alternatives may exist.) ---------------------------------------------------------------------- >Comment By: Luke Dunstan (infidel) Date: 2006-05-24 23:13 Message: Logged In: YES user_id=30442 You must install gcc, w32api and mingw-runtime in the same tree to allow it to find the headers and libraries, not in separate subdirectories. ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2006-05-24 19:07 Message: Logged In: YES user_id=15438 You mention HOME directory, are you using MSYS-1.0.10? Did you install MSYS in the same directories as the MinGW binaries? If, yes, that is your problem and the "Install MinGW" page isn't discussing MSYS. MSYS-1.0.11 will allow you to install MinGW and MSYS together. ---------------------------------------------------------------------- Comment By: Ale Vesely (alevesely) Date: 2006-05-24 15:06 Message: Logged In: YES user_id=262065 I had no spaces in paths, except for HOME. Without links, I've been able to compile by specifying -I, but then I couldn't link. Perhaps I also got something else wrong (e.g. I have both gcc and mingw32 as subdirectories of mingw)? I attach the output of gcc in all 3 cases: -naive, -using -I, -with a junction It contains lines like ignoring nonexistent directory "/mingw/include" that inspired the soft links. ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2006-05-24 07:32 Message: Logged In: YES user_id=15438 Your advice isn't correct and your problem is more likely to be spaces in the path name. I have my mingw installed in c:/opt/mingw. I often build in e:/usr/src. Can you please check to see if spaces in the path name is your problem? Earnie ---------------------------------------------------------------------- Comment By: Ale Vesely (alevesely) Date: 2006-05-24 01:48 Message: Logged In: YES user_id=262065 Yes, sysinternals has such an utility at http://www.sysinternals.com/Utilities/Junction.html source code is available ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1493668&group_id=2435 |