Solved Including 3rd party libraries

baylf2000

Member
Plugin Developer
Messages
52
Points
8
Sorry for another newb question, but I'm trying to include a third party c++ library (https://github.com/Microsoft/cpprestsdk) in my plugin.

The plugin compiles fine, and generates the its down dll plus a bunch of other 3rd party dlls which I assume are other libraries that cpprest relies on.

I have tried including the entire folder in the ArkApi/Plugins folder, but I end up with an error message during server startup - "
[API][warning] Failed to load plugin - CPPRestAPITest Error code: 126". It seems like error 126 is a generic error message which means "The specified module could not be found.".

Am I unable to use other libraries in my plugin, or, more likely, am I doing something completely wrong?

As always, thanks so much for the help.
 
Advertisement

Official Game Server Partner

Michidu

Administrator
Staff member
Messages
640
Points
93
You can use other libraries. But it looks like you forgot to include some dependencies in your server.
 

baylf2000

Member
Plugin Developer
Messages
52
Points
8
Thanks as always for taking the time to respond.

Yes I worked out eventually that the included DLLs need to go into the same directory as the game exe file, not in the plugin directory.

Life on Linux is so much simpler :)
 
Top