openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] static linking issues


From: Florian Kainz
Subject: Re: [Openexr-devel] static linking issues
Date: Tue, 07 Jun 2005 10:43:35 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114

Hi Fabian,

I tried to reproduce the errors you encountered by building
exrheader and IlmImfTest on Windows (with Visual C++ 7.1) in
the Debug configuration, which uses static libraries instead
of DLLs.  The programs compile, link and run fine.  I don't
get unresolved symbols or crashes.  Does building those
programs work for you?

Florian



Fabian Mathews wrote:
I'm trying to get the openexr library linking with my engine so i can load hdr files.

Now, i can compile/link okay with the dll versions, but get a crash in "RgbaInputFile" constructor.

so im trying to compile/link against the static libraries.

now, i get conflicts with
"msvcprtd.lib"

saying:

Error 131 error LNK2001: unresolved external symbol address@hidden@address@hidden@std@@address@hidden@2@@std@@QBEPBDXZ IlmImf_d.lib



if i set visual studio to ignore this library ("msvcprtd.lib"), then i get errors like the following:

Error 3 error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (address@hidden@std@@address@hidden@1@@std@@address@hidden@address@hidden@@address@hidden@2@@address@hidden@address@hidden) already defined in msvcprtd.lib(MSVCP80D.dll) IlmImf_d.lib


it appears to be conflicting with std::string

all errors appear to be comming from
IlmImf_d.lib    or IlmImf.lib    (tried linking with both versions)

any ideas?

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



_______________________________________________
Openexr-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/openexr-devel







reply via email to

[Prev in Thread] Current Thread [Next in Thread]