|
From: Andreas M. <and...@sb...> - 2005-10-21 12:00:49
|
Alfred P. Reaud schrieb: > 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. Hello Alfred, I copied the file to the lib directory, but now i get this error 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 any hint ? Bye Andreas |