FAQ #9: Compiling DCMTK on Solaris with Sun Workshop 4.x

Frequently Asked Questions regarding DCMTK

Moderator: FAQ Team

Post Reply
Message
Author
Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1435
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

FAQ #9: Compiling DCMTK on Solaris with Sun Workshop 4.x

#1 Post by Marco Eichelberg »

:?: 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest