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)" ([EMAIL PROTECTED]@@[EMAIL
PROTECTED])
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@@[EMAIL PROTECTED]@@@Imf@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@Z)
main.obj : error LNK2019: unresolved external symbol "public: __thiscall
Imf::InputFile::InputFile(char const * const,int)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]@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@@[EMAIL PROTECTED]@@@Imf@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@Z)
main.obj : error LNK2019: unresolved external symbol "int __cdecl
Imf::globalThreadCount(void)" ([EMAIL PROTECTED]@@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@@[EMAIL PROTECTED]@@@Imf@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@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.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date: 29/02/2008
8:18
_______________________________________________
Openexr-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/openexr-devel