Game Development Community

Compile help

by Timothy Castagna · in Technical Issues · 07/22/2008 (6:47 am) · 1 replies

Im using AFX + TGEA 1.03 on a vista machine trying to compile with visual c++ 2008 express
these are the errors i get. can anyone help me get this fixed.

1>c:\torque\afx1.1_combo_tgea1.03_sdk\engine\platformwin32\winredbook.cpp(130) : error C2440: '=' : cannot convert from 'UTF16 [512]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>winProcessControl.cpp

and


1>c:\torque\afx1.1_combo_tgea1.03_sdk\engine\platformwin32\winprocesscontrol.cpp : error C2471: cannot update program database 'c:\torque\afx1.1_combo_tgea1.03_sdk\engine\out.vc8.win32.debug\vc90.pdb'
1>c:\torque\afx1.1_combo_tgea1.03_sdk\engine\platformwin32\winprocesscontrol.cpp(22) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>c:\torque\afx1.1_combo_tgea1.03_sdk\engine\platformwin32\winprocesscontrol.cpp(22) : error C2418: cannot delete browser file: ../engine/out.vc8.win32.debug/\winProcessControl.sbr
1>winOpenAL.cpp

i get about 855 of these errors....thanks in advance

#1
07/22/2008 (7:46 am)
Not sure about the first thing. I recommend taking out the MSPlatformSDK include and recompiling. Especially with 2008, those headers usually lead to just problems. If that's not it, just forcibly cast to LPCWSTR as the two types are representation-compatible.

As for the second problem, that's one out of a slew of well-known issues of VS 2008. Exit VS, delete the respective .pdb and restart VS. Can't predictably reproduce the issue myself, but usually having only one copy of VS open helps at least somewhat.