View Single Post
Author Message
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 01-26-2023 , 15:23   Can't use Sys_* functions
Reply With Quote #1

Hello, I need to load/unload modules in the way it is done in the engine:
PHP Code:
CreateInterfaceFn createTestFn Sys_GetFactory("test"); 
But I can't use any function from tier1 interface as there is a conflict:

PHP Code:
/usr/bin/ld: /home/d/alliedmodders/hl2sdk-csgo/lib/linux/tier1_i486.a(interface.o): in function `CreateInterface':
interface.cpp:(.text+0x0): multiple definition of 
`CreateInterface'; _public_smsdk_ext.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: /home/d/alliedmodders/hl2sdk-csgo/lib/linux/tier1_i486.a(convar.o): warning: relocation in read-only section `.text'
/usr/bin/ldwarningcreating DT_TEXTREL in a shared object
clang
errorlinker command failed with exit code 1 (use -v to see invocation
Can somebody give me a tip how I can bypass this problem?
kadet.89 is offline
Send a message via Skype™ to kadet.89