Tokamak problems, weird errors

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Rat
Posts: 51
Joined: Wed Mar 10, 2004 7:05 am

Tokamak problems, weird errors

Post by Rat »

I have been thinking of using the Tokamak SDK and I tried the example on this site, and came up with errors that basicly tells me it was screwing around with already defined variables:
:\IRRLICHT\examples\Copy of 8.SpecialFX\main.cpp(133) : error C2872: 's32' : ambiguous symbol
E:\IRRLICHT\examples\Copy of 8.SpecialFX\main.cpp(211) : error C2872: 'f32' : ambiguous symbol


Digging around I found powerpop's addons for doing collosion and tried it out and the same thing happens, or the same exact errors. Any one have any ideas as to what is going on, or is the Tokamak not up to snuff with version 0.6 of the IRRLICHT engine. At this point I have fooled around for a day trying to figure out some way of doing collosion detection for picking up items and keep failing :D
bappy
Posts: 63
Joined: Fri Dec 12, 2003 10:49 am
Location: france
Contact:

Post by bappy »

with tokamak , you can t use f32 and s32 because they are both define in irr and tokamak.
in your code you mustn t use namespace irr, core etc, and must refer each irr object by the space he is.
exemple:
instead of this:
using namespace irr
IrrlichtDevice *device;

you must do this:
irr::IrrlichtDEvice *device;
-----------------------------
Sans danger, pas de gloire...
http;//bappy.free.fr
-----------------------------
Rat
Posts: 51
Joined: Wed Mar 10, 2004 7:05 am

Post by Rat »

interesting... this should have been put in the tutorial on this site about using tokamak. As I said I tried the example code off the page, and it bails with the errors. At least now I know where to look to fix it.
Rat
Posts: 51
Joined: Wed Mar 10, 2004 7:05 am

Post by Rat »

Well it fixed the f32 and s32 problem, but now there are a crap load of other errors. I think its not worth the time trying to figure out how to fix them all and try something else.

Perhaps in the future, there could be a working copy of a project that will compile on vcc++ 6.0 would help to understand how to use it.

I am all for working at getting something integrated, but when there is no examples that work, and little understanding of how the source is to work, I get frustrated and move on to something else.
Post Reply