can't compile alien swarm code

Grab your favourite IDE and tinker with the innards of game engines

can't compile alien swarm code

Postby stoopdapoop on Sat Jul 31, 2010 10:56 am

I've followed all the directions on the vdc (I'm compiling with Visual C++ 2005 express) and I get these errors when trying to build my code

Code: Select all
1>------ Build started: Project: Client (Swarm), Configuration: Release Win32 ------
2>------ Build started: Project: Server (Swarm), Configuration: Release Win32 ------
2>Performing Pre-Build Event...
1>Performing Pre-Build Event...
2>Linking...
1>Linking...
2>   Creating library .\Release_swarm\server.lib and object .\Release_swarm\server.exp
1>   Creating library .\Release_swarm\client.lib and object .\Release_swarm\client.exp
1>contentcontroldialog.obj : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "public: void __thiscall CContentControlDialog::ResetPassword(void)" (?ResetPassword@CContentControlDialog@@QAEXXZ)
1>npsclient.lib(npclientwraps.obj) : error LNK2001: unresolved external symbol __imp__RegCloseKey@4
1>contentcontroldialog.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function "public: void __thiscall CContentControlDialog::ResetPassword(void)" (?ResetPassword@CContentControlDialog@@QAEXXZ)
1>vaddonassociation.obj : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24
2>registry.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function "public: virtual int __thiscall CRegistry::ReadInt(char const *,int)" (?ReadInt@CRegistry@@UAEHPBDH@Z)
1>npsclient.lib(npclientwraps.obj) : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24
2>registry.obj : error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "public: virtual void __thiscall CRegistry::WriteInt(char const *,int)" (?WriteInt@CRegistry@@UAEXPBDH@Z)
1>contentcontroldialog.obj : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function "public: void __thiscall CContentControlDialog::ResetPassword(void)" (?ResetPassword@CContentControlDialog@@QAEXXZ)
2>registry.obj : error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "public: virtual bool __thiscall CRegistry::DirectInit(char const *)" (?DirectInit@CRegistry@@UAE_NPBD@Z)
1>vaddonassociation.obj : error LNK2001: unresolved external symbol __imp__RegOpenKeyExA@20
2>registry.obj : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "public: virtual void __thiscall CRegistry::Shutdown(void)" (?Shutdown@CRegistry@@UAEXXZ)
1>npsclient.lib(npclientwraps.obj) : error LNK2001: unresolved external symbol __imp__RegOpenKeyExA@20
2>.\Release_swarm\server.dll : fatal error LNK1120: 4 unresolved externals
1>contentcontroldialog.obj : error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "protected: void __thiscall CContentControlDialog::WriteToken(char const *)" (?WriteToken@CContentControlDialog@@IAEXPBD@Z)
1>optionssubmultiplayer.obj : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "private: enum ConversionErrorType __thiscall COptionsSubMultiplayer::ConvertBMPToTGA(char const *,char const *)" (?ConvertBMPToTGA@COptionsSubMultiplayer@@AAE?AW4ConversionErrorType@@PBD0@Z)
1>optionssubmultiplayer.obj : error LNK2019: unresolved external symbol __imp__DeleteDC@4 referenced in function "private: enum ConversionErrorType __thiscall COptionsSubMultiplayer::ConvertBMPToTGA(char const *,char const *)" (?ConvertBMPToTGA@COptionsSubMultiplayer@@AAE?AW4ConversionErrorType@@PBD0@Z)
1>optionssubmultiplayer.obj : error LNK2019: unresolved external symbol __imp__GetDIBits@28 referenced in function "private: enum ConversionErrorType __thiscall COptionsSubMultiplayer::ConvertBMPToTGA(char const *,char const *)" (?ConvertBMPToTGA@COptionsSubMultiplayer@@AAE?AW4ConversionErrorType@@PBD0@Z)
1>optionssubmultiplayer.obj : error LNK2019: unresolved external symbol __imp__CreateCompatibleDC@4 referenced in function "private: enum ConversionErrorType __thiscall COptionsSubMultiplayer::ConvertBMPToTGA(char const *,char const *)" (?ConvertBMPToTGA@COptionsSubMultiplayer@@AAE?AW4ConversionErrorType@@PBD0@Z)
2>Build log was saved at "file://c:\Documents and Settings\Stoopdapoop\My Documents\swarmclean\src\game\server\Release_swarm\BuildLog.htm"
1>optionssubmultiplayer.obj : error LNK2019: unresolved external symbol __imp__GetObjectA@12 referenced in function "private: enum ConversionErrorType __thiscall COptionsSubMultiplayer::ConvertBMPToTGA(char const *,char const *)" (?ConvertBMPToTGA@COptionsSubMultiplayer@@AAE?AW4ConversionErrorType@@PBD0@Z)
1>vfoundpublicgames.obj : error LNK2019: unresolved external symbol __imp__ShellExecuteA@24 referenced in function "public: virtual void __thiscall BaseModUI::FoundPublicGames::OnCommand(char const *)" (?OnCommand@FoundPublicGames@BaseModUI@@UAEXPBD@Z)
1>vaddons.obj : error LNK2001: unresolved external symbol __imp__ShellExecuteA@24
1>vgetlegacydata.obj : error LNK2001: unresolved external symbol __imp__ShellExecuteA@24
1>vgui_controls.lib(FileOpenDialog.obj) : error LNK2001: unresolved external symbol __imp__ShellExecuteA@24
1>vaddonassociation.obj : error LNK2019: unresolved external symbol __imp__ShellExecuteExA@4 referenced in function "void __cdecl RegisterAssocation(bool)" (?RegisterAssocation@@YAX_N@Z)
1>.\Release_swarm\client.dll : fatal error LNK1120: 11 unresolved externals
2>Server (Swarm) - 5 error(s), 0 warning(s)
1>Build log was saved at "file://c:\Documents and Settings\Stoopdapoop\My Documents\swarmclean\src\game\client\Release_swarm\BuildLog.htm"
1>Client (Swarm) - 20 error(s), 0 warning(s)
3>------ Build started: Project: MissionChooser, Configuration: Release Win32 ------
3>Performing Pre-Build Event...
3>Linking...
3>   Creating library .\Release\.\missionchooser.lib and object .\Release\.\missionchooser.exp
3>vgui_controls.lib(FileOpenDialog.obj) : error LNK2019: unresolved external symbol __imp__ShellExecuteA@24 referenced in function "protected: virtual void __thiscall vgui::FileOpenDialog::OnOpenInExplorer(void)" (?OnOpenInExplorer@FileOpenDialog@vgui@@MAEXXZ)
3>.\Release\.\missionchooser.dll : fatal error LNK1120: 1 unresolved externals
3>Build log was saved at "file://c:\Documents and Settings\Stoopdapoop\My Documents\swarmclean\src\game\missionchooser\Release\BuildLog.htm"
3>MissionChooser - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========


I've made no edits, and I've added winmm.lib, user32.lib, and kernel32.lib to the linker input dependencies for all 3 projects (both debug and release), but no dice D:

Anyone know what's up?
I'm Brown
Image
User avatar
stoopdapoop
Veteran
Veteran
 
Joined: Sun Aug 21, 2005 2:14 am
Location: Ann Arbor, MI

Re: can't compile alien swarm code

Postby zombie@computer on Sat Jul 31, 2010 6:02 pm

i think you may need Advapi32.lib and gdi32.lib

(just quick googling for function names untill a resource tells me where they are defined.
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Re: can't compile alien swarm code

Postby stoopdapoop on Thu Aug 05, 2010 8:43 am

ah, thanks zombie :D
I'm Brown
Image
User avatar
stoopdapoop
Veteran
Veteran
 
Joined: Sun Aug 21, 2005 2:14 am
Location: Ann Arbor, MI

Return to Programming

Who is online

Users browsing this forum: No registered users

cron