Project

General

Profile

Compile Exiv2 with VC++ 6.0 - static linking

Added by Christian W about 12 years ago

Hi!

First I have to say that I am new to Exiv2 and programming in general ;)

I want to use Exiv2 in my project, which I have to write with Visual C++ 6.0. All libs that I am using must be statically linked. So I have to compile Exiv2 myself, but I don't know how, because there is no .dsw project file in source-tarball, only the .sln project file for newer versions of Visual Studio. Could someone provide this project-file or give me a hint how I could compile it myself with Visual C++ 6.0?

Thank you in advance.


Replies (2)

RE: Compile Exiv2 with VC++ 6.0 - static linking - Added by Andreas Huggel about 12 years ago

Christian,

Visual C++ 6.0 is not supported. It's not just a matter of writing a project file, MSVC 6.0 doesn't like some of the template code in the library.

Andreas

RE: Compile Exiv2 with VC++ 6.0 - static linking - Added by Robin Mills about 12 years ago

I agree with Andreas. I'm surprised you're using Visual C++ v6.0. Gosh that's at least 10 years old now. There have been 3 major releases of DevStudio since then and Microsoft have steadily improved their support and respect for the C++ standards.

You do know that you can download a free DevStudio 2008 Express C++ Edition which does build the exiv2 libraries and sample applications? Having said that, I have been involved in the last few months with helping a co-worker use Visual C++ 6.0. He claimed that he had to use that compiler for reasons concerning legacy code which wouldn't compile on newer versions of DevStudio (grrrrr).

If you're stuck with Visual C++ 6.0, you might be able to call the exiv2 dlls build with DevStudio 2008 from Visual C++ v6.0. However I'm not very confident that this will work as the name mangler has probably changed over the years.

Anyway, I do have a legal copy of Visual C++ v6.0 on my elderly Windows/XP laptop and I could create a simple application on 6.0 to link the 2008 DLLs. It's 11:30pm now in California and I'm off to bed. I can look at it on Saturday afternoon if you wish. Let me know.

Robin

    (1-2/2)