Errors building source

This is for people involved in the developement of Snes9x, or SNES emulators in general.
BUG REPORTS BELONG IN TECH SUPPORT/BUG TRACKING!
Post Reply
beano311
Snes9x White Belt
Posts: 2
Joined: Thu Jan 31, 2013 1:56 am

Errors building source

Post by beano311 »

I've never built a C++ project in VS before (I do some VB, ASP.net, and java development occasionally though). I've set up all the optional/non-optional libs (directx Feb 2010, zlib, cg, etc) correctly, however, when I go to compile, either 32 or 64, I get:

Code: Select all

1>------ Build started: Project: Snes9X, Configuration: Release x64 ------
1>  CXML.cpp
1>CXML.cpp(64): error C3861: 'CPToWide': identifier not found
1>CXML.cpp(69): error C3861: 'sprintf': identifier not found
1>CXML.cpp(78): error C3861: 'sprintf': identifier not found
1>CXML.cpp(91): error C3861: 'CPToWide': identifier not found
1>CXML.cpp(115): error C3861: 'CPToWide': identifier not found
1>CXML.cpp(128): error C3861: 'WideToCP': identifier not found
1>CXML.cpp(129): error C3861: 'WideToCP': identifier not found
1>CXML.cpp(156): error C3861: 'WideToCP': identifier not found
1>CXML.cpp(157): error C3861: 'WideToCP': identifier not found
1>  CFMODEx.cpp
1>CFMODEx.cpp(81): error C2065: 'FMOD_OUTPUTTYPE_OPENAL' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have no idea what's causing the errors as C++ syntax is strange to me. Can anyone tell me what needs to be done to fix these errors?

Thanks
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: Errors building source

Post by OV2 »

For the first errors related to CXML: build one of the unicode builds, the ansi builds currently do not work.

The FMOD error is most probably caused because you use a recent version of the FMODEx sdk that dropped support for OpenAL. Simply compile without FMODEX_SUPPORT set (Project->Properties->C/C++->Preprocessor).
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: Errors building source

Post by OV2 »

I've just pushed an update to git that should fix the ansi builds.
beano311
Snes9x White Belt
Posts: 2
Joined: Thu Jan 31, 2013 1:56 am

Re: Errors building source

Post by beano311 »

Thanks, the new build compiled fine. Also, I switched to an older version of FMODEx (4.30.22), which I think is the last version before they removed OpenAL output support. Also, just a note that the libpng include directory for me after compile a fresh x64 copy of libpng was $(ProjectDir)..\..\libPNG\projects\vstudio\x64\Release.
Post Reply