i have no link script. i just entered hbmk ./test.prg
and test.exe was created. Ok. your right. i just tried hbmak -gtwin ./test.prg and it worked. looks like gtnul is being talen as the default. but trying for wince by executing hbcemk -gtwin ./test.prg i get the following errors C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x2f4): undefined reference to `GetNumberOfConsoleMouseButtons' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x424): undefined reference to `GetNumberOfConsoleInputEvents' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x8c4): undefined reference to `ReadConsoleInputW' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x10b4): undefined reference to `GetLargestConsoleWindowSize' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x10e4): undefined reference to `GetLargestConsoleWindowSize' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1110): undefined reference to `GetConsoleTitleW' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1168): undefined reference to `SetConsoleTitleW' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x12bc): undefined reference to `SetConsoleCtrlHandler' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x12c8): undefined reference to `SetConsoleCtrlHandler' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x12dc): undefined reference to `SetConsoleMode' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x12f0): undefined reference to `SetConsoleMode' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1330): undefined reference to `GetConsoleScreenBufferInfo' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1448): undefined reference to `ReadConsoleOutputW' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x16c4): undefined reference to `SetConsoleCursorInfo' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x172c): undefined reference to `SetConsoleCursorPosition' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x17d0): undefined reference to `WriteConsoleOutputW' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x18a0): undefined reference to `GetLargestConsoleWindowSize' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1904): undefined reference to `SetConsoleScreenBufferSize' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1928): undefined reference to `SetConsoleWindowInfo' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x193c): undefined reference to `SetConsoleScreenBufferSize' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1950): undefined reference to `SetConsoleWindowInfo' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x19c0): undefined reference to `SetConsoleScreenBufferSize' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x19fc): undefined reference to `SetConsoleWindowInfo' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1a10): undefined reference to `SetConsoleCtrlHandler' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1b18): undefined reference to `SetConsoleCtrlHandler' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1b44): undefined reference to `AllocConsole' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1be4): undefined reference to `GetConsoleScreenBufferInfo' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1c3c): undefined reference to `SetConsoleWindowInfo' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1c50): undefined reference to `SetConsoleScreenBufferSize' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1c64): undefined reference to `GetConsoleMode' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1c70): undefined reference to `GetConsoleMode' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1c84): undefined reference to `SetConsoleMode' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1c88): undefined reference to `FreeConsole' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1d74): undefined reference to `SetConsoleCtrlHandler' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1d80): undefined reference to `SetConsoleCtrlHandler' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1d90): undefined reference to `SetConsoleMode' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1da0): undefined reference to `SetConsoleMode' C:/msys/1.0/local/arm-wince-mingwce-harbour/lib/libgtwin.a(gtwin.o):gtwin.c:(.text+0x1df0): undefined reference to `SetConsoleCursorInfo' collect2: ld returned 1 exit status Pritpal Bedi wrote: > > Show up your link script. > I suspect you are are linking gtnul instead of gtwin. > > Regards > Pritpal Bedi > > -- View this message in context: http://www.nabble.com/wince-tp20236568p20409496.html Sent from the Harbour - Dev mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour