AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Can't use Sys_* functions (https://forums.alliedmods.net/showthread.php?t=341496)

kadet.89 01-26-2023 15:23

Can't use Sys_* functions
 
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?


All times are GMT -4. The time now is 12:21.

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