From: <ef...@gm...> - 2002-11-22 23:34:39
|
Hi all, found a ntp client service which comes as a console exe and a cpl. After s= olving some minor problems (struct in winsvc.h missing; see winsvc2.h in m= y archive) I got the exe compiled and linked, but have problems with the c= ontrol panel cpl: c++ -s --dll --enable-stdcall-fixup -o ntptime.cpl ntptime-cpl.o ntptime.= res - lcomctl32 ntptime-cpl.def Warning: resolving _CPlApplet by linking to _CPlApplet@16 Use --enable-stdcall-fixup to disable these warnings Use --disable-stdcall-fixup to disable these fixups C:/PRG/MINGW/BIN/../lib/gcc-lib/mingw32/2.95.3-5/../../../libmingw32.a(mai= n.o)(. text+0x8d):main.c: undefined reference to `WinMain@16' C:\PRG\MINGW\BIN\MAKE.EXE: *** [ntptime.cpl] Error 1 what's the problem? I've compiled it with MSVC and works fine, and the lin= ker gets a switch /dll, so how can I tell this g++/ld?? here you can get the source with Makefile.gcc for MingW32 to recreate the = problem if necessary: http://www.gknw.de/development/samples/mingw32/ntp.zip thanks, Guenter. |