I downlaoded wxMAC and ran the make file after configuring it w(--with-opengl). Midway through the process i get a parse error in one of the .cpp files (dc.cpp). I have posted the error and the region of the code where t he error persists, Please help, i do not know what is wrong here. Every thing looks fine to me, but can not complete compilation.
Error:
------------
c++ -c -I./lib/wx/include/mac-2.4 -I../include -I../src/png -I../src/jpeg -I../src/tiff -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -no-cpp-precomp -fpascal-strings -I../src/mac/morefile -I/Developer/Headers/FlatCarbon -D__WXMAC__ -DWXMAKINGDLL -O2 -MMD -fno-common -Wall -dynamic -fPIC -o dc.o ../src/mac/dc.cpp
../src/mac/dc.cpp:1259: error: parse error before `<<' token
../src/mac/dc.cpp:1263: error: parse error before `short'
make: *** [dc.o] Error 1
Code (dc.cpp):
------------
Code: Select all
1257 return TRUE;
1258 }
1259 inline Fixed IntToFixed( int inInt )
1260 {
1261 return (((SInt32) inInt) << 16);
1262 }
1263 inline int FixedToInt( Fixed inFixed )
1264 {
1265 return (((SInt32) inFixed) >> 16);
1266 }
1267
1268 void wxDC::DoDrawRotatedText(const wxString& str, wxCoord x, wxCoord y, double angle)