|
From: Andreas M. <and...@sb...> - 2005-10-21 12:52:29
|
Blagoja Gjakovski schrieb: >> Hi, >> I'm not sure, but I think that you must enter path to=20 >> C:\Programme\Microsoft Platform SDK\Lib >> and >> C:\Programme\Microsoft Platform SDK\Include >> in the Dev-Cpp. You can do this by clicking on the Tools / Compiler=20 >> Options menu. Go to "Directories" tab and "Libraries" and "C Includes"= =20 >> (or "C++ Includes") sub-tabs. >> >> Good luck, >> Blagoja >=20 >=20 > I forget, > You can do this also in the Project / Project Options menu. > In the "Directories" tab. >=20 > Blagoja >=20 >=20 Hello Blagoja, I had already set the path in my project. Now I did delete it from there=20 and put it into the compiler options. The linker finds the library I have set as parameter in the=20 project/options/parameters/linker ( -lwtsApi32 ) I am sure because if I change this name I get the error that the file=20 was not found Now it continues to tell me that there is a undefined reference to `WTSEnumerateSessionsA@20' even if the function I use is WTSEnumerateSessionsA Does the compiler mangle the names the way that they are different than=20 the icrosoft one ? Is mangling not used only in c++, my project is c Bye Andreas here the output Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Andreas\wtshost\Makefile.win" F=FChrt 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"=20 -L"C:/Programme/Microsoft Platform SDK/Lib" -mwindows -lwtsApi32 main.o(.text+0x33):main.c: undefined reference to `WTSEnumerateSessionsA@= 20' main.o(.text+0x4b):main.c: undefined reference to `WTSFreeMemory@4' collect2: ld returned 1 exit status make.exe: *** [wtshost.exe] Error 1 Ausf=FChrung beendet |