|
From: Alfred P. R. <al...@ya...> - 2005-10-17 20:35:11
|
Hi Andreas, The only thing that I can obviously see is the text: -lC:/Programme/Microsoft Platform SDK/Lib/WtsApi32.Lib As gcc is using the Unix convention for path names, the spaces in the path name will cause a problem. Try single quoting it as -l'C:/Programme/Microsoft Platform SDK/Lib/WtsApi32.Lib'. If that doesn't work, just physically copy it to the lib folder of dev-cpp. The other possibility is that if you're adding this to the to the linker parameters with the -l, that -l tries to add the prefix lib and suffix .a to the library, making it actually libWtsApi32.Lib.a which won't be found. As an example my use of -lgimp-2.0 in Project Options->Parameters->Linker actually refers to libgimp-2.0.dll.a in the default lib directory. Andreas Moroder <and...@sb...> wrote: Hallo, I try to build a small application that uses windows funtions that are not in the standard libs but are in the libs of the MS SDK. I did set the path to the libs and also the name of the lib I want to link with, but I get the following log Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Andreas\wtshost\Makefile.win" Führt make... aus make.exe -f "C:\Dev-Cpp\Andreas\wtshost\Makefile.win" all gcc.exe main.o -o "wtshost.exe" -L"C:/Dev-Cpp/lib" -L"C:/Programme/Microsoft Platform SDK/Lib/" -mwindows -l "C:/Programme/Microsoft Platform SDK/Lib/WtsApi32.Lib" C:\Dev-Cpp\Bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lC:/Programme/Microsoft Platform SDK/Lib/WtsApi32.Lib collect2: ld returned 1 exit status make.exe: *** [wtshost.exe] Error 1 I am sure the path is OK. I tried with the -L phat and -lWtsApi32.Lib without the full path, but I get the same error. What's wrong in my projec tconfiguration ? Bye Andreas ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users Alfred P. Reaud |