compiling in VS Express 2008

C

csteinhoff

Guest
Has anyone tried compiling the Orange Box code under Visual Studio 2008 express? I am new to Half Life 2 but not to coding but it seems that the compiler dies when I try to compile the client

Code:
1>d:\mymod\src\game\client\c_vguiscreen.cpp(348) : fatal error C1001: An internal error has occurred in the compiler.
1>(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c[0x6C0C1F4C:0x00000008]', line 182)
1> To work around this problem, try simplifying or changing the program near the locations listed above.
1>Please choose the Technical Support command on the Visual C++ 
1> Help menu, or open the Technical Support help file for more information
1>Build log was saved at "file://d:\MYMOD\src\game\client\Release_hl2\BuildLog.htm"
1>Client (HL2) - 1 error(s), 9 warning(s)


any one else have this issue???
 
I just had this issue while setting up a MOD project in VS2008.

Go to line 348:

Replace
Code:
dist = c_x / tan( M_PI * scaled_fov / 360.0 );

With
Code:
// Aqualung - Compile error fix - 2/21
float conv = (M_PI * scaled_fov)/360.0;
dist = c_x / tan( conv );
 
Back
Top