Re: [Dev-C++] Newbie question on issue / bug reporting
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Steve H. <st...@sj...> - 2005-08-11 17:19:52
|
Per Westermark wrote: >Note that Libs= is empty and that the linking is done using the full >library name (excluding path). > >Note that the libraries are not specified with the -l parameter, so gcc >will not care about any library paths (-Lxxx). > >An expected link line should have looked like: > >gcc ... -L"C:/Dev-Cpp/lib -lole32 -loleaut32 > >/Per W > >On Thu, 11 Aug 2005, Steve Higham wrote: > > > >>sudhir kumar wrote: >> >>[Project] >> >>Libs= >> >>Linker=libole32.a_@@_liboleaut32.a _@@_ >> >>This is now portable. However is does not compile. The compile log is as >>follows: >> >>Compiler: Default compiler >> >>Building Makefile: "C:\Documents and Settings\Steve Higham\My >>Documents\Dev\ConsoleTest\Makefile.win" >> >>Executing make clean >> >>rm -f main.o ConsoleTest.exe >> >>g++.exe -D__DEBUG__ -c main.cpp -o main.o >>-I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" >>-I"C:/Dev-Cpp/include/c++/3.4.2/backward" >>-I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" >>-I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -g3 >> >>g++.exe -D__DEBUG__ main.o -o "ConsoleTest.exe" -L"C:/Dev-Cpp/lib" >>libole32.a liboleaut32.a -g3 >> >>g++.exe: libole32.a: No such file or directory >> >>g++.exe: liboleaut32.a: No such file or directory >> >>make.exe: *** [ConsoleTest.exe] Error 1 >> >>Execution terminated >> >> >>I don't understand why this fails. The -L switch identifies the correct >>directory (C:/Dev-Cpp/lib) and the lib names are correct. This is the issue. >> >>It's probably not the most important issue in the world. But it would be >>nice to resolve it. >> >>Kind Regards, >> >>Steve >> >>-- >> >>Steve Higham >> >>› st...@sj... <mailto:st...@sj...> >> >> > > > > Per, You're quite right. Replacing "C:\Dev-Cpp\lib\libole32.a" with "-lole32" in the Parameters - Linker box has resolved the issue. Many Thanks, Steve -- Steve Higham › st...@sj... <mailto:st...@sj...> |