[SOLVED] Error in my Toolset

Marioko

20-10-2006 21:09:23

hi everybody

I making my own toolset...
When i compile a game i get this error:

"custom definition of NX_CALL_CONV for your OS needed!"

in file Nx.h
Exactly in this part of the code.
#ifndef NX_CALL_CONV
#if defined WIN32
#define NX_CALL_CONV __cdecl
#elif defined LINUX
#define NX_CALL_CONV
#elif defined __APPLE__
#define NX_CALL_CONV
#elif defined __CELLOS_LV2__
#define NX_CALL_CONV
#elif defined _XBOX
#define NX_CALL_CONV
#else
#error custom definition of NX_CALL_CONV for your OS needed!
#endif
#endif




I put all header files (PhysisX, Nx***, NxOgre) together for easy use...


What is the problem???

PD: I could use NxOgre before put all headers in one folder...
:oops:

syedhs

20-10-2006 23:40:18

put

#define WIN32

before the block (if you are compiling on Windows platform)

Marioko

21-10-2006 03:35:42

nop. :(

now throw this error:


c:\ogre\mko-toolset\include\physics\nxogre\ControllerManager.h(49) : error C2872: 'Controller' : ambiguous symbol
could be 'c:\ogre\mko-toolset\include\physics\nxogre\ControllerManager.h(15) : Controller'
or 'c:\ogre\mko-toolset\include\graphics\OgreController.h(218) : Ogre::Controller'

Marioko

21-10-2006 05:15:58

SOLVED :D

The first problem also could be solve put in C++/Preproccesors Definitions/WIN32.

The Second problem (the last) was by the namespace........

betajaen

21-10-2006 09:15:24

The second problem is also fixed; by including nxOgre.h before any Ogre.h headers.

Marioko

21-10-2006 12:46:36

:o ooo... ok...

Thanks...