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
Posts: 1
Joined: 06 May 2008, 11:11

Problem in Makefile (specific problem for Mac OSX)

Post by shigerello » 06 May 2008, 11: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,
    CFStringGetPascalString(error, msg, 255, kCFStringEncodingMacRoman);
                  "\pError",                                              // <- HERE IS THE ESCAPE SEQUENCE
                  (ConstStr255Param) msg, NULL, NULL);
    std::cerr << "Error: " << error_text << std::endl;
Post Reply