openexr-devel
[Top][All Lists]
Advanced

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

[Openexr-devel] How to compile..?


From: AyaKoshigaya
Subject: [Openexr-devel] How to compile..?
Date: Sat, 22 Jul 2006 18:10:38 +0200

Hi,

I'm new to this Mailinglist *waves* :)

I have some problems with the very beginning of implementing OpenEXR to my applications. To test things, I created an EmptyConsoleApplication (With MS VC++ 2005) and added these things in the Options:

Additional Include Directorys: "C:\Coding\OpenEXR 1.3.0\include\OpenEXR"
Additional Library Directorys: "C:\Coding\OpenEXR 1.3.0\lib"
Additional Dependencies: IlmImf.lib zlib.lib Half.lib Iex.lib IlmThread.lib Imath.lib

Then I added a this CPP File:
_____________________________________________________________
#include <ImfRgbaFile.h>
using namespace Imf;

#include <iostream>
using namespace std;


void getWidthHeight(const char fileName[], int &width, int &height)
{
RgbaInputFile file(fileName);

}

void main()
{
int width, height;
getWidthHeight("C:\\StillLife.exr", width, height);
}
_____________________________________________________________

I compiled and executed test.exe.. but I got an error "Can't find MSVCR80.dll".

Another strange thing is, if I use this:
cout << "test" << endl;

to print out something, I get this compiler error:

1>main.obj : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (address@hidden@std@@@std@@address@hidden@address@hidden@@@address@hidden@address@hidden) already defined in msvcprtd.lib(MSVCP80D.dll)
1>test.exe : fatal error LNK1169: one or more multiply defined symbols found


So, could anyone tell me what I am doing wrong??
I know this is a stupid question, but till now I never realy used MSVC++... but right now, I can't use an other compiler :(

Kind regards,
Aya




reply via email to

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