|
Build problem
Guest
|
 |
« on: November 25, 2005, 06:59:26 pm » |
|
q_shwin.c 32, 33, 34 extern LPDIRECTINPUT8 g_pDI; extern LPDIRECTINPUTDEVICE8 g_pMouse; extern LPDIRECTINPUTDEVICE8 g_pKeyboard; r1q2src\win32\winquake.h(32) : error C2061: syntax error : identifier 'g_pDI' r1q2src\win32\winquake.h(32) : error C2059: syntax error : ';' r1q2src\win32\winquake.h(33) : error C2061: syntax error : identifier 'g_pMouse' r1q2src\win32\winquake.h(33) : error C2059: syntax error : ';' r1q2src\win32\winquake.h(34) : error C2061: syntax error : identifier 'g_pKeyboard' r1q2src\win32\winquake.h(34) : error C2059: syntax error : ';'gl_image.c typedef int boolean; jpeg-6b\jmorecfg.h(227) : error C2371: 'boolean' : redefinition; different basic types Microsoft Visual Studio\VC98\INCLUDE\rpcndr.h(173) : see declaration of 'boolean'gl_light.c Line 389 __declspec(align(16)) static float s_blocklights[34*34*BLOCKLIGHT_SIZE]; r1q2src\ref_gl\gl_light.c(389) : error C2485: 'align' : unrecognized extended attribute r1q2src\ref_gl\gl_light.c(389) : error C2059: syntax error : '('
|
|
|
|
|
Logged
|
|
|
|
R1CH
Administrator
Member
Posts: 2625
|
 |
« Reply #1 on: November 25, 2005, 07:45:01 pm » |
|
You need the DirectX SDK. As for the other ones, I guess your compiler or PSDK headers may be too old. Boolean shouldn't be defined when building C, and __declspec(align) has been in MSVC for quite some time.
|
|
|
|
|
Logged
|
|
|
|
|
Maurox?
Member
Posts: 82
|
 |
« Reply #2 on: November 26, 2005, 03:03:19 am » |
|
You need the DirectX SDK. As for the other ones, I guess your compiler or PSDK headers may be too old. Boolean shouldn't be defined when building C, and __declspec(align) has been in MSVC for quite some time.
I get the same errors but with vb 6.0 c++ on the readme just say that i need zlib and othe thing more, but nothing esle, 
|
|
|
|
|
Logged
|
|
|
|
|
Josh
Guest
|
 |
« Reply #3 on: December 20, 2005, 07:20:43 pm » |
|
I'm currently trying to compile the lastest source and it's getting hung up on __declspec(restrict). Is this something new to VC 05 which you just started using? I'm currently using VC 03.
|
|
|
|
|
Logged
|
|
|
|
R1CH
Administrator
Member
Posts: 2625
|
 |
« Reply #4 on: December 20, 2005, 07:34:06 pm » |
|
Yup, although I figured older versions would ignore unknown __declspec like they handle unknown pragmas. Oh well, time for some more preprocessor goodness!
|
|
|
|
|
Logged
|
|
|
|
|
Josh
Guest
|
 |
« Reply #5 on: December 20, 2005, 07:35:57 pm » |
|
I just found VC++ Express Edition... is this what you use? Either way I'm going to give it a looksy.
|
|
|
|
|
Logged
|
|
|
|
R1CH
Administrator
Member
Posts: 2625
|
 |
« Reply #6 on: December 20, 2005, 07:57:21 pm » |
|
Yup, I currently build with VC++ Express Edition. The optimizer seems slightly better and the IDE is all-round better, although a bit clunky at times.
|
|
|
|
|
Logged
|
|
|
|
|
dk_sn1p3r
Member
Posts: 23
|
 |
« Reply #7 on: May 13, 2006, 10:03:55 pm » |
|
Express what the heck is that i've got ms visual studo 6.0 and ms visual studio .net 2003 what the heck is express eddition?
|
|
|
|
|
Logged
|
|
|
|
R1CH
Administrator
Member
Posts: 2625
|
 |
« Reply #8 on: May 13, 2006, 10:40:34 pm » |
|
|
|
|
|
|
Logged
|
|
|
|
|
dk_sn1p3r
Member
Posts: 23
|
 |
« Reply #9 on: May 14, 2006, 09:44:53 pm » |
|
I'm sorry I know this isn't the spot but I've got one last question. I know I need to install zlib and libpng. Is there anything else I need for example curl? ATM I'll be compiling with Visual Studio. net 2003 I'm going to look for Express Version just because... Is curl included with microsoft libraries?
|
|
|
|
|
Logged
|
|
|
|
R1CH
Administrator
Member
Posts: 2625
|
 |
« Reply #10 on: May 14, 2006, 10:10:42 pm » |
|
No, they are all 3rd party.
|
|
|
|
|
Logged
|
|
|
|
|
wision
|
 |
« Reply #11 on: May 15, 2006, 02:27:57 am » |
|
since i don't want to start new thread i'll post it here... i tried to build r1q2 in vc++ 2005 express and i get this error while linking cl_main.obj : error LNK2019: unresolved external symbol _Sys_GetAntiCheatAPI referenced in function _CL_LoadAntiCheat_f ./build/binaries/debug/r1q2.exe : fatal error LNK1120: 1 unresolved externals any ideas?
|
|
|
|
|
Logged
|
|
|
|
R1CH
Administrator
Member
Posts: 2625
|
 |
« Reply #12 on: May 15, 2006, 04:52:46 am » |
|
Built it in release mode, debug mode contains some unfinished features right now.
|
|
|
|
|
Logged
|
|
|
|
|
wision
|
 |
« Reply #13 on: May 15, 2006, 05:58:50 am » |
|
thanks..
|
|
|
|
|
Logged
|
|
|
|
|
dk_sn1p3r
Member
Posts: 23
|
 |
« Reply #14 on: May 15, 2006, 12:40:12 pm » |
|
Anyone have any ideas how I can compile the libjpeg code to make the object file(s) for static linking. I've got the zip file from their cite and it contains a .vc makefile. I have no idea what version of visual c it's for, let alone converting it or setting up .net 2003 to make object code. I'm sure there is a way I can run a compile from the command line instead of setting up all the options by hand. Also is the object code for the direct x sdk precompiled or do I need to do that as well?
Thanks again for the help Rich, You Rule!!!
|
|
|
|
|
Logged
|
|
|
|
|