Link errors
Moderator: Moderator Team
Link errors
Hi, I try to make a simple class using the DcmFileFormat class and when i compile is ok but when I link there are many errors like this:
In function `MyDicom::SaveDicom()': undefined reference to `DcmFileFormat::saveFile(char const*, E_TransferSyntax, E_EncodingType, E_GrpLenEncoding, E_PaddingEncoding, unsigned long, unsigned long, int)'|
I've included in the linker options all the library that I obtained with the compilation of the dcmtk-3.5.4 (libofstd.a, libdcmdata.a, ecc.).
Which is the problem?
Thanks
In function `MyDicom::SaveDicom()': undefined reference to `DcmFileFormat::saveFile(char const*, E_TransferSyntax, E_EncodingType, E_GrpLenEncoding, E_PaddingEncoding, unsigned long, unsigned long, int)'|
I've included in the linker options all the library that I obtained with the compilation of the dcmtk-3.5.4 (libofstd.a, libdcmdata.a, ecc.).
Which is the problem?
Thanks
-
- OFFIS DICOM Team
- Posts: 1445
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
link errors
I've this order now:
libdcmdata.a
libofstd.a
libdcmnet.a
libdcmimage.a
Now I've only three errors about saveDicom() findAndGetString() and PutAndInsertString()
Does I need more library? Which is the correct order?
Thanks
libdcmdata.a
libofstd.a
libdcmnet.a
libdcmimage.a
Now I've only three errors about saveDicom() findAndGetString() and PutAndInsertString()
Does I need more library? Which is the correct order?
Thanks
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Read FAQ #27 (the library order is also valid for non-Windows systems).Which is the correct order?
link errors
I've linked the libraries in the correct order but the linking doesn't work.
I work with the GCC 4.2.3 under Ubuntu/CodeBlocks.
I see on the INSTALL file that dcmtk has been tested with older version then GCC 4.2.3..is possible that with an higher version of GCC dcmtk doesn't work correctly?
Is possible that the compilation doesn't make correctly the libdcmdata.a?
Or...somebody has any solutions?
I work with the GCC 4.2.3 under Ubuntu/CodeBlocks.
I see on the INSTALL file that dcmtk has been tested with older version then GCC 4.2.3..is possible that with an higher version of GCC dcmtk doesn't work correctly?
Is possible that the compilation doesn't make correctly the libdcmdata.a?
Or...somebody has any solutions?
-
- OFFIS DICOM Team
- Posts: 1445
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
link errors
Hi,
I've solved...the problem is that it must INSERT COMPILER DEFINE
HAVE_CONFIG_H=1
All other problems are all correlated.
Bye
I've solved...the problem is that it must INSERT COMPILER DEFINE
HAVE_CONFIG_H=1
All other problems are all correlated.
Bye
Who is online
Users browsing this forum: No registered users and 1 guest