Documentation Archive Developer
Search

ADC Home > Reference Library > Technical Q&As > Legacy Documents > Tools >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Using Pascal strings in Project Builder


Q: I'm getting warnings from the compiler (gcc) about my Pascal strings. How can I get them to be recognized in Project Builder?

A: Usually Pascal strings work just fine when doing Carbon development in Project Builder, but under some situations when building your project or checking syntax on a source file, you may run into the "unknown escape sequence '\p'" warning. This means that the compiler has not been told how to handle your Pascal strings. To fix this, go to your target's Build Settings tab and under Build Settings -> OTHER_CFLAGS add "-fpascal-strings". This tells the compiler to replace the '\p' with a byte containing the length of the string.


[Jun 27 2001]