Problems compiling wxMac on OSX 10.3.8

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
acidrap18
In need of some credit
In need of some credit
Posts: 2
Joined: Fri Feb 25, 2005 4:59 am

Problems compiling wxMac on OSX 10.3.8

Post by acidrap18 »

I want to use wxWindows with OpenGL.

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)
acidrap18
In need of some credit
In need of some credit
Posts: 2
Joined: Fri Feb 25, 2005 4:59 am

Post by acidrap18 »

Post Reply