Thank you for your response:
Here is my compile:
/Od /I "C:\Program
Files\PB\Finalist\Include" /AI "d:\Projects\Visa\AddressVer
ification\AddressVerificationInterface\Debug" /D "WIN32" /D
"_DEBUG" /D "_WINDLL" /D "_MBCS" /FD /EHsc /MTd /GS /Yu"st
dafx.h" /Fp"d:\Projects\Visa\AddressVerification\AddressV er
ificationInterface\Debug/AddressVerificationInterface.pch"
/Fo"d:\Projects\Visa\AddressVerification\AddressVer ificatio
nInterface\Debug/" /Fd"d:\Projects\Visa\AddressVerification
\AddressVerificationInterface\Debug/vc70.pdb" /W3 /nologo /
c /Zi /clr /TP /FU "C:\WINNT\Microsoft.NET\Framework\v1.1.4
322
\mscorlib.dll" /FU "C:\WINNT\Microsoft.NET\Framework\v1.1.4
322
\System.dll" /FU "C:\WINNT\Microsoft.NET\Framework\v1.1.432
2\System.XML.dll"
Here is the link:
/OUT:"d:\Projects\Visa\AddressVerification\AddressV erificat
ionInterface\Debug/AddressVerificationInterface.dll" /INCRE
MENTAL /NOLOGO /LIBPATH:"C:\Program
Files\PB\Finalist\LIB\\" /DLL /DEBUG /ASSEMBLYDEBUG /PDB:"d
:\Projects\Visa\AddressVerification\AddressVerific ationInte
rface\Debug/AddressVerificationInterface.pdb" /FIXED:No
nochkclr.obj mscoree.lib pclnt.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
Kevin
-----Original Message-----
--------------------From: "Kevin Burton" <rk******************@charter.net>
Subject: Unresolved 'C' functions in linking.
Date: Wed, 6 Aug 2003 13:52:35 -0700
Message-ID: <03****************************@phx.gbl>
I am trying to use managed C++ but I am getting the
following link errors:
Metadata
file 'D:\Projects\Visa\AddressVerification\AddressVerif ic
ationTest\bin\Debug\AddressVerificationInterface.d ll'
couldnot be found
AddressVerificationInterface error LNK2001: unresolved
external symbol "void * __cdecl operator new(unsigned
int)" (??2@$$FYAPAXI@Z)
AddressVerificationInterface error LNK2001: unresolved
external symbol "void __cdecl operator delete(void *)"
(??3@$$FYAXPAX@Z)
AddressVerificationInterface error LNK2001: unresolved
external symbol "char * __cdecl strncpy(char *,char
const*,unsigned int)" (?strncpy@@$$J0YAPADPADPBDI@Z)
AddressVerificationInterface error LNK2001: unresolved
external symbol "void * __cdecl memset(void
*,int,unsignedint)" (?memset@@$$J0YAPAXPAXHI@Z)
AddressVerificationInterface fatal error LNK1120: 4
unresolved externals
These all seem like 'C' functions that should be part of
the CRT. How do I resolve these? Does C++ not know the
difference between a managed new and an unmanaged new?
What about strncpy? and memset?
Thank you.
Kevin
There could be a number of things going on here, and just
the error messageisn't enough to figure it out in this case. What options
are being passedto the linker? Is /nodefaultlib one of them? That could
be the cause of theunresolved externals. As for the first error, it sounds
like the locationof the DLL is not on the assembly search path. Try
adding /AI<location ofassembly> to the command line.
Please send your compile and link command line options,
and I might be ableto help further.
--
Daniel Tomko, Visual C++ Team
This posting is provided AS IS with no warranties, and
confers no rights.
.