openexr-devel
[Top][All Lists]
Advanced

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

Re: [Openexr-devel] Compiling OpenEXR on Windows


From: Gonzalo Garramuño
Subject: Re: [Openexr-devel] Compiling OpenEXR on Windows
Date: Tue, 18 Mar 2014 11:00:15 -0300
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

On 17/03/2014 08:34 p.m., Gonzalo Garramuño wrote:
On 17/03/2014 05:45 p.m., Thorsten Kaufmann wrote:
I guess it has to do with this warning:

3>half.obj : warning LNK4197: export 'address@hidden@@address@hidden@B' specified multiple times; using first specification 3>half.obj : warning LNK4197: export 'address@hidden@@0QBGB' specified multiple times; using first specification

Though i am unsure how to fix that.

Also, I tried the lib on a simple program which linked fine but the output was garbage:

#include <iostream>
#include <half.h>


int main()
{
   half p = 0.5f;
   std::cerr << p << std::endl;
}

$ cd <mydir>
$ cl.exe -EHsc -IF:/code/lib/Deploy/include half.cpp -link -libpath:F:/code/lib/Deploy/lib/x64/Release Half.lib
$ cp F:/code/lib/Deploy/bin/x64/Release Half.dll .
$ half.exe
7.53516

huh?  On linux this prints out 0.5 as it should.


It seems I need to put -DOPENEXR_DLL in the command line and then everything is fine.



reply via email to

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