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/ld: warning: creating DT_TEXTREL in a shared object
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can somebody give me a tip how I can bypass this problem?