vs2022: unresolved external symbol "public: __cdecl I2DJpegSource::I2DJpegSource(void)

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Swanwa.Liao
Posts: 4
Joined: Mon, 2024-10-14, 09:06

vs2022: unresolved external symbol "public: __cdecl I2DJpegSource::I2DJpegSource(void)

#1 Post by Swanwa.Liao »

I am using vs2022 and have a working DCMTK (as static libraries) in my application to read DICOM files.

However, when I include "I2DJpegSource* p = new I2DJpegSource();" for the first time, I get an unresolved link error of: external symbol for 2DJpegSource::I2DJpegSource()" I have included the "i2d.lib" in my project.

I tried including other dcmtk libraries with no luck. What library includes class I2DJpegSource if not i2d.lib?

Thanks.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1507
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: vs2022: unresolved external symbol "public: __cdecl I2DJpegSource::I2DJpegSource(void)

#2 Post by Marco Eichelberg »

The symbol is definitely defined in "i2d.lib". Perhaps there is a problem with the order in which libraries are linked?

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests