Reported Errors 2.6.1 Xcode 1.5 10.3.9

From WxWiki

Jump to: navigation, search

Contents

[edit] Error "Please define string case-insensitive compare for your OS/compiler"

  • Edit string.h
  • Comment the error line
  • Uncomment the text above it:
     register char c1, c2;
     do {
       c1 = tolower(*psz1++);
       c2 = tolower(*psz2++);
     } while ( c1 && (c1 == c2) );
 
     return c1 - c2;

[edit] Undefined Symbols with an empty list

When using Xcode you might get Undefined Symbols link error message with an empty symbol list - at the bottom of the top pane, next to the warning icon there's an icon that will show a list of the symbols that cannot be found.

[edit] Undefined symbol RegisterHotKey during link

  • Open build-release/lib/wx/include/mac-ansi-release-static-2.6/wx/setup.h
  • Change wxUSE_HOTKEY to 1
  • In the Terminal window, compile the wxWidgets code by typing:

<pre>

   cd ~/wx/ver/build-release
   make

</pre>

[edit] Double definition of ssize_t

In XCode 2.0, you get an error stating that ssize_t was already defined (assuming the notebook example). I solved this by simply commenting the re-definition in notebook.cpp out.

''(Note some people solve this error for XCode by adding __WXMAC_XCODE__=1 under Target Settings > Preprocessor Macros.)''

[edit] Undefined symbols: _png_create_info_struct etc.

(OS X 10.4.3, Xcode 2.2) You'll need to configure the library again whilst adding <tt>--with-libpng=builtin</tt> (<tt>../configure --disable-shared --enable-monolithic --with-libpng=builtin</tt> followed by <tt>make</tt>)

Personal tools