Mechanized Assault & eXploration Reloaded



#1 Jul 30, 2010 2:51 am
ineedhelpfast Offline
Mitglied
Registered since: Jul 30, 2010
Posts: 4


Subject: build help
I build with VS2010 Express but I get a error about "afxres.h" not being found help Angry
↑  ↓

#2 Jul 30, 2010 10:34 am
Eiko Eiko Offline
Moderator, Developer
Registered since: Aug 03, 2007
Posts: 604


Subject: Re: build help
Hi,

please try replacing the line #include "afxres.h" by #include "windows.h" in the file MAX.rc

Maybe this fixes your problem.
↑  ↓

#3 Jul 30, 2010 8:36 pm
ineedhelpfast Offline
Mitglied
Registered since: Jul 30, 2010
Posts: 4


Subject: Re: build help
ok i did that but now i get a new error it is this:

Quote:
1>------ Build started: Project: MAXR, Configuration: Debug Win32 ------
1>
1>MAX.rc(57): error RC2135: file not found: maxr.ico
1>
1>
1>MAX.rc(58): error RC2135: file not found: maxr.ico
1>
1>
1>MAX.rc(65): error RC2135: file not found: maxr.bmp
1>
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

will that be the nhelp thank u
↑  ↓

#4 Jul 30, 2010 10:10 pm
Eiko Eiko Offline
Moderator, Developer
Registered since: Aug 03, 2007
Posts: 604


Subject: Re: build help
You need to copy the two files (maxr.ico and maxr.bmp) from the game directory to the source directoy. Then it should compile successfully. Smiling
↑  ↓

#5 Jul 31, 2010 10:31 pm
ineedhelpfast Offline
Mitglied
Registered since: Jul 30, 2010
Posts: 4


Subject: Re: build help
Quote by Eiko:
You need to copy the two files (maxr.ico and maxr.bmp) from the game directory to the source directoy. Then it should compile successfully. Smiling

k i did it from the latest relases of the game and it be work thx!bai
↑  ↓

#6 Jul 31, 2010 10:42 pm
ineedhelpfast Offline
Mitglied
Registered since: Jul 30, 2010
Posts: 4


Subject: Re: build help
k i did it but now i have this thing

Quote:

<snip>
1>main.obj : error LNK2001: unresolved external symbol _SDL_GetError
1>pcx.obj : error LNK2001: unresolved external symbol _SDL_GetError
1>menus.obj : error LNK2001: unresolved external symbol _SDL_Delay
1>mveplayer.obj : error LNK2001: unresolved external symbol _SDL_Delay
1>server.obj : error LNK2001: unresolved external symbol _SDL_Delay
1>hud.obj : error LNK2019: unresolved external symbol _SDL_Delay referenced in function "private: void __thiscall cGameGUI::makePanel(bool)" (?makePanel@cGameGUI@@AAEX_N@Z)
1>loaddata.obj : error LNK2001: unresolved external symbol _SDL_Delay
1>main.obj : error LNK2001: unresolved external symbol _SDL_Delay
1>mapdownload.obj : error LNK2001: unresolved external symbol _SDL_Delay
1>hud.obj : error LNK2019: unresolved external symbol _SDL_SetClipRect referenced in function "private: void __thiscall cGameGUI::drawUnitCircles(void)" (?drawUnitCircles@cGameGUI@@AAEXXZ)
1>input.obj : error LNK2019: unresolved external symbol _SDL_EnableKeyRepeat referenced in function "public: __thiscall cInput::cInput(void)" (?0cInput@@QAE@XZ)
1>input.obj : error LNK2019: unresolved external symbol _SDL_EnableUNICODE referenced in function "public: __thiscall cInput::cInput(void)" (?0cInput@@QAE@XZ)
1>video.obj : error LNK2001: unresolved external symbol _SDL_UpdateRect
1>loaddata.obj : error LNK2019: unresolved external symbol _SDL_UpdateRect referenced in function "void __cdecl MakeLog(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,int)" (?MakeLog@@YAXV?$basic_string@DU?$char_traits@D@st
d@@V?$allocator@D@2@@std@@HH@Z)
1>main.obj : error LNK2001: unresolved external symbol _SDL_UpdateRect
1>mouse.obj : error LNK2001: unresolved external symbol _SDL_UpdateRect
1>mveplayer.obj : error LNK2001: unresolved external symbol _SDL_UpdateRect
1>loaddata.obj : error LNK2019: unresolved external symbol _Mix_LoadWAV_RW referenced in function "int __cdecl LoadSoundfile(struct Mix_Chunk * &,char const *,char const *)" (?LoadSoundfile@@YAHAAPAUMix_Chunk@@PBD1@Z)
1>SDL_flic.obj : error LNK2001: unresolved external symbol _SDL_UnlockSurface
1>loaddata.obj : error LNK2019: unresolved external symbol _SDL_UnlockSurface referenced in function "int __cdecl LoadVehicles(void)" (?LoadVehicles@@YAHXZ)
1>main.obj : error LNK2001: unresolved external symbol _SDL_UnlockSurface
1>menus.obj : error LNK2001: unresolved external symbol _SDL_UnlockSurface
1>mveplayer.obj : error LNK2001: unresolved external symbol _SDL_UnlockSurface
1>SDL_flic.obj : error LNK2001: unresolved external symbol _SDL_LockSurface
1>loaddata.obj : error LNK2019: unresolved external symbol _SDL_LockSurface referenced in function "int __cdecl LoadVehicles(void)" (?LoadVehicles@@YAHXZ)
1>main.obj : error LNK2001: unresolved external symbol _SDL_LockSurface
1>menus.obj : error LNK2001: unresolved external symbol _SDL_LockSurface
1>mveplayer.obj : error LNK2001: unresolved external symbol _SDL_LockSurface
1>log.obj : error LNK2019: unresolved external symbol _SDL_CreateMutex referenced in function "public: __thiscall cMutex::cMutex(void)" (?0cMutex@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol _SDL_CreateMutex
1>network.obj : error LNK2001: unresolved external symbol _SDL_CreateMutex
1>server.obj : error LNK2001: unresolved external symbol _SDL_CreateMutex
1>log.obj : error LNK2019: unresolved external symbol _SDL_DestroyMutex referenced in function "public: __thiscall cMutex::~cMutex(void)" (?1cMutex@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol _SDL_DestroyMutex
1>network.obj : error LNK2001: unresolved external symbol _SDL_DestroyMutex
1>server.obj : error LNK2001: unresolved external symbol _SDL_DestroyMutex
1>main.obj : error LNK2019: unresolved external symbol _SDL_Init referenced in function "int __cdecl initSDL(void)" (?initSDL@@YAHXZ)
1>mveplayer.obj : error LNK2001: unresolved external symbol _SDL_Init
1>main.obj : error LNK2019: unresolved external symbol _SDLNet_Init referenced in function "int __cdecl initNet(void)" (?initNet@@YAHXZ)
1>main.obj : error LNK2019: unresolved external symbol _SDL_Quit referenced in function "void __cdecl Quit(void)" (?Quit@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _SDLNet_Quit referenced in function "void __cdecl Quit(void)" (?Quit@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol _SDL_ShowCursor referenced in function _SDL_main
1>mveplayer.obj : error LNK2001: unresolved external symbol _SDL_ShowCursor
1>main.obj : error LNK2019: unresolved external symbol _SDL_WaitThread referenced in function _SDL_main
1>mapdownload.obj : error LNK2001: unresolved external symbol _SDL_WaitThread
1>network.obj : error LNK2001: unresolved external symbol _SDL_WaitThread
1>server.obj : error LNK2001: unresolved external symbol _SDL_WaitThread
1>main.obj : error LNK2019: unresolved external symbol _SDL_CreateThread referenced in function _SDL_main
1>mapdownload.obj : error LNK2001: unresolved external symbol _SDL_CreateThread
1>network.obj : error LNK2001: unresolved external symbol _SDL_CreateThread
1>server.obj : error LNK2001: unresolved external symbol _SDL_CreateThread
1>map.obj : error LNK2019: unresolved external symbol _SDL_SetColors referenced in function "private: struct SDL_Surface * __thiscall cMap::LoadTerrGraph(struct SDL_RWops *,int,struct SDL_Color *,int)" (?LoadTerrGraph@cMap@@AAEPAUSDL_Surface@@PAUSDL_RW
ops@@HPAUSDL_Color@@H@Z)
1>mveplayer.obj : error LNK2001: unresolved external symbol _SDL_SetColors
1>SDL_flic.obj : error LNK2001: unresolved external symbol _SDL_SetColors
1>map.obj : error LNK2019: unresolved external symbol _SDL_ReadLE16 referenced in function "public: bool __thiscall cMap::LoadMap(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?LoadMap@cMap@@QAE_NV?$basic_string@DU?$char_trai
ts@D@std@@V?$allocator@D@2@@std@@@Z)
1>menus.obj : error LNK2001: unresolved external symbol _SDL_ReadLE16
1>mveplayer.obj : error LNK2001: unresolved external symbol _SDL_ReadLE16
1>pcx.obj : error LNK2001: unresolved external symbol _SDL_ReadLE16
1>menuitems.obj : error LNK2019: unresolved external symbol _SDL_MapRGB referenced in function "private: void __thiscall cMenuReportsScreen::drawScoreGraph(void)" (?drawScoreGraph@cMenuReportsScreen@@AAEXXZ)
1>pcx.obj : error LNK2001: unresolved external symbol _SDL_MapRGB
1>unifonts.obj : error LNK2001: unresolved external symbol _SDL_MapRGB
1>video.obj : error LNK2001: unresolved external symbol _SDL_MapRGB
1>mouse.obj : error LNK2019: unresolved external symbol _SDL_WarpMouse referenced in function "public: void __thiscall cMouse::setPos(int,int)" (?setPos@cMouse@@QAEXHH@Z)
1>mouse.obj : error LNK2019: unresolved external symbol _SDL_GetMouseState referenced in function "public: int __thiscall cMouse::GetMouseButton(void)" (?GetMouseButton@cMouse@@QAEHXZ)
1>mveplayer.obj : error LNK2019: unresolved external symbol _SDL_PauseAudio referenced in function "void __cdecl MVEPlayerEventHandler(void)" (?MVEPlayerEventHandler@@YAXXZ)
1>mveplayer.obj : error LNK2019: unresolved external symbol _SDL_CloseAudio referenced in function _MVEPlayer
1>mveplayer.obj : error LNK2019: unresolved external symbol _SDL_SetVideoMode referenced in function _MVEPlayer
1>video.obj : error LNK2001: unresolved external symbol _SDL_SetVideoMode
1>mveplayer.obj : error LNK2019: unresolved external symbol _SDL_UnlockAudio referenced in function _MVEPlayer
1>mveplayer.obj : error LNK2019: unresolved external symbol _SDL_LockAudio referenced in function _MVEPlayer
1>mveplayer.obj : error LNK2019: unresolved external symbol _SDL_SoftStretch referenced in function _MVEPlayer
1>mveplayer.obj : error LNK2019: unresolved external symbol _SDL_GetAudioStatus referenced in function _MVEPlayer
1>mveplayer.obj : error LNK2019: unresolved external symbol _SDL_OpenAudio referenced in function _MVEPlayer
1>mveplayer.obj : error LNK2019: unresolved external symbol _SDL_ReadLE32 referenced in function _MVEPlayer
1>mveplayer.obj : error LNK2019: unresolved external symbol _SDL_GetVideoInfo referenced in function _MVEPlayer
1>video.obj : error LNK2001: unresolved external symbol _SDL_GetVideoInfo
1>mveplayer.obj : error LNK2019: unresolved external symbol _SDL_WasInit referenced in function _MVEPlayer
1>network.obj : error LNK2019: unresolved external symbol _SDLNet_TCP_Close referenced in function "public: __thiscall sSocket::~sSocket(void)" (?1sSocket@@QAE@XZ)
1>network.obj : error LNK2019: unresolved external symbol _SDLNet_TCP_Send referenced in function "public: int __thiscall cTCP::sendTo(int,int,char *)" (?sendTo@cTCP@@QAEHHHPAD@Z)
1>network.obj : error LNK2019: unresolved external symbol _SDLNet_TCP_Open referenced in function "public: int __thiscall cTCP::create(void)" (?create@cTCP@@QAEHXZ)
1>network.obj : error LNK2019: unresolved external symbol _SDLNet_ResolveHost referenced in function "public: int __thiscall cTCP::create(void)" (?create@cTCP@@QAEHXZ)
1>network.obj : error LNK2019: unresolved external symbol _SDLNet_TCP_Recv referenced in function "public: void __thiscall cTCP::HandleNetworkThread(void)" (?HandleNetworkThread@cTCP@@QAEXXZ)
1>network.obj : error LNK2019: unresolved external symbol _SDLNet_TCP_Accept referenced in function "public: void __thiscall cTCP::HandleNetworkThread(void)" (?HandleNetworkThread@cTCP@@QAEXXZ)
1>network.obj : error LNK2019: unresolved external symbol _SDLNet_DelSocket referenced in function "public: void __thiscall cTCP::HandleNetworkThread(void)" (?HandleNetworkThread@cTCP@@QAEXXZ)
1>network.obj : error LNK2019: unresolved external symbol _SDLNet_AddSocket referenced in function "public: void __thiscall cTCP::HandleNetworkThread(void)" (?HandleNetworkThread@cTCP@@QAEXXZ)
1>network.obj : error LNK2019: unresolved external symbol _SDLNet_CheckSockets referenced in function "public: void __thiscall cTCP::HandleNetworkThread(void)" (?HandleNetworkThread@cTCP@@QAEXXZ)
1>network.obj : error LNK2019: unresolved external symbol _SDLNet_AllocSocketSet referenced in function "public: __thiscall cTCP::cTCP(void)" (?0cTCP@@QAE@XZ)
1>sound.obj : error LNK2019: unresolved external symbol _Mix_CloseAudio referenced in function "void __cdecl CloseSound(void)" (?CloseSound@@YAXXZ)
1>sound.obj : error LNK2019: unresolved external symbol _Mix_PlayMusic referenced in function "void __cdecl PlayMusic(char const *)" (?PlayMusic@@YAXPBD@Z)
1>sound.obj : error LNK2019: unresolved external symbol _Mix_LoadMUS referenced in function "void __cdecl PlayMusic(char const *)" (?PlayMusic@@YAXPBD@Z)
1>sound.obj : error LNK2019: unresolved external symbol _Mix_PlayChannelTimed referenced in function "void __cdecl play(struct Mix_Chunk *)" (?play@@YAXPAUMix_Chunk@@@Z)
1>sound.obj : error LNK2019: unresolved external symbol _Mix_FreeMusic referenced in function "void __cdecl StopMusic(void)" (?StopMusic@@YAXXZ)
1>sound.obj : error LNK2019: unresolved external symbol _Mix_HaltChannel referenced in function "int __cdecl PlayFXLoop(struct Mix_Chunk *)" (?PlayFXLoop@@YAHPAUMix_Chunk@@@Z)
1>sound.obj : error LNK2019: unresolved external symbol _Mix_HookMusicFinished referenced in function "int __cdecl InitSound(int,int)" (?InitSound@@YAHHH@Z)
1>sound.obj : error LNK2019: unresolved external symbol _Mix_QuerySpec referenced in function "int __cdecl InitSound(int,int)" (?InitSound@@YAHHH@Z)
1>sound.obj : error LNK2019: unresolved external symbol _Mix_OpenAudio referenced in function "int __cdecl InitSound(int,int)" (?InitSound@@YAHHH@Z)
1>video.obj : error LNK2019: unresolved external symbol _SDL_Flip referenced in function "public: void __thiscall cVideo::draw(void)" (?draw@cVideo@@QAEXXZ)
1>video.obj : error LNK2019: unresolved external symbol _SDL_WM_SetCaption referenced in function "public: void __thiscall cVideo::initSplash(void)" (?initSplash@cVideo@@QAEXXZ)
1>video.obj : error LNK2019: unresolved external symbol _SDL_WM_SetIcon referenced in function "public: void __thiscall cVideo::initSplash(void)" (?initSplash@cVideo@@QAEXXZ)
1>video.obj : error LNK2019: unresolved external symbol _SDL_LoadBMP_RW referenced in function "public: void __thiscall cVideo::initSplash(void)" (?initSplash@cVideo@@QAEXXZ)
1>video.obj : error LNK2019: unresolved external symbol _SDL_ListModes referenced in function "public: bool __thiscall cVideo::doDetection(void)" (?doDetection@cVideo@@QAE_NXZ)
1>MSVCRT.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>C:\Users\jackson\Documents\MAX\Release\MAXR.exe : fatal error LNK1120: 76 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

and i run the debug version it say:
Quote:
(EE): Missing a file needed for game. Check log and config!
(EE): Error while loading data!

plz help me tahnks
↑  ↓

#7 Aug 01, 2010 6:27 pm
alzi alzi Offline
Developer, Moderator
Registered since: Aug 12, 2007
Posts: 339


Subject: Re: build help
The errors occure because you have not linked against the SDL libraries.
Did you follow this tutorial how to compile maxr with VS?
Everything should be explained in there (except that you had to rename "afxres.h" to "windows.h". This is a thing that has to be done for the express edition only.)

PS: how did you run the debugversion? According to the build log the compiling failed and you should not have an executable?!
Albert Ziegenhagel
↑  ↓

Pages (1): 1


All times are GMT +01:00. Current time: 12:21 am.