DICOM @ OFFIS Forum Index DICOM @ OFFIS
Discussion Forum for OFFIS DICOM Tools
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FAQ #27: Compilation of DCMTK-based program fails with LNK2001 [MSVC]

 
Post new topic   Reply to topic    DICOM @ OFFIS Forum Index -> DCMTK - FAQ
View previous topic :: View next topic  
Author Message
Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team


Joined: 02 Nov 2004
Posts: 1156
Location: Oldenburg, Germany

PostPosted: Tue, 2004-11-09, 10:37    Post subject: FAQ #27: Compilation of DCMTK-based program fails with LNK2001 [MSVC] Reply with quote

Question I am developing an application on Microsoft Visual C++ (MSVC) that uses DCMTK. When I try to compile and link my application against the DCMTK libraries, the linker fails with error LNK2001, e.g.
Code:
dcmdata.lib(dcuid.obj) : error LNK2001: unresolved external symbol _Netbios@4

Exclamation You are not linking all of the libraries needed, or you are linking in wrong order (library link order is significant!) The DCMTK libraries have the following internal dependencies (also see this figure):
  • dcmdata Arrow ofstd
  • dcmimage Arrow dcmimgle, dcmdata, ofstd
  • dcmimgle Arrow dcmdata, ofstd
  • dcmjpeg Arrow ijg8, ijg12, ijg16, dcmimage, dcmimgle, dcmdata, ofstd
  • dcmnet Arrow dcmdata, ofstd
  • dcmpstat Arrow dcmimage, dcmimgle, dcmsign, dcmsr, imagectn, dcmtls, dcmnet, dcmdata, ofstd
  • dcmsign Arrow dcmdata, ofstd
  • dcmsr Arrow dcmdata, ofstd
  • dcmtls Arrow dcmnet, dcmdata, ofstd
  • dcmwlm Arrow dcmnet, dcmdata, ofstd
  • imagectn/dcmqrdb Arrow dcmnet, dcmdata, ofstd
In addition to the standard libraries, most DCMTK applications have to be linked against the "netapi32" and "wsock32" libraries, even if they contain no networking code. Several external libraries such as zlib, OpenSSL etc. might also be needed. See the INSTALL file for details.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DICOM @ OFFIS Forum Index -> DCMTK - FAQ All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.21-7 (Debian) © 2001, 2005 phpBB Group