LNK2019 unresolved external symbol obs_module_text

obsgnub

New Member
I receive a LNK2019 error on obs_module_text when I try to compile the example code below. I am using Visual Studio 2015 and have included obs.lib in the Linker > Input > Additional Dependencies part of the project properties.

obs_module_text is declared in obs-module.h of the libobs project, which generates obs.lib, so it looks to me like my code should compile and link. This of course means that there is some fundamental understanding that I'm lacking.

Any help with this will be greatly appreciated!

Code:
#include <obs-module.h>

OBS_DECLARE_MODULE()

struct obs_source_info my_source;

bool obs_module_load(void)
{   
    obs_module_text("WAT");
   
    return true;
}
 

obsgnub

New Member
"Lack of understanding" is the operative phrase at play here. Adding the below line allowed me to compile / link successfully

Code:
OBS_MODULE_USE_DEFAULT_LOCALE("my-plugin", "en-US")

(edit: spelling)
 
Top