# OpenExr

This topic is 2522 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi!

I'm trying to read an image using OpenExr library and I have read the documents at http://www.openexr.com/ReadingAndWritingImageFiles.pdf. But i'm a bit confused about how to set up this library in my program and not getting linking errors while using it. Can someone explain how i should set it up step by step on VC 2008? I might find where I went wrong and fix my errors then.

Tnx!

##### Share on other sites
In general when adding libraries in vc++08:
1: Go Tools->Options->VC++ Directories.
2: Find the 'include' group, and add the folder containing all the headers for the OpenEXR library
3: Find the 'lib' group and add the folder containing all the libraries. Usually this is the folder named 'bin', or sometimes a sub-folder.
4: At the top of the program (perhaps above the int main()), add the statement
 #pragma comment (lib, "openexr.lib") // or whatever the lib is called 
This can actually be done in project options or something without that extra line of code, but I personally prefer that way because I can easily see what libs I am using, generally one for physics, D3D, D3DX, FMOD, Assimp, and sometimes more.

If this still doesn't work, tell us the error code of the errors you are getting

1. 1
2. 2
3. 3
Rutin
15
4. 4
5. 5

• 9
• 9
• 11
• 11
• 23
• ### Forum Statistics

• Total Topics
633678
• Total Posts
3013286
×