Issue adding PSD reader resource
by Spencer · in Torque 3D Professional · 04/10/2012 (4:52 pm) · 2 replies
Im trying to add the awesome PSD reader resource Here but I'm getting compile errors. I've copied the code over exactly several times but I get the following errors,
Does anyone have any idea what the issue is? Any help would be appreciated. Thanks in advance!
1> bitmapPsd.cpp 1>c:torquetorque 3d 1.2enginesourcegfxbitmaploadersbitmappsd.cpp(61): error C2143: syntax error : missing ';' before '->' 1>c:torquetorque 3d 1.2enginesourcegfxbitmaploadersbitmappsd.cpp(61): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========and the offending lines of code are
//------------------------------------------------------------------------------ #define skipStream(skip) stream->setPosition(stream->getPosition() + skip);with #define being line 60.
Does anyone have any idea what the issue is? Any help would be appreciated. Thanks in advance!
#2
04/10/2012 (5:49 pm)
Most gerbils probably have better C++ understanding than me... i have the include as #include "core/stream/stream.h" but it dont know if thats correct. I even looked at other files with stream and included bitStream.h with no luck. is there anything you see that I'm doing wrong?
Torque Owner Robert Fritzen
Phantom Games Development