Having trouble compiling quake 3 arena

Locked
termination
Posts: 2
Joined: Sun Jan 21, 2007 2:56 pm

Having trouble compiling quake 3 arena

Post by termination »

Hi all.

i'm having trouble compiling quake 3 arena with visual C++ 2005 express edition. It giving the following errors:
c:\program files\microsoft visual studio 8\vc\include\cstdio(26) : error C2143: syntax error : missing '{' before ':'
c:\program files\microsoft visual studio 8\vc\include\cstdio(26) : error C2059: syntax error : ':'
This occurs with the following piece of code. This is just a snippet. it happens with all scripts.

Code: Select all

#ifndef RC_INVOKED
 #if _GLOBAL_USING
_STD_BEGIN
using ::size_t; using ::fpos_t; using ::FILE;
using ::clearerr; using ::fclose; using ::feof;
using ::ferror; using ::fflush; using ::fgetc;
using ::fgetpos; using ::fgets; using ::fopen;
using ::fprintf; using ::fputc; using ::fputs;
using ::fread; using ::freopen; using ::fscanf;
using ::fseek; using ::fsetpos; using ::ftell;
using ::fwrite; using ::getc; using ::getchar;
using ::gets; using ::perror;
using ::putc; using ::putchar;
using ::printf; using ::puts; using ::remove;
using ::rename; using ::rewind; using ::scanf;
using ::setbuf; using ::setvbuf; using ::sprintf;
using ::sscanf; using ::tmpfile; using ::tmpnam;
using ::ungetc; using ::vfprintf; using ::vprintf;
using ::vsprintf;
_STD_END
 #endif /* _GLOBAL_USING */
#endif /* RC_INVOKED */
Can someone plz tell me what's wrong??? i'm a total n00b when it comes to programming in Visual C++. I tried all sorts of things. am I missing an header file or a decleration or something????? :confused: plese help! :icon23:

EDIT: The end of the compilation output states:

Code: Select all

c:\program files\microsoft visual studio 8\vc\include\cstdlib(21) : fatal error C1003: error count exceeds 100; stopping compilation
Generating Code...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\Debug_TA\win_gamma.sbr': No such file or directory
Build log was saved at "file://c:\Documents and Settings\Thom.T-001\Mijn documenten\downloads\Games\quake3-1.32b-source\quake3-1.32b\code\renderer\Debug_TA\BuildLog.htm"
renderer - 205 error(s), 0 warning(s)
might this missing win_game.sbr file be it??? the other .c files miss some of these too....
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

If I were to venture a guess I'd say you're trying to compile it as a C++ project, whereas the Q3 source is plain C.

Furthermore, I'd wager you're Dutch. Don't ask me how I know, it's just my spider sense at work.
termination
Posts: 2
Joined: Sun Jan 21, 2007 2:56 pm

Post by termination »

OK you're right about the dutch thing........
can u tell me how to compile it as plain C code????? if I can't use visual C++, links would be welcome!
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

I suggest you use ioquake3 as it's more stable than the vanilla Q3 source. You'll need MinGW to compile it.
Locked