[Plib-users] compile problems and fixes for OSX
Brought to you by:
sjbaker
From: Kevin W. <wa...@co...> - 2005-05-20 03:40:07
|
Hi, I don't think this made it to the mailing list for some reason, so I am sending it again. Had to make the following 2 corrections to get plib to compile on Mac OS X 10.4 (Tiger): 1. JS Code: had to remove the static declaration on the member function. ? .deps ? Makefile ? Makefile.in cvs diff: Diffing . Index: jsMacOSX.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/js/jsMacOSX.cxx,v retrieving revision 1.4 diff -r1.4 jsMacOSX.cxx 278c278 < static void os_specific_s::elementEnumerator( const void *element, void* vjs) --- > void os_specific_s::elementEnumerator( const void *element, void* vjs) 2. PW Code: had to cast the strings to ConstStr255Param to avoid an error about invalid conversion from 'const char*' to 'const unsigned char*' ? .deps ? Makefile ? Makefile.in ? my.diff Index: pwMacOSX.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pw/pwMacOSX.cxx,v retrieving revision 1.7 diff -r1.7 pwMacOSX.cxx 314c314 < MenuHandle menu = NewMenu(mApple, "\p\024"); --- > MenuHandle menu = NewMenu(mApple, (ConstStr255Param)"\p\024"); 317c317 < InsertMenuItem(menu, "\pAbout Plib...", 0); --- > InsertMenuItem(menu, (ConstStr255Param)"\pAbout Plib...", 0); 328c328 < menu = NewMenu (mFile, "\pFile"); // new menu --- > menu = NewMenu (mFile, (ConstStr255Param)"\pFile"); // new menu 330c330 < AppendMenu (menu, "\pQuit/Q"); // add items --- > AppendMenu (menu, (ConstStr255Param)"\pQuit/ Q"); // add items 373c373 < "\pfor more infos see <http:// plib.sourceforge.net>", --- > (ConstStr255Param)"\pfor more infos see <http://plib.sourceforge.net>", |