r1ch.net forums
* Home Help Search Login Register
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: Compiling your r1q2 from source on WIN32
Pages: 1 2 3 4 [All]
Print
Author Topic: Compiling your r1q2 from source on WIN32  (Read 48544 times)
neveride
Guest
« on: July 09, 2008, 08:32:15 am »

Hi R1CH,
I was thinking about messing a little with your code and compiling my r1q2 binary on my own, but I'm not able to build it. I have MS Visual Studio 2005 (I read in your readme that it should be MS Visual Studio 6.0, but my version should be compatible back, so it should not be a problem). Under my environment I am missing some headers, but adding them is not a solution. You wrote on your site "Please note that if you choose to compile your own binary, you must use GCC 2.7.2 to maintain compatibility with old mods" but there is no GCC for Windows. There are two projects Cygwin and MinGW, but I do not know if it's gonna solve my problem.

Can you answer me here?
Logged
neveride
Guest
« Reply #1 on: July 09, 2008, 08:34:56 am »

Regarding my previous post: I ask for an answer, but there is no clear question... Cheesy

What do I have to use in order to compile r1q2 binary under WIN32?
Logged
wision
Member

Posts: 237



« Reply #2 on: July 09, 2008, 09:12:06 am »

what kind of error do you get? various errors have been already discussed on the forum, just use search button.. for example here http://www.r1ch.net/forum/index.php?topic=888.0 and here http://www.r1ch.net/forum/index.php?topic=1589.0 ... and some more of course.
Logged
neveride
Guest
« Reply #3 on: July 09, 2008, 12:50:28 pm »

------ Build started: Project: quake2, Configuration: Debug Win32 ------
Compiling...
cl_ents.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
cl_fx.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
cl_input.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
cl_inv.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
cl_main.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
cl_newfx.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
cl_parse.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
cl_pred.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
cl_scrn.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
cl_tent.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
cl_view.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
cmd.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
cmodel.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
common.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
console.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
crc.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
cvar.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
files.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
in_win.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
keys.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
Generating Code...
Compiling...
le_physics.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
le_util.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
m_flash.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
md4.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
menu.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
mersennetwister.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
net_chan.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
net_wins.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
pmove.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
q_shared.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
q_shwin.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
qmenu.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
redblack.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
snd_dma.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
snd_mem.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
snd_mix.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
snd_win.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
sv_ccmds.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
sv_ents.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
sv_game.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
Generating Code...
Compiling...
sv_init.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
sv_main.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
sv_send.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
sv_user.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
sv_world.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
sys_win.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
vid_dll.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
vid_menu.c
c:\program files\microsoft visual studio\gnuwin32\include\zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
Generating Code...

i have paths for headers:
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include
C:\PROGRAM FILES\Microsoft DirectX SDK (August 2007)\Include

and also for libraries:
C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86
C:\Program Files\Microsoft Visual Studio\GnuWin32\lib

in GnuWin32 I have zlib, libpng and libjpeg.

unistd.h file is, as far as I understand, required by zlib, but downloading it and other header files doesn't make any difference (or even sence, since they are not WIN32 libraries)
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #4 on: July 09, 2008, 12:51:29 pm »

Make sure platform SDK is installed.
Logged
neveride
Guest
« Reply #5 on: July 09, 2008, 12:58:33 pm »

Thanks for a quick answer. I think that might have been a problem. I installed Direct X SDK Wink. I'm downloading SDK for VS now from http://www.microsoft.com/Downloads/details.aspx?familyid=30402623-93CA-479A-867C-04DC45164F5B&displaylang=en . I will let you know how it went after I'm finished.
Logged
neveride
Guest
« Reply #6 on: July 09, 2008, 05:55:05 pm »

I have Direct X SDK and SDK for VS 2005 and it still doesn't work :/
Errors as before. If I copy unistd.h and all the other headers that it refer to, I get following errors:

------ Build started: Project: quake2, Configuration: Debug Win32 ------
Compiling...
cl_ents.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
cl_fx.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
cl_input.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
cl_inv.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
cl_main.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
cl_newfx.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
cl_parse.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
cl_pred.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
cl_scrn.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
cl_tent.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
cl_view.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
cmd.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
cmodel.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
common.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
console.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
crc.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
cvar.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
files.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
in_win.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
keys.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
Generating Code...
Compiling...
le_physics.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
le_util.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
m_flash.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
md4.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
menu.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
mersennetwister.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
net_chan.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
net_wins.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/select.h(11) : warning C4005: 'FD_SETSIZE' : macro redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winsock.h(51) : see previous definition of 'FD_SETSIZE'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/select.h(18) : error C2371: 'fd_set' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winsock.h(57) : see declaration of 'fd_set'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/select.h(20) : warning C4005: 'FD_SET' : macro redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winsock.h(88) : see previous definition of 'FD_SET'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/select.h(21) : warning C4005: 'FD_CLR' : macro redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winsock.h(83) : see previous definition of 'FD_CLR'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/select.h(22) : warning C4005: 'FD_ISSET' : macro redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winsock.h(92) : see previous definition of 'FD_ISSET'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/select.h(24) : warning C4005: 'FD_ZERO' : macro redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winsock.h(90) : see previous definition of 'FD_ZERO'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(15) : error C2011: 'timeval' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winsock.h(97) : see declaration of 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
pmove.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
q_shared.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
q_shwin.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
qmenu.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
redblack.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
snd_dma.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
snd_mem.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
snd_mix.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
snd_win.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
sv_ccmds.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
sv_ents.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
sv_game.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
Generating Code...
Compiling...
sv_init.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
sv_main.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
sv_send.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
sv_user.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
sv_world.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
sys_win.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
vid_dll.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
vid_menu.c
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(17) : error C2061: syntax error : identifier 'suseconds_t'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(18) : error C2059: syntax error : '}'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(35) : error C2079: 'it_interval' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(36) : error C2079: 'it_value' uses undefined struct 'timeval'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\sys/time.h(53) : error C2011: 'tm' : 'struct' type redefinition
        C:\Program Files\Microsoft Visual Studio 8\VC\include\time.h(119) : see declaration of 'tm'
C:\PROGRAM FILES\Microsoft Visual Studio\GnuWin32\include\unistd.h(Cool : fatal error C1083: Cannot open include file: 'sys/fsuid.h': No such file or directory
Generating Code...
Logged
neveride
Guest
« Reply #7 on: July 09, 2008, 07:13:11 pm »

I found some other versions of header files that it had errors in and exchanged them with the older versions. after that I added unzip.c and ioapi.c to the project and dsound.lib to the linker. Now I got these errors and I cant solve them on my own:

------ Build started: Project: quake2, Configuration: Release Win32 ------
Linking...
snd_win.obj : error LNK2019: unresolved external symbol _DirectSoundCreate@12 referenced in function _SNDDMA_InitDirect
sys_win.obj : error LNK2019: unresolved external symbol _IsDebuggerPresent referenced in function _Sys_Error
./build/binaries/release/r1q2.exe : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Michal\Moje dokumenty\Visual Studio 2005\Projects\R1Q2 src\build\temp\r1q2\release\BuildLog.htm"
quake2 - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #8 on: July 09, 2008, 09:32:18 pm »

Make sure platform SDK is installed.

VS2005 SDK is for developing VS2005 addons.
Logged
neveride
Guest
« Reply #9 on: July 10, 2008, 05:07:32 am »

I installed:
Microsoft Direct X SDK (August 2007)
Microsoft Visual Studio 2005 SDK

I encounter previously mentioned problems on MS Visual Studio 2005.

When I build in debug mode, there is a lot of warnings, but the binary compiles and I can run it when I put it in Q2 directory together with zlib1.dll. The strange thing is that when I use this executable file, I can start my own server (but the physics in the game is strange, like slow motion a little), but I cannot connect to any server on the internet (I have an unhandled exception strange error 'EXCEPION_CONTINUE_SEARCH?').

Still, if I want to build it in a release mode, I cannot do that because of the following error:

------ Build started: Project: quake2, Configuration: Release Win32 ------
Compiling...
snd_win.c
Linking...
snd_win.obj : error LNK2019: unresolved external symbol _DirectSoundCreate@12 referenced in function _SNDDMA_InitDirect
sys_win.obj : error LNK2019: unresolved external symbol _IsDebuggerPresent referenced in function _Sys_Error
./build/binaries/release/r1q2.exe : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Michal\Moje dokumenty\Visual Studio 2005\Projects\R1Q2 src\build\temp\r1q2\release\BuildLog.htm"
quake2 - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Any tips?
Logged
neveride
Guest
« Reply #10 on: July 10, 2008, 05:13:49 am »

I added dsound.lib from MS SDK once again to the linker and the error I get changed to:

------ Build started: Project: quake2, Configuration: Release Win32 ------
Linking...
sys_win.obj : error LNK2019: unresolved external symbol _IsDebuggerPresent referenced in function _Sys_Error
./build/binaries/release/r1q2.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Michal\Moje dokumenty\Visual Studio 2005\Projects\R1Q2 src\build\temp\r1q2\release\BuildLog.htm"
quake2 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Logged
neveride
Guest
« Reply #11 on: July 10, 2008, 08:32:55 am »

I believe that I need to add some other lib to the linker. That's the list I have until now:
winmm.lib
wsock32.lib
zlib.lib
dxguid.lib
dinput8.lib
dsound.lib

Can you check yours and tell me what I am missing?
Logged
QwazyWabbit
Member

Posts: 402


« Reply #12 on: July 11, 2008, 07:43:46 pm »

Definitely missing:
kernel32.lib
user32.lib
advapi32.lib

Probably missing:
gdi32.lib
comdlg32.lib
shell32.lib

also if building the server as the server has a Win32 GUI dialog.

IsDebuggerPresent is in kernel32.dll so you definitely need it to solve the link error.

« Last Edit: July 11, 2008, 08:17:28 pm by QwazyWabbit » Logged
neveride
Guest
« Reply #13 on: July 16, 2008, 07:34:04 am »

I added kener32.lib to the linker and it still does not work. Adding other libraries does not change anything - same error all over again :/
I don't know how to look for the solution. This is a dead end for me :/
Logged
QwazyWabbit
Member

Posts: 402


« Reply #14 on: July 16, 2008, 09:48:39 am »

I added kener32.lib to the linker and it still does not work. Adding other libraries does not change anything - same error all over again :/
I don't know how to look for the solution. This is a dead end for me :/

kernel32.lib, not kener32.lib. Did you make the same typo in the project?

Make sure you clean and rebuild all just to be sure it's not a sync problem.
Logged
neveride
Member

Posts: 26


« Reply #15 on: July 16, 2008, 01:39:35 pm »

There I have kernel32.lib, so no typos in the project. I have no idea why I made such a typo in my post - strange. I cleaned and tried to rebuild many times, but it happens all over again...

...
...many warnings regarding deprecated declarations....and then...
...

Generating Code...
Compiling resources...
Linking...
sys_win.obj : error LNK2019: unresolved external symbol _IsDebuggerPresent referenced in function _Sys_Error
./build/binaries/release/r1q2.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Michal\Moje dokumenty\Visual Studio 2005\Projects\R1Q2 src\build\temp\r1q2\release\BuildLog.htm"
quake2 - 2 error(s), 332 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Logged
mhanor
Member

Posts: 120


« Reply #16 on: July 16, 2008, 02:07:57 pm »

search the x86 kernel32.lib on your hdd (it comes with the Windows SDK) and make sure that path is included in the "Additional library directories" project option

or maybe you should reinstall the Windows SDK
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #17 on: July 16, 2008, 02:25:53 pm »

Make sure your SDK is set for Win98 or higher, I think the first version of Win95 didn't have that API, so the SDK requires some setting to enable more modern functions.
Logged
neveride
Member

Posts: 26


« Reply #18 on: July 16, 2008, 04:10:50 pm »

I reinstalled DirectX SDK and VS 2005 SDK. I added all the paths to include/lib. Linker files were already there. Error is still the same. I don't know what you mean rich by setting my SDK for Win98 or higher, but I think that it would be set by default nowadays. My problem is permanent, I think I will just have to wait till rich adds features, that I'm interested in, to his client.
Greets,
Nev.
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #19 on: July 16, 2008, 04:15:07 pm »

Stop installing the VS2005 SDK, that's for making Visual Studio addons. You need the Platform SDK.

http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&DisplayLang=en
Logged
QwazyWabbit
Member

Posts: 402


« Reply #20 on: July 16, 2008, 07:44:49 pm »

I can confirm this is a problem in VC++ 6.0 Enterprise Edition when attempting RELEASE build with the Platform SDK installed correctly.

I downloaded and extracted the source archive: r1q2-b7759-src.zip
Opened the project with VC6, set project to quake2, debug build and built r1q2.exe.
Obtained the usual warnings and the following link errors:
unzip.obj : error LNK2001: unresolved external symbol _fill_fopen_filefunc
files.obj : error LNK2001: unresolved external symbol _unzGoToNextFile
files.obj : error LNK2001: unresolved external symbol _unzGetOffset
files.obj : error LNK2001: unresolved external symbol _unzGetCurrentFileInfo
files.obj : error LNK2001: unresolved external symbol _unzGoToFirstFile
files.obj : error LNK2001: unresolved external symbol _unzGetGlobalInfo
files.obj : error LNK2001: unresolved external symbol _unzOpen
snd_win.obj : error LNK2001: unresolved external symbol _DirectSoundCreate@12

Hunting down the errors and fixed them:
Added qcommon\ioapi.c to the quake2 debug and release projects to fix missing _fill_fopen_filefunc
Added qcommon\unzip.c to the quake2 debug and release projects to fix missing _unz*
Added linkage to dsound.lib for debug and release mode projects to fix _DirectSoundCreate

Build in Debug mode successfully compiles and links.
Build in Release mode yields good compile but bad linkage:
Linking...
sys_win.obj : error LNK2001: unresolved external symbol _IsDebuggerPresent
./build/binaries/release/r1q2.exe : fatal error LNK1120: 1 unresolved externals

With VC++ 2008 Express Edition can't get past the q2.rc file. If fails with:
1>------ Build started: Project: quake2, Configuration: Debug Win32 ------
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>.\win32\q2.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.

What's even more interesting is that I have a b6557 project in VC6 that works in both modes that I have been using for quite a while and it refers to the IsDebuggerPresent function in the same way.

Still looking into this. If I find the difference I will post more.
« Last Edit: July 16, 2008, 07:52:17 pm by QwazyWabbit » Logged
neveride
Member

Posts: 26


« Reply #21 on: July 18, 2008, 06:18:10 am »

Thanks R1ch, Platform SDK solved a problem. But I also need libraries and headers from Direct X SDK, so it's also needed, aye? After compilation, my binary takes only 468kB (yours is 763kB) and it requires zlib1.dll in the game folder in order to run (and I can't connect to any server on the Internet anyway, so it is useless). I suppose that in your version dll file is somehow incorporated in the binary. How can I do it? Maybe it's a lame question, but they did not teach us this in school Wink.
Thanks for your help.
Logged
neveride
Member

Posts: 26


« Reply #22 on: July 25, 2008, 10:24:44 am »

OK, I've got no response so probably nobody understand what I mean. I will describe the problem and I hope that you will be able to help me.
When I compile it, it has 600kB (I changed project->properties->configuration properties->c/c++->code generation to multi-threaded (MT), because I thought it would help me compile the binary with statical libraries, so I don't have to copy zlib1.dll to the quake2 dir - I have to do this anyway).

When I type map q2dm1 I see this message 2 times:
deflateInit2() failed.

In R1ch's code I found:

   if (deflateInit2 (&z, Z_DEFAULT_COMPRESSION, Z_DEFLATED, -15, 9, Z_DEFAULT_STRATEGY) != Z_OK)
   {
      SV_ClientPrintf (sv_client, PRINT_HIGH, "deflateInit2() failed.\n");
      goto plainLines;
   }

This if is tested only if here:

   #ifndef NO_ZLIB
      if (sv_client->protocol == PROTOCOL_ORIGINAL)
   #endif
      {
   #ifndef NO_ZLIB

...we have false.

R1ch's binary does not require zlib1.dll in q2 dir, so taking into account that mine does need it and also the problem that I encounter is related to zlib, I think that I have to make my compilator statically compile the library, so there is no dll needed. Am I wrong? How can I do this? Maybe there are some other ideas?

I will gladly hear what you all have to say Smiley

Greets,
Nev.



« Last Edit: July 27, 2008, 06:01:57 am by neveride » Logged
neveride
Member

Posts: 26


« Reply #23 on: September 15, 2008, 01:48:23 pm »

Okay, once again me.
After "format C:" I decided to try again. I installed Visual Studio 6.0 this time and platform sdk for xp sp2 (that's my system). I added everything needed to the linker and to the directories. Everything compiles just fine, when I do it in debug mode. The problem is that executable asks me for zlib1.dll. When I take it from zlib directory and put it to q2 directory. When I try to connect to any server, quake2 crashes. This is the info from a debug mode (I didn't put disasembly):


Loaded 'D:\Gry\Q2_r1q2\nevr1q2.exe', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
Loaded 'D:\Gry\Q2_r1q2\zlib1.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\dinput8.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\secur32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\dsound.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\winmm.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\wsock32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ws2_32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ws2help.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\imm32.dll', no matching symbolic information found.
Loaded 'D:\Gry\Q2_r1q2\ref_r1gl.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\opengl32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\glu32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ddraw.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\dciman32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\uxtheme.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\MSCTF.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\MSCTFIME.IME', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\atioglxx.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\wintrust.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\crypt32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msasn1.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\imagehlp.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\wdmaud.drv', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msacm32.drv', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msacm32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\midimap.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ksuser.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\hid.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\setupapi.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\oleaut32.dll', no matching symbolic information found.
Loaded 'C:\Program Files\NetLimiter\nl_lsp.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\nl_msgc.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\shlwapi.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\mswsock.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\hnetcfg.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\wshtcpip.dll', no matching symbolic information found.
Loaded 'D:\Gry\Q2_r1q2\dbghelp.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\apphelp.dll', no matching symbolic information found.
The thread 0xB94 has exited with code 0 (0x0).
The program 'D:\Gry\Q2_r1q2\nevr1q2.exe' has exited with code 0 (0x0).

I have a bigger problem when I try to compile in release mode (as r1ch suggests). I get the following error:

--------------------Configuration: quake2 - Win32 Release--------------------
Compiling resources...
Compiling...
alw_win.c
cd_win.c
cl_cin.c
cl_dll.c
cl_ents.c
cl_fx.c
cl_input.c
cl_inv.c
cl_main.c
cl_newfx.c
cl_parse.c
cl_pred.c
cl_scrn.c
cl_tent.c
cl_view.c
cmd.c
cmodel.c
common.c
conproc.c
console.c
crc.c
cvar.c
files.c
in_win.c
ioapi.c
keys.c
le_physics.c
le_util.c
m_flash.c
md4.c
menu.c
mersennetwister.c
net_chan.c
net_wins.c
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\net_wins.c(502) : warning C4514: 'Int64ShllMod32' : unreferenced inline function has been removed
        C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\winnt.h(606) : see declaration of 'Int64ShllMod32'
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\net_wins.c(502) : warning C4514: 'Int64ShraMod32' : unreferenced inline function has been removed
        C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\winnt.h(613) : see declaration of 'Int64ShraMod32'
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\net_wins.c(502) : warning C4514: 'Int64ShrlMod32' : unreferenced inline function has been removed
        C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\winnt.h(620) : see declaration of 'Int64ShrlMod32'
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\net_wins.c(502) : warning C4514: 'GetFiberData' : unreferenced inline function has been removed
        C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\winnt.h(1954) : see declaration of 'GetFiberData'
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\net_wins.c(502) : warning C4514: 'GetCurrentFiber' : unreferenced inline function has been removed
        C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\winnt.h(1959) : see declaration of 'GetCurrentFiber'
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\net_wins.c(502) : warning C4514: 'RtlSecureZeroMemory' : unreferenced inline function has been removed
        C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\winnt.h(7724) : see declaration of 'RtlSecureZeroMemory'
pmove.c
q_shared.c
q_shwin.c
qal_win.c
qmenu.c
redblack.c
snd_dma.c
snd_mem.c
snd_mix.c
snd_win.c
sv_ccmds.c
sv_ents.c
sv_game.c
sv_init.c
sv_main.c
sv_send.c
sv_user.c
sv_world.c
sys_win.c
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\sys_win.c(168) : warning C4013: 'IsDebuggerPresent' undefined; assuming extern returning int
unzip.c
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\sys_win.c(2327) : warning C4761: integral size mismatch in argument; conversion supplied
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\sys_win.c(2423) : warning C4761: integral size mismatch in argument; conversion supplied
vid_dll.c
vid_menu.c
Linking...
sys_win.obj : error LNK2001: unresolved external symbol _IsDebuggerPresent
./build/binaries/release/quake2.exe : fatal error LNK1120: 1 unresolved externals

Error executing link.exe.

quake2.exe - 2 error(s), 9 warning(s)

_IsDebuggerPresent is a function from kernel32.lib. It is added to the linker and the directory where it is placed is also added to lib directories (it is a file from platform sdk). Why do I keep getting this error, if kernel32.lib is there? Why does it compile in debug mode and does not compile in release mode?

Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #24 on: September 15, 2008, 04:08:47 pm »

The IsDebuggerPresent is not present in debug builds due to an ifdef.
Logged
neveride
Member

Posts: 26


« Reply #25 on: September 15, 2008, 04:56:02 pm »

that explains why it compiles in debug mode. why do i get this error while building in release mode (I have all the prerequisities). Moreover, why does it ask for zlib1.dll all the time?
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #26 on: September 15, 2008, 05:59:47 pm »

You need to static link with zlib if you don't want the DLL dependencies.
Logged
neveride
Member

Posts: 26


« Reply #27 on: September 16, 2008, 05:01:12 am »

1. How do I do this in VS 6.0? I went to project -> settings -> c/c++ -> code generation -> use run-time library. I checked all the possibilities and it still requires zlib1.dll.

2. What's wrong with this _IsDebuggerPresent? kernel32.lib is linked, so what can be wrong there? (I link with: user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib zlib.lib dinput8.lib dsound.lib dxguid.lib wsock32.lib winmm.lib) The error is:

--------------------Configuration: quake2 - Win32 Release--------------------
Compiling resources...
Compiling...
alw_win.c
cd_win.c
cl_cin.c
cl_dll.c
cl_ents.c
cl_fx.c
cl_input.c
cl_inv.c
cl_main.c
cl_newfx.c
cl_parse.c
cl_pred.c
cl_scrn.c
cl_tent.c
cl_view.c
cmd.c
cmodel.c
common.c
conproc.c
console.c
crc.c
cvar.c
files.c
in_win.c
ioapi.c
keys.c
le_physics.c
le_util.c
m_flash.c
md4.c
menu.c
mersennetwister.c
net_chan.c
net_wins.c
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\net_wins.c(502) : warning C4514: 'Int64ShllMod32' : unreferenced inline function has been removed
        C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\winnt.h(606) : see declaration of 'Int64ShllMod32'
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\net_wins.c(502) : warning C4514: 'Int64ShraMod32' : unreferenced inline function has been removed
        C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\winnt.h(613) : see declaration of 'Int64ShraMod32'
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\net_wins.c(502) : warning C4514: 'Int64ShrlMod32' : unreferenced inline function has been removed
        C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\winnt.h(620) : see declaration of 'Int64ShrlMod32'
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\net_wins.c(502) : warning C4514: 'GetFiberData' : unreferenced inline function has been removed
        C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\winnt.h(1954) : see declaration of 'GetFiberData'
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\net_wins.c(502) : warning C4514: 'GetCurrentFiber' : unreferenced inline function has been removed
        C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\winnt.h(1959) : see declaration of 'GetCurrentFiber'
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\net_wins.c(502) : warning C4514: 'RtlSecureZeroMemory' : unreferenced inline function has been removed
        C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\winnt.h(7724) : see declaration of 'RtlSecureZeroMemory'
pmove.c
q_shared.c
q_shwin.c
qal_win.c
qmenu.c
redblack.c
snd_dma.c
snd_mem.c
snd_mix.c
snd_win.c
sv_ccmds.c
sv_ents.c
sv_game.c
sv_init.c
sv_main.c
sv_send.c
sv_user.c
sv_world.c
sys_win.c
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\sys_win.c(168) : warning C4013: 'IsDebuggerPresent' undefined; assuming extern returning int
unzip.c
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\sys_win.c(2327) : warning C4761: integral size mismatch in argument; conversion supplied
C:\Documents and Settings\Michal\Moje dokumenty\Projects\R1Q2\win32\sys_win.c(2423) : warning C4761: integral size mismatch in argument; conversion supplied
vid_dll.c
vid_menu.c
Linking...
sys_win.obj : error LNK2001: unresolved external symbol _IsDebuggerPresent
./build/binaries/release/quake2.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

quake2.exe - 2 error(s), 9 warning(s)
Logged
neveride
Member

Posts: 26


« Reply #28 on: September 16, 2008, 05:04:25 am »

there is also kernel32.lib in the linker (jsut in the begining), somehow it didn't copy...
Logged
QwazyWabbit
Member

Posts: 402


« Reply #29 on: September 16, 2008, 11:57:42 pm »

You need to download the zlib package: http://www.zlib.net/ and use the .lib linkage to incorporate zlib with the project. This is a separate package from the r1q2 project. You can use the zlib package in other projects as well, but that's another story. You can use the delivered .lib and .dll or recompile them on your computer.
Logged
neveride_guest
Guest
« Reply #30 on: September 17, 2008, 04:27:38 am »

Qwazy, I did it.
I downloaded zlib package and unpacked it to Program Files/Gnu32.
I added Program Files/Gnu32/Lib (here i have zlib.lib) to libraries path and Program Files/Gnu32/Include to include path (there is i.e. zlib.h).

After that i added zlib.lib to the linker and changed runtime library (in code generation) to multithreaded. r1q2 compiles (when I comment out ifdef lines with _IsDebuggerPresent - I dont know why it doesnt see it, kernel32.lib is linked properly). After all this operations my executable still asks for zlib1.lib, where in my opinion it should be statically linked. What is the problem?
Logged
neveride_guest
Guest
« Reply #31 on: September 17, 2008, 04:31:15 am »

* after all these operations

* my exe asks for zlib1.dll, I'm writing too fast, I'm sorry.

* dont assume typos or wrong paths, I'm writing them now as I remember, but they have been checked hundred times
Logged
QwazyWabbit
Member

Posts: 402


« Reply #32 on: September 17, 2008, 07:18:12 pm »

Make sure a copy of zlib1.dll is in the same folder as your application or on the Windows path.
%systemroot%\system32 is often a good place to put it. Having multiple versions along the path or multiple versions in multiple folders for different applications is called "dll hell".

Another solution would be to statically link to the DLL's.
« Last Edit: September 17, 2008, 07:29:55 pm by QwazyWabbit » Logged
neveride
Member

Posts: 26


« Reply #33 on: September 18, 2008, 06:32:03 pm »

That's what I want to do, but I cannot manage. I try to link statically, but it keeps asking for zlib1.dll. And even if I put the dll into q2 dir, then q2 runs, but I cannot connect to any server on the internet, because eventually I receive some error about inflateInit() failure or sth like that...I had too much problems iwith that, so can you please tell me how to statically link with the lib? (I wrote few posts earlier what I did to achieve it, so you can refer to that).

Thanks in advance.
N.
Logged
neveride
Member

Posts: 26


« Reply #34 on: September 21, 2008, 06:45:32 am »

thats really ugly and I will never understand this - I changed the name of the file to create from quak2.exe to r1q2nev.exe, I compiled it and in works...I will not even try to understand this. The case now is that my executable doesnt serve anticheat.dll, so I get kicked from any server that requires anticheat module. Is it a proper anticheat policy or there is some way to implement it?

When I add "ANTICHEAT" as a preprocessor definition (which tells to build with anticheat service, right?) I get following errors:

--------------------Configuration: quake2 - Win32 Release--------------------
Linking...
sv_ccmds.obj : error LNK2001: unresolved external symbol _SVCmd_SVACInvalidate_f
sv_ccmds.obj : error LNK2001: unresolved external symbol _SVCmd_SVACUpdate_f
sv_ccmds.obj : error LNK2001: unresolved external symbol _SVCmd_SVACInfo_f
sv_ccmds.obj : error LNK2001: unresolved external symbol _SVCmd_SVACList_f
sv_init.obj : error LNK2001: unresolved external symbol _SV_AntiCheat_WaitForInitialConnect
sv_init.obj : error LNK2001: unresolved external symbol _SV_AntiCheat_Connect
sv_init.obj : error LNK2001: unresolved external symbol _SV_AntiCheat_IsConnected
sv_main.obj : error LNK2001: unresolved external symbol _SV_AntiCheat_IsConnected
sv_user.obj : error LNK2001: unresolved external symbol _SV_AntiCheat_IsConnected
sv_main.obj : error LNK2001: unresolved external symbol _SV_AntiCheat_Disconnect_Client
sv_main.obj : error LNK2001: unresolved external symbol _SV_AntiCheat_Run
sv_main.obj : error LNK2001: unresolved external symbol _SV_AntiCheat_Challenge
sv_main.obj : error LNK2001: unresolved external symbol _SV_AntiCheat_UpdatePrefs
sv_main.obj : error LNK2001: unresolved external symbol _SV_AntiCheat_Disconnect
sv_user.obj : error LNK2001: unresolved external symbol _SV_AntiCheat_QueryClient
sv_user.obj : error LNK2001: unresolved external symbol _anticheat_hashlist_name
sv_user.obj : error LNK2001: unresolved external symbol _antiCheatNumFileHashes
sv_user.obj : error LNK2001: unresolved external symbol _anticheat_client_names
sv_user.obj : error LNK2001: unresolved external symbol _SV_AntiCheat_CheckToken
./build/binaries/release/r1q2nev.exe : fatal error LNK1120: 17 unresolved externals
Error executing link.exe.

r1q2nev.exe - 20 error(s), 0 warning(s)

Where can I get the unresolved functions from?
« Last Edit: September 21, 2008, 07:49:59 am by neveride » Logged
QwazyWabbit
Member

Posts: 402


« Reply #35 on: September 21, 2008, 09:43:43 am »

R1ch can correct me if I am wrong but self-built R1q2 clients cannot be built to include anticheat.dll because alteration of the client code from source could allow faking/mutation or corruption of the anticheat methods.

If your goal is to fork r1q2 server for Linux or Windows then building from source makes sense.
If your goal is to fork r1q2 client then you will have to do it without anticheat.

R1ch will not release the anticheat.lib that you will need to link the anticheat functions.
Logged
neveride
Member

Posts: 26


« Reply #36 on: September 21, 2008, 09:54:23 am »

hm, that's too bad. in aprq2 there is variable cl_health that holds amount of health for the player. It would be useful for me to have it, but on aprq2 I have ~50fps less, which is a lot when timedemo returns 150fps. moreover r1ch wrote that he wont include cl_health in r1q2 and I understand his explanation, but if I really want to do that in my fork, I should be able to use this fork on servers, what is impossible without anticheat service. moreover, who compiles other q2-clients which serve anticheat module? do they have to have anticheat.lib or not?

EDIT:
I was a little too fast. All the functions are in sv_server.c, so it was enough to add it to the project. the problem now is that it disconnects me from all the servers and there is one that doesnt do this, but when I type aclist, I can see that I dont have anticheat module loaded...how to overcome this?

« Last Edit: September 21, 2008, 11:50:52 am by neveride » Logged
neveride
Member

Posts: 26


« Reply #37 on: September 22, 2008, 04:17:42 pm »

http://pancake.sggw.waw.pl/~gagatek/4u/r1q2_executables.rar, here you have two executables compiled by me. I even changed the name from r1q2 (mod) to r1q2, cuz I thought that it might have an influence, but it does not....

the difference in size (~800kB and ~500kB) is because of /MT and/MTd compiler option (libraries), but I dont see any difference, so I dont know which one to use...

why dont they load anticheat?
Logged
wision
Member

Posts: 237



« Reply #38 on: September 23, 2008, 12:34:30 am »

it doesn't load anticheat because it fails the hash check.. or whatever it uses to check the client
Logged
neveride
Member

Posts: 26


« Reply #39 on: September 23, 2008, 03:49:58 am »

oh I c.
I thought that the clients have to be compatible with anticheat not the other way around. If that's the case, then I should be able to make it work. The question is: how? Rich?
Logged
wision
Member

Posts: 237



« Reply #40 on: September 23, 2008, 11:24:23 am »

if i may ask, what's so special on your client that you want it to be valid for anticheat?
Logged
mhanor
Member

Posts: 120


« Reply #41 on: September 23, 2008, 12:40:53 pm »

wision: neveride hasn't yet understood the essential things

neveride: you should read again all that is to be read about anticheat (what is it, how it works, what is a valid client, how a client becomes valid), including your own thread... also search the forum for other discussions about it; after you understand all that you must understand, you will not be able to ask for anticheat support, for your client, unless you're deadly serious about releasing to the public a very special client, with many new and exciting features, that R1Q2 doesn't have
« Last Edit: September 23, 2008, 12:45:42 pm by mhanor » Logged
wision
Member

Posts: 237



« Reply #42 on: September 23, 2008, 12:46:01 pm »

yeah.. was too lazy to write that :b
Logged
neveride
Member

Posts: 26


« Reply #43 on: September 23, 2008, 01:28:19 pm »

wision: neveride hasn't yet understood the essential things

neveride: you should read again all that is to be read about anticheat (what is it, how it works, what is a valid client, how a client becomes valid), including your own thread... also search the forum for other discussions about it; after you understand all that you must understand, you will not be able to ask for anticheat support, for your client, unless you're deadly serious about releasing to the public a very special client, with many new and exciting features, that R1Q2 doesn't have


aprq2 allows triggering and has cl_health variable that allows scripting. i would change to aprq2 because of that, if my computer was better and performed well enough on this client. somebody asked for including this in r1q2, but rich said no and I understood his explanation. but there was also somebody else who said that if you want some option in r1q2 then add it and compile it on your own. that's what i wanted to do, bu t i cannot because somebody else has monopolly for saying whether a client is good or not. i dont think it's a good solution, and to tell truth it's ridiculous. bad anticheat design, but i cannot make it better so i will stay quiet.
Logged
R1CH
Administrator
Member

Posts: 2625



« Reply #44 on: September 23, 2008, 04:53:48 pm »

Triggers are implemented in the next R1Q2 release, however cl_health and other "stat" access is not planned.
Logged
wision
Member

Posts: 237



« Reply #45 on: September 23, 2008, 06:08:43 pm »

somebody else has monopolly for saying whether a client is good or not. i dont think it's a good solution, and to tell truth it's ridiculous. bad anticheat design, but i cannot make it better so i will stay quiet.

yeah.. and what if i'd take r1q2 sources and implement some nice wh and aimbot and noone would check my client and it would work with anticheat? sounds better than what we have now? .)
Logged
neveride
Member

Posts: 26


« Reply #46 on: September 24, 2008, 02:43:39 am »

sounds bad, but as I said, it is bad anticheat design. good anticheat should recognize cheats no matter what the client is. I also said that I'm not able to do that, so I appreciate what I have (so you don't think that I came here and pounce on rich and his programming abilities/disabilities).

Triggers are implemented in the next R1Q2 release, however cl_health and other "stat" access is not planned.

than maybe it's possible to change q2 code this way:
set VARIABLE %h <- under variable VARIABLE we put the value returned by %h, not %h itself (current q2 behaviour). That would be expected behavoiur for most of the people, but I dont know how it looks from the programmer point of view.
« Last Edit: September 24, 2008, 02:54:19 am by neveride » Logged
Pages: 1 2 3 4 [All]
Print
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: Compiling your r1q2 from source on WIN32
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines