PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Rebuilding across platforms

I'm trying to create a PC version of a working PPC version of our game. When I open the workspace_pc_vc2005 solution file and try to do a build I get a ton of errors like these:

Code:
c:\projects\edge\samples\sudoku\code\cfg_mgr.h(65) : error C2039: 'StrCpyW' : is not a member of 'ClassEStd'
c:\projects\edge\include\estdc.h(20) : see declaration of 'ClassEStd'
c:\projects\edge\samples\sudoku\code\cfg_mgr.h(65) : error C2664: 'StrCpyW' : cannot convert parameter 1 from 'char [512]' to 'LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\projects\edge\samples\sudoku\code\cfg_mgr.h(66) : error C2039: 'StrCatW' : is not a member of 'ClassEStd'
c:\projects\edge\include\estdc.h(20) : see declaration of 'ClassEStd'
c:\projects\edge\samples\sudoku\code\cfg_mgr.h(66) : error C2664: 'StrCatW' : cannot convert parameter 1 from 'char [512]' to 'LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast


I don't understand why its trying to find unicode versions of the edge functions.

Anyone run into this and have a setting change to get rid of it?
If the errors doesn't appear with the Blastar sample, I suggest looking at the project settings (right click on the project in the solution explorer en choose properties). Then open the C/C++ section and compare it with the Blastar project.

If you can't get it to work, try to copy the blastar.sln and blastar.vcproj files, rename them, open the files and replace the text "blastar" with your own project name. Then you can open the project and add your own source and header files. Also, would you like to post lines 65 and 66 from cfg_mgr.h?