|
From: SourceForge.net <no...@so...> - 2008-02-09 16:44:52
|
Bugs item #1784372, was opened at 2007-08-29 13:56 Message generated for change (Comment added) made by jimp03 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1784372&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: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Joachim Eibl (joachim99) Assigned to: Nobody/Anonymous (nobody) Summary: Under Vista many files are not found Initial Comment: I installed MinGW-5.1.3.exe on Vista Home Premium and for comparison on XP. I tried to build KDiff3-0.9.92 (kdiff3.sf.net) for Qt4. (I'm the author.) On XP everything works as expected. When building the kdiff3.exe on Vista there is the problem that windres.exe tells me: gcc: installation problem, cannot exec `cc1': No such file or directory After adding the path "C:\MinGW\libexec\gcc\mingw32\3.4.2" I can finish compiling and linking. Then I proceed to building the dll diff_ext_for_kdiff3. Again under XP it works fine but under Vista the final step from dllwrap.exe is the linking via this command: ld --dll -Bdynamic -e _DllMainCRTStartup@12 -o diff_ext_for_kdiff3.dll -s dllcrt2.o crtbegin.o -base-file ./cca04840.base -e _DllMainCRTStartup@12 --image-base 0x62A40000 class_factory.o diff_ext.o server.o diff_ext_for_kdiff3.res -luuid -lole32 -lstdc++ -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt crtend.o Result: ld: dllcrt2.o: No such file: No such file or directory I add the full path names for everything and get it to link via this command: ld --dll -Bdynamic -e _DllMainCRTStartup@12 -o diff_ext_for_kdiff3.dll -s -Lc:\mingw\lib -LC:\MinGW\lib\gcc\mingw32\3.4.2 c:\mingw\lib\dllcrt2.o C:\MinGW\lib\gcc\mingw32\3.4.2\crtbegin.o --base-file ./cca04224.base -e _DllMainCRTStartup@12 --image-base 0x62A40000 class_factory.o diff_ext.o server.o diff_ext_for_kdiff3.res -luuid -lole32 -lstdc++ -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt C:\MinGW\lib\gcc\mingw32\3.4.2\crtend.o Why are ld and windres not able to figure out the paths for themselves under Vista as they can under XP? Best regards, Joachim ---------------------------------------------------------------------- Comment By: Jim Pattee (jimp03) Date: 2008-02-09 09:44 Message: Logged In: YES user_id=826897 Originator: NO I have the same problem with "ld" not finding files on Vista. I have MinGW installed in C:\Programs\MinGW. I was able to compile by creating a directory C:\MinGW\lib (the default install path) and copying the missing files to it. People having MinGW installed in the default directory might not have this problem. The files currently included in C:\MinGW\lib are crt2.o, crtbegin.o, crtend.o, and dllcrt2.o. Like Joachim said, there was no problem under XP??? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1784372&group_id=2435 |