openexr-devel
[Top][All Lists]
Advanced

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

Re: [Openexr-devel] Idea for using OpenEXR in Windows


From: Drew Hess
Subject: Re: [Openexr-devel] Idea for using OpenEXR in Windows
Date: Tue, 18 Mar 2003 11:40:09 -0800 (PST)

Hi Andreas,

Thanks for the info.  I'll test this out before the 1.0.5 release to see 
if we can get it in there.

-dwh-


On Tue, 18 Mar 2003, Andreas Kahler wrote:

> Hi!
> 
> I've tried to do exactly what you have suggested, but it doesn't work.
> The libs compiled with the Intel compiler have dependencies to some
> Intel libs (which come with the compiler), but are not available to users
> of MSVC++. Moreover, I got linker errors (about symbols defined
> multiple times) when trying to use the Intel compiler generated libs with
> VC++.
> 
> A similar approach worked for me: I created a DLL using the Intel
> compiler, which exports all stuff declared in ImfCRgbaFile.h. That DLL
> can be used with VC++ without any problems.
> 
> The code change I had to make were quite small:
> In ImfCRgbaFile.h I added:
> 
> // define WIN32DLLEXPORT to create a Win32 dll
> #ifdef WIN32DLLEXPORT
> # define DLLEXPORT __declspec( dllexport )
> #else
> # define DLLEXPORT
> #endif
> 
> and for each function and struct defined in the file I added the
> DLLEXPORT macro, like:
> 
> ImfInputFile DLLEXPORT * ImfOpenInputFile (const char name[]);
> 
> 
> I suggest to add a project file for such a DLL to the distribution.
> 
> Andreas
> --
> Andreas Kahler, Project Manager Applications
> NXN Software AG, Sonnenstrasse 19, D-80331 Muenchen, Germany
> 
> > Yeah, Rodrigo came up with this idea and it's a good one.  It should allow
> > people using Visual Studio 6 without the Intel compiler to use prebuilt
> > libraries without much hassle.  I believe that the Half class will compile
> > with Microsoft C++ 6.0, so you can still use Half as a datatype in your
> > programs.
> >
> > See ImfCRgbaFile.h for the interface.
> >
> >
> > -dwh-
> >
> >
> >
> >  On Mon, 10 Mar 2003, Rodrigo Damazio wrote:
> >
> > >     While talking to Drew(I met him by accident last week in a
> > > conference), we came up with an idea for using OpenEXR in Windows
> > > without using the Intel compiler - just use the C bindings...perhaps we
> > > should create more C bindings for this purpose?? So far only ImRgba has
> > > that...
> > >
> > > Rodrigo
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Openexr-devel mailing list
> > > address@hidden
> > > http://mail.nongnu.org/mailman/listinfo/openexr-devel
> > >
> 
> 
> _______________________________________________
> Openexr-devel mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/openexr-devel
> 





reply via email to

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