'Unresolved external symbol' calling a static function from a plugin
I have a plugin (from Stereolabs to access a stereocamera in unreal) and another one to access the PointCloudLibrary (pcl).
In an Actor class in my game I want to access a static method I wrote in the Stereolabs plugin:
I cannot make this a UFunction, because the Pointcloud Pointer is not known by unreal. But as it is a public static method I should be able to access it like this:
But when I try to compile, i get this error:
I did include the Plugin Modules in my Game.Build.cs and when I call another static Method (being a UFunction this time) from the UZEDFunctionLibrary, everything is fine.
Do you know if this is because one is a UFunction and the other one isnt? Or what else could case this issue? Thanks for any help!
asked Jan 21 '19 at 12:27 PM in C++ Programming
I don't know what are this functions but you might didn't included file with this function (GetPointCloudAtRoi()) or you may did some mistake in declaration. First check where GetPointCloudAtRoi() is then include this file. Next check where do you have your enum ESlRetrieveResult declaration include this one (if it's another file) too.
Error you get is explict. Compiler can't found definition for static enum ESlRetrieveResult. (Or GetPointCloudAtRoi())
you should add PublicDependencyModuleNames.Add("OtherPluginModuleName"); to your plugin's build.cs file.
What do you need two different plugins for? It's not recomended.
If you will still have problem then comment please.
Hope this helps.
answered Jan 23 '19 at 10:36 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here