Raised This Month: $ Target: $400
 0% 

cstrike & regex


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Humming Bird
Junior Member
Join Date: May 2007
Old 05-28-2007 , 19:10   cstrike & regex
Reply With Quote #1

These two modules are the only two giving linker errors. Mayhaps I'm missing a library to link against? Only funny thing is, if I build regex with debug, it builds fine... but cstrike dies on both. (Note I'm trying to build both in "Release" settings)

Code:
cstrike.obj : error LNK2019: unresolved external symbol "void __cdecl InitializeHacks(void)" (?InitializeHacks@@YAXXZ) referenced in function "void __cdecl OnAmxxAttach(void)" (?OnAmxxAttach@@YAXXZ)
cstrike.obj : error LNK2019: unresolved external symbol "void __cdecl ShutdownHacks(void)" (?ShutdownHacks@@YAXXZ) referenced in function "void __cdecl OnAmxxDetach(void)" (?OnAmxxDetach@@YAXXZ)
amxxmodule.obj : error LNK2019: unresolved external symbol "void __cdecl OnPluginsLoaded(void)" (?OnPluginsLoaded@@YAXXZ) referenced in function _AMXX_PluginsLoaded
Code:
CRegEx.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) referenced in function "public: void __thiscall RegEx::Clear(void)" (?Clear@RegEx@@QAEXXZ)
module.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
CRegEx.obj : error LNK2019: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) referenced in function "public: int __thiscall RegEx::Match(char const *)" (?Match@RegEx@@QAEHPBD@Z)
module.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
module.obj : error LNK2019: unresolved external symbol ___security_cookie referenced in function "int __cdecl GetPEL(void)" (?GetPEL@@YAHXZ)
amxxmodule.obj : error LNK2001: unresolved external symbol ___security_cookie
pcre.lib(pcre_compile.obj) : error LNK2001: unresolved external symbol ___security_cookie
pcre.lib(pcre_exec.obj) : error LNK2001: unresolved external symbol ___security_cookie
module.obj : error LNK2019: unresolved external symbol ___CxxFrameHandler3 referenced in function __ehhandler$?GetPEL@@YAHXZ
module.obj : error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function __ehhandler$?GetPEL@@YAHXZ
amxxmodule.obj : error LNK2001: unresolved external symbol @__security_check_cookie@4
pcre.lib(pcre_compile.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
pcre.lib(pcre_exec.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
module.obj : error LNK2019: unresolved external symbol _atexit referenced in function "void __cdecl `dynamic initializer for 'PEL''(void)" (??__EPEL@@YAXXZ)
amxxmodule.obj : error LNK2019: unresolved external symbol _vsnprintf referenced in function "void __cdecl MF_Log(char const *,...)" (?MF_Log@@YAXPBDZZ)
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
pcre.lib(pcre_globals.obj) : error LNK2001: unresolved external symbol _free
pcre.lib(pcre_globals.obj) : error LNK2001: unresolved external symbol _malloc
pcre.lib(pcre_compile.obj) : error LNK2019: unresolved external symbol _strncmp referenced in function _check_posix_name
pcre.lib(pcre_compile.obj) : error LNK2019: unresolved external symbol _memmove referenced in function _compile_branch
pcre.lib(pcre_exec.obj) : error LNK2001: unresolved external symbol _memmove
pcre.lib(pcre_compile.obj) : error LNK2019: unresolved external symbol _memcpy referenced in function _compile_branch
pcre.lib(pcre_exec.obj) : error LNK2001: unresolved external symbol _memcpy
pcre.lib(pcre_exec.obj) : error LNK2019: unresolved external symbol _longjmp referenced in function _match
pcre.lib(pcre_exec.obj) : error LNK2019: unresolved external symbol __setjmp3 referenced in function _match
Humming Bird is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 05-29-2007 , 00:20   Re: cstrike & regex
Reply With Quote #2

Not so sure about regex, but for the cstrike module you need to add the CstrikeHacks.cpp file to the project file.
sawce is offline
Humming Bird
Junior Member
Join Date: May 2007
Old 05-29-2007 , 14:54   Re: cstrike & regex
Reply With Quote #3

Yep adding CstrikeHacks.cpp fixed it... Now regex, (and my other problem) http://forums.alliedmods.net/showthread.php?t=55752
Humming Bird is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode