Jump to content

OS X compiling error. wscasecmp not declared.


Recommended Posts

Hello,

I tried to compile pyrogenesis on OS X 10.5.8 (intel), but I got many errors.

Most of them were complaining that wscasecmp was not declared.

Some of the files where wscasecmp was not declared were:

source/ps/Filesystem.cpp

source/ps/Util.cpp

source/lib/file/file_system_util.cpp

source/lib/file/archive/archive_zip.cpp

...

In 'source/lib/sysdep/os/osx/osx.cpp' 'wstring_from_string' was not declared.

I did also get an error in 'libraries/spidermonkey/include/js/jsotypes.h' about a conflicting declaration of uint64. I got this error when I compiled last time, and it seems like I am not the only one who got this error. Why has this not been fixed, by adding the simple fix suggested in http://www.wildfiregames.com/forum/index.php?showtopic=12593?

Good luck :)

Link to comment
Share on other sites

For wcscasecmp, that should be straightforward to fix - filed as #414.

For wstring_from_string, that's trivial so I've fixed it in SVN.

For uint64, does the problem go away when you apply that patch to the game's libraries/spidermonkey/src/js/src/jsotypes.h (instead of a system version of the library)? (It's not clear to me from the forum post you linked to, and I can't test it myself.)

Link to comment
Share on other sites

Thanks, I've committed the change to jsotypes.h now so hopefully that'll work without manual patching.

wcscasecmp just needs somebody to fix it :). I won't have time to write it and test it myself in the next few days - if someone writes a patch for it then that'd be great, otherwise I could look at it soonish.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...