[p4perl] link issues while compiling -- __alldvrm missing

Daugherty, Jeff jeff.daugherty at aspentech.com
Tue Dec 6 16:19:24 PST 2005


I believe I have solved my problem for now.  I downloaded an older version
of the api, 4.2, and everything compiled and linked just fine.  I also
forgot to mention that I'm using Perforce client 2004.2.
Regards,
Jeff

-----Original Message-----
From: Daugherty, Jeff 
Sent: Tuesday, December 06, 2005 1:18 PM
To: 'p4perl at perforce.com'
Subject: [p4perl] link issues while compiling -- __alldvrm missing


I am also getting this link error.  I noticed that libcmt.lib was not
included in the lib list for the linker; msvrct.lib was included instead.  I
removed msvcrt and included libcmt, right after libsupp.lib in the list, and
still received the following:
 
libsupp.lib(strbuf.obj) : error LNK2001: unresolved external symbol
__alldvrm
blib\arch\auto\P4\P4.dll : fatal error LNK1120: 1 unresolved externals
 
Does anybody have any ideas on this?  Any help would be much appreciated.
I've even tried a simplified library list, since the C++ api documentation
claims dependency on only the following:
 
libcmt.lib
oldnames.lib
kernel32.lib
wsock32.lib
advapi32.lib
 
Here's the command text and output:
 
link -out:blib\arch\auto\P4\P4.dll -dll -nologo -nodefaultlib -debug
-opt:ref,icf  -libpath:"C:\Perl\lib\CORE"  -machine:x86 P4.obj
lib/libp4.lib C:\Perl\lib\CORE\perl56.lib C:\P4\P4api\libclient.lib
C:\P4\P4api\librpc.lib C:\P4\P4api\libsupp.lib "C:\Program Files\Microsoft
Visual Studio\VC98\lib\libcmt.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\oldnames.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\kernel32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\advapi32.lib" "C:\Program Files\Microsoft Visual
Studio\VC98\lib\wsock32.lib" -def:P4.def
   Creating library blib\arch\auto\P4\P4.lib and object
blib\arch\auto\P4\P4.exp
 
LINK : warning LNK4049: locally defined symbol "_sprintf" imported
LINK : warning LNK4049: locally defined symbol "_printf" imported
LINK : warning LNK4049: locally defined symbol "_isdigit" imported
LINK : warning LNK4049: locally defined symbol "_atoi" imported
LINK : warning LNK4049: locally defined symbol "_strstr" imported
libsupp.lib(strbuf.obj) : error LNK2001: unresolved external symbol
__alldvrm
blib\arch\auto\P4\P4.dll : fatal error LNK1120: 1 unresolved externals
 
Configuraton:
 
WinXP 2002
VC 6
Perl v5.6.1 build 635
P4-3.4804
 
Regards,
 
Jeff Daugherty
Software Engineering / Integration
Aspen Technology, Inc.
 
 

This e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain legally privileged and/or
confidential information. If you are not the intended recipient of this
e-mail, you are hereby notified any dissemination, distribution or copying
of this email, and any attachments thereto, is strictly prohibited. If you
receive this email in error please immediately notify the sender and
permanently delete the original copy and any copy of any e-mail, and any
printout thereof.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://maillist.perforce.com/pipermail/p4perl/attachments/20051206/22d8a271/attachment.html


More information about the p4perl mailing list