Frequently Asked Questions regarding DCMTK
Moderator: FAQ Team
- OFFIS DICOM Team
- Posts: 1225
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
I am trying to compile DCMTK on Solaris with Sun Workshop 4.x. The code compiles without problems, but when trying to link applications, the linker reports unresolved externals in the DCMTK libraries and fails.
The Sun Workshop 4.x compilers use a new method of handling C++ template classes which requires that all libraries (lib*.a) containing templates must be created by the C++ compiler and not by "ar". Therefore, *before* executing the configure script for dcmtk, you should set environment variables as follows:
Code: Select all
setenv CC cc
setenv CXX CC
setenv AR CC
setenv ARFLAGS "-xar -o"
Configure will then create the appropriate code in the Makefiles.
Users browsing this forum: No registered users and 1 guest