Sorry - I was editing that for space and left out a bit too much…
Here are the lines I added to makepanda.py:
(lines 2371-2379)
IPATH=['panda/src/mathutil']
OPTS=['BUILDING_PANDA', 'FFTW', 'NSPR']
CompileC(ipath=IPATH, opts=OPTS, src='mathutil_composite1.cxx', obj='mathutil_composite1.obj')
CompileC(ipath=IPATH, opts=OPTS, src='mathutil_composite2.cxx', obj='mathutil_composite2.obj')
CompileC(ipath=IPATH, opts=OPTS, src='CPP_Test.cxx', obj='CPP_Test.obj')
Interrogate(ipath=IPATH, opts=OPTS, outd='libmathutil.in', outc='libmathutil_igate.cxx',
src='panda/src/mathutil', module='panda', library='libmathutil', files=[
'boundingHexahedron.h', 'boundingLine.h', 'boundingSphere.h', 'boundingVolume.h', 'config_mathutil.h', 'fftCompressor.h', 'finiteBoundingVolume.h', 'frustum.h', 'frustum_src.h', 'geometricBoundingVolume.h', 'linmath_events.h', 'look_at.h', 'look_at_src.h', 'omniBoundingVolume.h', 'plane.h', 'plane_src.h', 'rotate_to.h', 'CPP_Test.h', 'CPP_Test.cxx', 'mathutil_composite1.cxx', 'mathutil_composite2.cxx'])
CompileC(ipath=IPATH, opts=OPTS, src='libmathutil_igate.cxx', obj='libmathutil_igate.obj')
and (767-768):
AddToVisualStudioPath("LIB", THIRDPARTY + "\\win-libs-vc7\\MyDevice\\lib")
AddToVisualStudioPath("INCLUDE", THIRDPARTY + "\\win-libs-vc7\\MyDevice\\include")
and I added ‘CPP_Test.obj’ to the libpanda section.
Here’s my test class header:
/*=============================================================================
* CPP_Test.h
*===========================================================================*/
// Prevent multiple inclusion of header file
#ifndef CPP_TEST_H
#define CPP_TEST_H
#include "MyDevice.h"
class PandaTest
{
private:
short pType,pNum;
*** other vars ***
public:
PandaTest();
long WaitForSession(short, short);
short InitDevice();
};
#endif
Here’s the class source (minus some code
):
/*=============================================================================
* CPP_Test.cxx
*===========================================================================*/
#include "CPP_Test.h"
#include <stdio.h>
#include <conio.h>
PandaTest::PandaTest()
{
pNum = 0;
pType = 0;
}
long PandaTest::WaitForSession(short num, short type)
{
****
}
short PandaTest::InitDevice()
{
****
}
The error was about “MyDevice.h”, which is the .h file I placed in ‘\thirdparty\win-libs-vc7\MyDevice\include’ (and in the VC7 include directory).
Sorry again about having to be cryptic with the code/info - I was hoping that the problem might be something simple. I work for a startup, and we’re trying to be careful! Thanks!
-Ogel