• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient OTClient adding an arbitrary library in CMake

Source

Veteran OT User
Joined
May 31, 2020
Messages
230
Reaction score
324
Location
OpenTibia .dev
GitHub
source61
I tried adding a library I have stored in the directory libs using a temporary hack since I don't know CMake:
Code:
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -L ../libs -lmylib")

If the name or directory is wrong it complains so it seems to be working... except I still get this error at the end:
Code:
... undefined reference to `my_function'

Anyone has any ideas?
 
Back
Top