.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   RACC (http://forums.bots-united.com/forumdisplay.php?f=11)
-   -   Compiling Problem (http://forums.bots-united.com/showthread.php?t=3863)

Vradash 17-04-2005 18:46

Compiling Problem
 
Hi,when i try to compile the latest RACC Source,i get the following errors:
Code:

--------------------Configuration: cstrike - Win32 Release--------------------
Compiling...
bmpfile.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
dxffile.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
mapdata.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
pathmachine.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
client.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
interface.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
console.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
display.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
lrand.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
math.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
mfile.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
util.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
bot.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
bot_body.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
bot_chat.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
bot_cognition.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
bot_combat.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
bot_ears.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
bot_eyes.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
bot_navigation.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
bot_start.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
weapons.cpp
c:\racc\release\common\racc.h(359) : fatal error C1083: Cannot open include file: 'dllapi.h': No such file or directory
Error executing cl.exe.

racc.dll - 22 error(s), 0 warning(s)

I set every Multiplayer Directory of the SDK as Include Source.

After I installed the Patched SDK,i get this:
Code:

--------------------Configuration: cstrike - Win32 Release--------------------
Compiling...
bmpfile.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
bot.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
bot_body.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
bot_chat.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
bot_client.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
bot_combat.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
bot_ears.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
bot_eyes.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
bot_navigation.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
bot_start.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
dll.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
dxffile.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
engine.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
linkfunc.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
mapdata.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
mfile.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
pathmachine.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
util.cpp
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
Error executing cl.exe.

racc.dll - 18 error(s), 0 warning(s)


sPlOrYgOn 17-04-2005 19:30

Re: Compiling Problem
 
you'll need the metamod source too
http://www.metamod.org/
it's a metamod plugin now

Pierre-Marie Baty 17-04-2005 23:55

Re: Compiling Problem
 
The source code you're trying to compile is certainly very outdated. Get this one instead :

http://filebase.bots-united.com/inde...on=file&id=291

it's only a few months old. The one you have is MUCH older (spring 2004, I bet).

*edit* I will probably post an updated version in a few days (weeks?), as I've made some progress in the navigation recently.

Vradash 18-04-2005 19:45

Re: Compiling Problem
 
Ah,thanks Guyz.
I will try soon. (If i find MS VC++ Again XD )

Vradash 21-04-2005 17:45

Re: Compiling Problem
 
Hmm...it compiles now many files but on interface.cpp (i think) i get this error again:
c:\programme\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include

Pierre-Marie Baty 22-04-2005 03:39

Re: Compiling Problem
 
You must not link it against the MFC libraries. It is not a MFC application. Change your project settings and tell it to compile a standalone, barebones Win32 DLL. Depending on the compiler you're using, the fix is different.

Vradash 22-04-2005 14:35

Re: Compiling Problem
 
But when i remove the MFC Includes,it asks for afxwin.h

EDIT#1:Now it does somethin´ weird: *REMOVED*
EDIT#2:OMG,it worked...i will try... *happy*
EDIT#3:Grr...Counter-Strike crashes,when i try to start a game...
I tried it with and without metamod.

Rifleman 30-04-2005 02:20

Re: Compiling Problem
 
Hmm.... Does you mean this ? About mfc unlinking ?
http://img19.echo.cx/img19/4695/mfc1il.th.gif

Pierre-Marie Baty 30-04-2005 19:09

Re: Compiling Problem
 
Yes, that's it.

Rifleman 30-04-2005 19:48

Re: Compiling Problem
 
The problem still there

Pierre-Marie Baty 01-05-2005 06:48

Re: Compiling Problem
 
What's the compiler output ?

Rifleman 01-05-2005 10:53

Re: Compiling Problem
 
c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>

Pierre-Marie Baty 01-05-2005 20:07

Re: Compiling Problem
 
I think you forgot to undefine AFX and MFC in the C/C++ tab.

Anyway, if you use the .dsw/.dsp files I provide, there should not be any compiling problem.

leandrotsampa 06-02-2010 20:08

Re: Compiling Problem
 
My problem has also ai I packed as follows:
I was in Project> Settings

In tab C / C + + Project Options
replace all of:

Code:

/nologo /G6 /MT /W3 /WX /GX /ZI /Od /I "..\common" /I "../../../devtools/sdk/Single-Player Source/cl_dll" /I "../../../devtools/sdk/Single-Player Source/common" /I "../../../devtools/sdk/Single-Player Source/dlls" /I "../../../devtools/sdk/Single-Player Source/engine" /I "../../../devtools/sdk/Single-Player Source/game_shared" /I "../../../devtools/sdk/Single-Player Source/pm_shared" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "RACC" /D "ASHEEP_DLL" /Fr".\Release/" /Fp"./Release/racc.pch" /YX /Fo".\Release/" /Fd".\Release/" /FD /c
to

Code:

/nologo /G6 /MT /W3 /WX /GX /ZI /Od /I "..\common" /I "..\devtools\sdk\Single-Player Source\cl_dll" /I "..\devtools\sdk\Single-Player Source\common" /I "..\devtools\sdk\Single-Player Source\dlls" /I "..\devtools\sdk\Single-Player Source\engine" /I "..\devtools\sdk\Single-Player Source\game_shared" /I "..\devtools\sdk\Single-Player Source\pm_shared" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "RACC" /D "ASHEEP_DLL" /Fr".\Release/" /Fp"./Release/racc.pch" /YX /Fo".\Release/" /Fd".\Release/" /FD /c
That's how I packed and compile conssegui RACC Template 2

leandrotsampa 06-02-2010 20:19

Re: Compiling Problem
 
If you need to modify the code ready to compile without errors occur just tell me.
Att


All times are GMT +2. The time now is 16:23.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.