Board index » delphi » HELP! unresolved external '__....__' referenced from c:\....

HELP! unresolved external '__....__' referenced from c:\....

How can I get rid of 'unresolved external
I need to compile a sample program 'isync.c' ... This program come from IBM,
it is a sample program that shows how work an API to communicate with a
DB2Everyplace SyncServer.

Here is the C:\Borland\BCC55\Bin\ilink32.cfg file:
-L"C:\Borland\Bcc55\lib;C:\Borland\Bcc55\lib\PSDK;C:\Borland\Bcc55\Marcel\li
b"

Here is the C:\Borland\BCC55\Bin\bcc32.cfg file:
-I"C:\Borland\Bcc55\include;C:\Borland\Bcc55\Marcel\Include"
-L"C:\Borland\Bcc55\lib;C:\Borland\Bcc55\lib\PSDK;C:\Borland\Bcc55\Marcel\In
clude"

Here is the compile compile command line :
bcc32 /c isync.c

Here is the command line :
ilink32 isync.obj c0x32.obj,isync.exe,,isynce.lib

Here is the message :
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '___CRTL_VCL_Init' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_MEM_UseBorMM' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_VCLLIB_Linkage' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__ExceptInit' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'GetModuleHandleA' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__startup' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__GetExceptDLLinfoInternal' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'HeapAlloc' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_SetValue' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_InitThread' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_Alloc' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_GetValue' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'GetProcessHeap' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external 'HeapFree' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_ExitThread' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_Free' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '_isyncOpen' referenced from
C:\BORLAND\BCC55\MARCEL\ISYNC.OBJ
Error: Unresolved external '_isyncSetPref' referenced from
C:\BORLAND\BCC55\MARCEL\ISYNC.OBJ
Error: Unresolved external '_isyncGetFirstApp' referenced from
C:\BORLAND\BCC55\MARCEL\ISYNC.OBJ
Error: Unresolved external '_isyncGetNextApp' referenced from
C:\BORLAND\BCC55\MARCEL\ISYNC.OBJ
Error: Unresolved external '_isyncGetPref' referenced from
C:\BORLAND\BCC55\MARCEL\ISYNC.OBJ
Error: Unresolved external '__streams' referenced from
C:\BORLAND\BCC55\MARCEL\ISYNC.OBJ
Error: Unresolved external '__fgetc' referenced from
C:\BORLAND\BCC55\MARCEL\ISYNC.OBJ
Error: Unresolved external '_printf' referenced from
C:\BORLAND\BCC55\MARCEL\ISYNC.OBJ
Error: Unresolved external '_isyncSetListener' referenced from
C:\BORLAND\BCC55\MARCEL\ISYNC.OBJ
Error: Unresolved external '_isyncGo' referenced from
C:\BORLAND\BCC55\MARCEL\ISYNC.OBJ
Error: Unresolved external '_isyncSetSyncMode' referenced from
C:\BORLAND\BCC55\MARCEL\ISYNC.OBJ
Error: Unresolved external '_isyncClose' referenced from
C:\BORLAND\BCC55\MARCEL\ISYNC.OBJ
Error: Unresolved external '__matherr' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__matherrl' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__fmode' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__argv_expand_ptr' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__wargv_expand_ptr' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_setargv' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_exitargv' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_wsetargv' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__handle_wexitargv' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__fileinfo' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__setargv__' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__setenvp__' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ
Error: Unresolved external '__turboFloat' referenced from
C:\BORLAND\BCC55\LIB\C0X32.OBJ

 

Re:HELP! unresolved external '__....__' referenced from c:\....


I don't know specifically why you got all of those messages but some of them
are from problems with your command line.

Quote
> bcc32 /c isync.c

should be
  bcc32 /c /W isync.c
  if it is a Windows GUI program

Quote
> ilink32 isync.obj c0x32.obj,isync.exe,,isynce.lib

should be
  ilink32 /Tpe/aa/c c0x32 isync,isync,,isynce import32 cw32
  if it is a Windows GUI program
and
  ilink32 /Tpe/ap/c c0x32 isync,isync,,isynce import32 cw32
  if it is a Windows console mode (text mode) program

-The .obj, .lib and .exe extensions in the names are ok, but duplicate what
the linker assumes.
-The startup code must be listed first
-The import library for Windows and the runtime library must be listed

You have items listing the VCL in these messages.  The VCL is unique to C++
Builder, and is not found in Borland C++, the subject of these newsgroups.
Please direct any replies or follow up messages to the C++ Builder groups,
groups with cppbuilder in the group name such as
borland.public.cppbuilder.commandlinetools

If you in fact are using the VCL, cp32mt should be used instead of cw32
and -WM should be added as the leftmost option on the bcc32 command line

.  Ed

Other Threads