|
From: | Peter Windey |
Subject: | [Openexr-devel] An issue with openEXR under MSVC 2005 express |
Date: | Sat, 1 Mar 2008 02:55:47 +0100 |
I compiled IlmBase and openEXR so now I have
directory structure looking this Deploy Bin Include Lib Now, in msvc2005 EE I made this small test program. #include <ImfOutputFile.h> #include <ImfInputFile.h> #include <ImfChannelList.h> #include <ImfStringAttribute.h> #include <ImfMatrixAttribute.h> #include <ImfArray.h>
#include <iostream>
using namespace std; using namespace Imf; using namespace Imath;
int main(int argc, char **argv){ return 0; }
void readGZ1 (const char fileName[], Array2D<half> &rPixels, Array2D<half> &gPixels, Array2D<float> &zPixels, int &width, int &height) {
InputFile file (fileName); } And at the overall options => projects and
solutions => VC ++ Directories I added c:\deploy\include and \lib for
respectively the include files and library files. So he does find the header
files, that’s not a problem. What I do get is this. Linking... main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall Imf::InputFile::~InputFile(void)" (address@hidden@@address@hidden) referenced in function "void __cdecl readGZ1(char const * const,class Imf::Array2D<class half> &,class Imf::Array2D<class half> &,class Imf::Array2D<float> &,int &,int &)" (?readGZ1@@address@hidden@@@Imf@@address@hidden@address@hidden@Z) main.obj : error LNK2019: unresolved external symbol "public: __thiscall Imf::InputFile::InputFile(char const * const,int)" (address@hidden@@address@hidden@Z) referenced in function "void __cdecl readGZ1(char const * const,class Imf::Array2D<class half> &,class Imf::Array2D<class half> &,class Imf::Array2D<float> &,int &,int &)" (?readGZ1@@address@hidden@@@Imf@@address@hidden@address@hidden@Z) main.obj : error LNK2019: unresolved external symbol "int __cdecl Imf::globalThreadCount(void)" (address@hidden@@YAHXZ) referenced in function "void __cdecl readGZ1(char const * const,class Imf::Array2D<class half> &,class Imf::Array2D<class half> &,class Imf::Array2D<float> &,int &,int &)" (?readGZ1@@address@hidden@@@Imf@@address@hidden@address@hidden@Z) C:\Documents and Settings\Peter\Mijn documenten\Visual Studio 2005\Projects\envmap\Debug\envmap.exe : fatal error LNK1120: 3 unresolved externals Build log was saved at "file://c:\Documents and Settings\Peter\Mijn documenten\Visual Studio 2005\Projects\envmap\envmap\Debug\BuildLog.htm" envmap - 4 error(s), 0 warning(s) Now, I also went to the solutions options and added
to additional libraries (Linker => General) c:\deploy\Lib and I also tried
adding \bin there But the result remains the same. Anyone any idea which
setting I’m forgetting? Thanks in advance, Peter No virus found in this outgoing message. |
[Prev in Thread] | Current Thread | [Next in Thread] |