Hi !
It's me again... :mrgreen:
So, instead of trying to search where I made mistakes, I still need your help : I don't understand why, when I compile my prog in Openwatcom directly by command line it works perfectly with no error, and when I use C::B to do the same (same prog, same flag to compile, etc) I always have lots of errors, even whith latest version of C::B (SVN4564) :
-------------- Build: Debug in my_starfield ---------------
wcl386.exe -q -c -l=dos4g -wx -d2 -iC:\watcom\h -iC:\watcom\h\nt -fo=obj\Debug\main.obj main.c
wlink.exe system dos4g debug watcom all LIBP C:\watcom\lib386;C:\watcom\lib386\nt file obj\Debug\main.obj name bin\Debug\my_starfield.exe
Open Watcom Linker Version 1.7
Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
loading object files
searching libraries
Error! E2028: _PeekConsoleInputA@16 is an undefined reference
Error! E2028: _ReadConsoleInputA@16 is an undefined reference
Error! E2028: _WriteFile@20 is an undefined reference
Error! E2028: _GetEnvironmentStrings@0 is an undefined reference
Error! E2028: _GetVersion@0 is an undefined reference
Error! E2028: _GetModuleFileNameA@12 is an undefined reference
Error! E2028: _GetCommandLineA@0 is an undefined reference
Error! E2028: _GetCommandLineW@0 is an undefined reference
Error! E2028: _FreeEnvironmentStringsA@4 is an undefined reference
Error! E2028: _GetModuleHandleA@4 is an undefined reference
Error! E2028: _ExitProcess@4 is an undefined reference
Error! E2028: _CreateFileA@28 is an undefined reference
Error! E2028: _SetStdHandle@8 is an undefined reference
Error! E2028: _CreateEventA@16 is an undefined reference
Error! E2028: _GetStdHandle@4 is an undefined reference
Error! E2028: _CloseHandle@4 is an undefined reference
Error! E2028: _GetModuleFileNameW@12 is an undefined reference
Error! E2028: _MultiByteToWideChar@24 is an undefined reference
Error! E2028: _LoadLibraryA@4 is an undefined reference
Error! E2028: _GetProcAddress@8 is an undefined reference
Error! E2028: _SetUnhandledExceptionFilter@4 is an undefined reference
Error! E2028: _UnhandledExceptionFilter@4 is an undefined reference
Error! E2028: _VirtualQuery@12 is an undefined reference
Error! E2028: _VirtualAlloc@16 is an undefined reference
Error! E2028: _GetCurrentThreadId@0 is an undefined reference
Error! E2028: _SetConsoleCtrlHandler@8 is an undefined reference
Error! E2028: _VirtualFree@12 is an undefined reference
Error! E2028: _GetFileType@4 is an undefined reference
Error! E2028: _SetEnvironmentVariableA@8 is an undefined reference
Error! E2028: _CharUpperA@4 is an undefined reference
Error! E2028: _SetEnvironmentVariableW@8 is an undefined reference
Error! E2028: _GetACP@0 is an undefined reference
Error! E2028: _GetOEMCP@0 is an undefined reference
Error! E2028: _GetCPInfo@8 is an undefined reference
Error! E2028: _WideCharToMultiByte@32 is an undefined reference
creating a DOS/4G executable
file clib3r.lib(kbhitwnt): undefined symbol _PeekConsoleInputA@16
file clib3r.lib(kbhitwnt): undefined symbol _ReadConsoleInputA@16
file clib3r.lib(xmsgwnt): undefined symbol _WriteFile@20
file clib3r.lib(mainwnt): undefined symbol _GetEnvironmentStrings@0
file clib3r.lib(mainwnt): undefined symbol _GetVersion@0
file clib3r.lib(mainwnt): undefined symbol _GetModuleFileNameA@12
file clib3r.lib(mainwnt): undefined symbol _GetCommandLineA@0
file clib3r.lib(mainwnt): undefined symbol _GetCommandLineW@0
file clib3r.lib(mainwnt): undefined symbol _FreeEnvironmentStringsA@4
file clib3r.lib(mainwnt): undefined symbol _GetModuleHandleA@4
file clib3r.lib(mainwnt): undefined symbol _ExitProcess@4
file clib3r.lib(conutwnt): undefined symbol _CreateFileA@28
file clib3r.lib(hdlman): undefined symbol _SetStdHandle@8
file clib3r.lib(hdlman): undefined symbol _CreateEventA@16
file clib3r.lib(hdlman): undefined symbol _GetStdHandle@4
file clib3r.lib(hdlman): undefined symbol _CloseHandle@4
file clib3r.lib(getmodfn): undefined symbol _GetVersion@0
file clib3r.lib(getmodfn): undefined symbol _GetModuleFileNameW@12
file clib3r.lib(getmodfn): undefined symbol _GetModuleFileNameA@12
file clib3r.lib(getmodfn): undefined symbol _MultiByteToWideChar@24
file clib3r.lib(excptwnt): undefined symbol _LoadLibraryA@4
file clib3r.lib(excptwnt): undefined symbol _GetProcAddress@8
file clib3r.lib(excptwnt): undefined symbol _WriteFile@20
file clib3r.lib(excptwnt): undefined symbol _SetUnhandledExceptionFilter@4
file clib3r.lib(excptwnt): undefined symbol _UnhandledExceptionFilter@4
file clib3r.lib(excptwnt): undefined symbol _ExitProcess@4
file clib3r.lib(stklmwnt): undefined symbol _VirtualQuery@12
file clib3r.lib(grownear): undefined symbol _VirtualAlloc@16
file clib3r.lib(mthrdini): undefined symbol _GetCurrentThreadId@0
file clib3r.lib(signlwnt): undefined symbol _SetConsoleCtrlHandler@8
file clib3r.lib(nheapmin): undefined symbol _VirtualFree@12
file clib3r.lib(isattwnt): undefined symbol _GetFileType@4
file clib3r.lib(putenv): undefined symbol _SetEnvironmentVariableA@8
file clib3r.lib(mbcupper): undefined symbol _CharUpperA@4
file clib3r.lib(mbtowc): undefined symbol _MultiByteToWideChar@24
file clib3r.lib(setenvar): undefined symbol _SetEnvironmentVariableA@8
file clib3r.lib(setenvar): undefined symbol _SetEnvironmentVariableW@8
file clib3r.lib(mbinit): undefined symbol _GetACP@0
file clib3r.lib(mbinit): undefined symbol _GetOEMCP@0
file clib3r.lib(mbinit): undefined symbol _GetCPInfo@8
file clib3r.lib(wctomb): undefined symbol _WideCharToMultiByte@32
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
After many searchs, I've found in a french forum an old post (2003) who explain that this kind of problem appears in Openwatcom when path is uncorrectly notified... But my path is:
PATH=C:\WATCOM\BINNT;C:\WATCOM\BINW
So, where is my error