[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: RE: linking errors subversion with vc6 c++

From: Matt Daniel <Matt.Daniel_at_invetech.com.au>
Date: 2005-05-23 05:04:54 CEST

I change to use libdb43d.lib instead of libdb43sd.lib and it is all linking now
 
thanks
 
Matt

-----Original Message-----
From: Matt Daniel
Sent: Monday, 23 May 2005 1:03 PM
To: Matt Daniel; Svn_Users (E-mail)
Subject: RE: RE: linking errors subversion with vc6 c++

I have changed my settings to use mutlithreaded dll and now I have these
 I will try the diff libs for berkley
 
thanks
Matt
 
Linking...
   Creating library Debug/DMSPlugin.lib and object Debug/DMSPlugin.exp
libdb43sd.lib(qam_files.obj) : error LNK2001: unresolved external symbol __pctype
libdb43sd.lib(env_open.obj) : error LNK2001: unresolved external symbol __pctype
libdb43sd.lib(db_pr.obj) : error LNK2001: unresolved external symbol __pctype
libdb43sd.lib(log.obj) : error LNK2001: unresolved external symbol __pctype
libdb43sd.lib(os_abs.obj) : error LNK2001: unresolved external symbol __pctype
libdb43sd.lib(qam_files.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libdb43sd.lib(env_open.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libdb43sd.lib(db_pr.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libdb43sd.lib(log.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libdb43sd.lib(os_abs.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
Debug/DMSPlugin.dll : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
 
DMSPlugin.dll - 11 error(s), 6 warning(s)

-----Original Message-----
From: Matt Daniel
Sent: Monday, 23 May 2005 11:58 AM
To: Matt Daniel; Svn_Users (E-mail)
Subject: RE: linking errors subversion with vc6 c++

if I remove msvcrtd.lib and add libcmt.lib I then get the following errors
DMSPlugin.obj : error LNK2001: unresolved external symbol __CrtDbgReport
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __CrtDbgReport
libneon.lib(ne_locks.obj) : error LNK2001: unresolved external symbol __imp__strnicmp
OLDNAMES.lib(strnicmp.obi) : error LNK2001: unresolved external symbol __imp__strnicmp
libsvn_ra-1.lib(ra_loader.obj) : error LNK2001: unresolved external symbol __imp__strnicmp
libsvn_ra_svn-1.lib(client.obj) : error LNK2001: unresolved external symbol __imp__strnicmp
libneon.lib(ne_uri.obj) : error LNK2001: unresolved external symbol __imp__strnicmp
libneon.lib(ne_xml.obj) : error LNK2001: unresolved external symbol __imp__strnicmp
libsvn_ra_dav-1.lib(session.obj) : error LNK2001: unresolved external symbol __imp__stricmp
libsvn_subr-1.lib(config.obj) : error LNK2001: unresolved external symbol __imp__stricmp
libsvn_subr-1.lib(subst.obj) : error LNK2001: unresolved external symbol __imp__stricmp
OLDNAMES.lib(stricmp.obi) : error LNK2001: unresolved external symbol __imp__stricmp
libsvn_subr-1.lib(cmdline.obj) : error LNK2001: unresolved external symbol __imp__fputs
libsvn_subr-1.lib(config_win.obj) : error LNK2001: unresolved external symbol __imp___wfopen
OLDNAMES.lib(strcmpi.obi) : error LNK2001: unresolved external symbol __imp__strcmpi
libneon.lib(ne_xml.obj) : error LNK2001: unresolved external symbol __imp__strcmpi
libneon.lib(ne_locks.obj) : error LNK2001: unresolved external symbol __imp__strcmpi
libneon.lib(ne_compress.obj) : error LNK2001: unresolved external symbol __imp__strcmpi
libneon.lib(ne_basic.obj) : error LNK2001: unresolved external symbol __imp__strcmpi
libneon.lib(ne_openssl.obj) : error LNK2001: unresolved external symbol __imp__strcmpi
libneon.lib(ne_request.obj) : error LNK2001: unresolved external symbol __imp__strcmpi
libneon.lib(ne_auth.obj) : error LNK2001: unresolved external symbol __imp__strcmpi
libneon.lib(ne_uri.obj) : error LNK2001: unresolved external symbol __imp__strcmpi
libneon.lib(ne_request.obj) : error LNK2001: unresolved external symbol __imp__fstat
OLDNAMES.lib(fstat.obi) : error LNK2001: unresolved external symbol __imp__fstat
libneon.lib(ne_request.obj) : error LNK2001: unresolved external symbol __imp__lseek
OLDNAMES.lib(lseek.obi) : error LNK2001: unresolved external symbol __imp__lseek
libneon.lib(ne_locks.obj) : error LNK2001: unresolved external symbol __imp__strdup
OLDNAMES.lib(strdup.obi) : error LNK2001: unresolved external symbol __imp__strdup
libneon.lib(ne_basic.obj) : error LNK2001: unresolved external symbol __imp__write
OLDNAMES.lib(write.obi) : error LNK2001: unresolved external symbol __imp__write
libneon.lib(ne_md5.obj) : error LNK2001: unresolved external symbol __imp__fread
libneon.lib(ne_dates.obj) : error LNK2001: unresolved external symbol __imp__mktime
OLDNAMES.lib(fstat.obi) : error LNK2001: unresolved external symbol __imp___fstat
Debug/DMSPlugin.dll : fatal error LNK1120: 13 unresolved externals
Error executing link.exe.
 
DMSPlugin.dll - 37 error(s), 53 warning(s)

 
if I have both then I get
 
Q:\DMSPlugin\DMSPlugin_code\DMSQueries.cpp(109) : warning C4700: local variable 'ignore_externals' used without having been initialized
Q:\DMSPlugin\DMSPlugin_code\DMSQueries.cpp(109) : warning C4700: local variable 'no_ignore' used without having been initialized
Q:\DMSPlugin\DMSPlugin_code\DMSQueries.cpp(109) : warning C4700: local variable 'update' used without having been initialized
Q:\DMSPlugin\DMSPlugin_code\DMSQueries.cpp(109) : warning C4700: local variable 'get_all' used without having been initialized
Q:\DMSPlugin\DMSPlugin_code\DMSQueries.cpp(109) : warning C4700: local variable 'recurse' used without having been initialized
Linking...
libcmt.lib(setlocal.obj) : error LNK2005: _setlocale already defined in msvcrtd.lib(MSVCRTD.dll)
libcmt.lib(strftime.obj) : error LNK2005: __Getdays already defined in msvcrtd.lib(MSVCRTD.dll)
libcmt.lib(strftime.obj) : error LNK2005: __Getmonths already defined in msvcrtd.lib(MSVCRTD.dll)
libcmt.lib(strftime.obj) : error LNK2005: __Gettnames already defined in msvcrtd.lib(MSVCRTD.dll)
libcmt.lib(strftime.obj) : error LNK2005: _strftime already defined in msvcrtd.lib(MSVCRTD.dll)
libcmt.lib(strftime.obj) : error LNK2005: __Strftime already defined in msvcrtd.lib(MSVCRTD.dll)
libcmt.lib(lconv.obj) : error LNK2005: _localeconv already defined in msvcrtd.lib(MSVCRTD.dll)
libcmt.lib(getenv.obj) : error LNK2005: _getenv already defined in msvcrtd.lib(MSVCRTD.dll)
libcmt.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrtd.lib(cinitexe.obj)
libcmt.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrtd.lib(cinitexe.obj)
libcmt.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrtd.lib(cinitexe.obj)
libcmt.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrtd.lib(cinitexe.obj)
libcmt.lib(mlock.obj) : error LNK2005: __lock already defined in msvcrtd.lib(MSVCRTD.dll)
libcmt.lib(mlock.obj) : error LNK2005: __unlock already defined in msvcrtd.lib(MSVCRTD.dll)
libcmt.lib(setlocal.obj) : warning LNK4006: _setlocale already defined in msvcrtd.lib(MSVCRTD.dll); second definition ignored
libcmt.lib(strftime.obj) : warning LNK4006: __Getdays already defined in msvcrtd.lib(MSVCRTD.dll); second definition ignored
libcmt.lib(strftime.obj) : warning LNK4006: __Getmonths already defined in msvcrtd.lib(MSVCRTD.dll); second definition ignored
libcmt.lib(strftime.obj) : warning LNK4006: __Gettnames already defined in msvcrtd.lib(MSVCRTD.dll); second definition ignored
libcmt.lib(strftime.obj) : warning LNK4006: _strftime already defined in msvcrtd.lib(MSVCRTD.dll); second definition ignored
libcmt.lib(strftime.obj) : warning LNK4006: __Strftime already defined in msvcrtd.lib(MSVCRTD.dll); second definition ignored
libcmt.lib(lconv.obj) : warning LNK4006: _localeconv already defined in msvcrtd.lib(MSVCRTD.dll); second definition ignored
libcmt.lib(getenv.obj) : warning LNK4006: _getenv already defined in msvcrtd.lib(MSVCRTD.dll); second definition ignored
libcmt.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in msvcrtd.lib(cinitexe.obj); second definition ignored
libcmt.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in msvcrtd.lib(cinitexe.obj); second definition ignored
libcmt.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in msvcrtd.lib(cinitexe.obj); second definition ignored
libcmt.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in msvcrtd.lib(cinitexe.obj); second definition ignored
libcmt.lib(mlock.obj) : warning LNK4006: __lock already defined in msvcrtd.lib(MSVCRTD.dll); second definition ignored
libcmt.lib(mlock.obj) : warning LNK4006: __unlock already defined in msvcrtd.lib(MSVCRTD.dll); second definition ignored
   Creating library Debug/DMSPlugin.lib and object Debug/DMSPlugin.exp
libcmt.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/DMSPlugin.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
 
DMSPlugin.dll - 16 error(s), 20 warning(s)

-----Original Message-----
From: Matt Daniel
Sent: Monday, 23 May 2005 11:11 AM
To: Svn_Users (E-mail)
Subject: linking errors subversion with vc6 c++

Hi guys

The final errors I have

thanks for all suggestions and help
Matt

Linking...
   Creating library Debug/DMSPlugin.lib and object Debug/DMSPlugin.exp
libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ___setlc_active
libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ___unguarded_readlc_active
libdb43sd.lib(os_abs.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libdb43sd.lib(qam_files.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libdb43sd.lib(env_open.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libdb43sd.lib(db_pr.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libdb43sd.lib(log.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol ___mb_cur_max
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ___lc_codepage
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol ___lc_codepage
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ___lc_codepage
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ___lc_codepage
libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol ___lc_handle
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ___lc_handle
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol ___lc_handle
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ___lc_handle
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ___lc_handle
libdb43sd.lib(db_pr.obj) : error LNK2001: unresolved external symbol __pctype
libdb43sd.lib(log.obj) : error LNK2001: unresolved external symbol __pctype
libdb43sd.lib(os_abs.obj) : error LNK2001: unresolved external symbol __pctype
libdb43sd.lib(qam_files.obj) : error LNK2001: unresolved external symbol __pctype
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol __pctype
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol __pctype
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __pctype
libdb43sd.lib(env_open.obj) : error LNK2001: unresolved external symbol __pctype
libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol ___lc_collate_cp
Debug/DMSPlugin.dll : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.

DMSPlugin.dll - 39 error(s), 6 warning(s)

My includes and libs etc..

shell32.lib
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
odbc32.lib
odbccp32.lib
Mpr.lib s
hlwapi.lib
libsvn_client-1.lib
libsvn_delta-1.lib
libsvn_diff-1.lib
libsvn_fs-1.lib
libsvn_fs_base-1.lib
libsvn_fs_fs-1.lib
libsvn_ra-1.lib
libsvn_ra_dav-1.lib
libsvn_ra_local-1.lib
libsvn_ra_svn-1.lib
libsvn_repos-1.lib
libsvn_subr-1.lib
libsvn_wc-1.lib
libapr.lib
libapriconv.lib
libaprutil.lib
xml.lib
zlibstat.lib
libneon.lib
WS2_32.lib
intl3_svn.lib
mod_dav_svn.lib
mod_authz_svn.lib
libdb43sd.lib
msvcrtd.lib
/nologo
/subsystem:windows
/dll
/incremental:yes
/pdb:"Debug/DMSPlugin.pdb"
/debug
/machine:I386
/nodefaultlib:"msvcrtd.lib"
/nodefaultlib:"LIBCMTD.lib"
/nodefaultlib:"msvcrt.lib"
/nodefaultlib:"msvcrt.dll" /def:".\DMSPlugin.def"
/out:"Debug/DMSPlugin.dll"
/implib:"Debug/DMSPlugin.lib"
/pdbtype:sept
/libpath:"C:\Program Files\Subversion\lib"
/libpath:"C:\Program Files\Subversion\lib\apr"
/libpath:"C:\Program Files\Subversion\lib\apr-util"
/libpath:"C:\Program Files\Subversion\lib\apr-iconv"
/libpath:"C:\Program Files\Subversion\lib\neon"
/libpath:"C:\Program Files\Subversion\berkley\lib"
/libpath:"C:\WINNT\system32"
Received on Mon May 23 05:08:09 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.