Problem in Makefile (specific problem for Mac OSX)

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
shigerello
Peon
Peon
Posts: 1
Joined: 06 May 2008, 10:11

Problem in Makefile (specific problem for Mac OSX)

Post by shigerello »

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);
Post Reply