Problem in Makefile (specific problem for Mac OSX)
Posted: 06 May 2008, 10:33
I don't know this is the exact place to post this kind of thing, but I found Makefile doesn't pass an option "-fpascal-strings" to g++ compiler, which enables the compiler to handle a pascal escape sequence appears in line 128 of log.cpp:
Code: Select all
#ifdef WIN32
MessageBox(NULL, error_text.c_str(), "Error", MB_ICONERROR | MB_OK);
#elif defined __APPLE__
Str255 msg;
CFStringRef error;
error = CFStringCreateWithCString(NULL,
error_text.c_str(),
kCFStringEncodingMacRoman);
CFStringGetPascalString(error, msg, 255, kCFStringEncodingMacRoman);
StandardAlert(kAlertStopAlert,
"\pError", // <- HERE IS THE ESCAPE SEQUENCE
(ConstStr255Param) msg, NULL, NULL);
#else
std::cerr << "Error: " << error_text << std::endl;
#endifNULL);