From: Luke D. <cod...@ho...> - 2003-02-06 09:16:14
|
>From: "Locrian" <lo...@fr...> >To: <min...@li...> >Subject: [Mingw-users] windows -> linux cross compiler >Date: Thu, 6 Feb 2003 09:22:38 +0200 > >Hello. >I have already build binutils and gcc under Windows (msys) as a cross >compiler to Linux. >I have a problem with standard include and lib folder. >The compiler failed to find the standard include files under include folder >and the same for the lib. >If i pass to gcc the full path to include folder >(-I/path/to/install/dir/include) and lib, i can get compile my program with >no problems. >How can i configure that toolchain for this problem? > >I apologize for my pure English. >Thanks. > What is the output of "gcc -v -c hello.c" ? The problem may be that the prefix directory is hardcoded into the compiler and if you configured using a POSIX style MSYS path (like --prefix=/path/to/install/dir) then the compiler won't find it. The MinGW native compiler gets around this by calculating the prefix directory relative to gcc.exe, but this might not be enabled for other targets. Ideally it will be easier if you figure out how to enable this, but alternatively you may also be able to configure using a Windows style prefix with forward slashes, like "c:/path/to/install/dir". Luke _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail |