Skip to content

Error while creating shared object from cpp_plugin_pcl.cpp #1

Description

@ashokbugude

I am trying to create shared object in Linux. But I face below errors.
Pls help resolve the issues

ayyon@zayyon-Lenovo-ideapad-300-15ISK:~/Downloads/PointCloudUnity-master/CppPluginPCL/build$ make
Scanning dependencies of target cpp_plugin_pcl
[ 50%] Building CXX object CMakeFiles/cpp_plugin_pcl.dir/cpp_plugin_pcl.cpp.o
/home/zayyon/Downloads/PointCloudUnity-master/CppPluginPCL/cpp_plugin_pcl.cpp:1:30: error: expected constructor, destructor, or type conversion before ‘(’ token
#define EXPORT_API __declspec(dllexport) // Visual Studio needs annotating expo
^
/home/zayyon/Downloads/PointCloudUnity-master/CppPluginPCL/cpp_plugin_pcl.cpp:74:2: note: in expansion of macro ‘EXPORT_API’
EXPORT_API bool structureTest(mycloud* myc) {
^
/home/zayyon/Downloads/PointCloudUnity-master/CppPluginPCL/cpp_plugin_pcl.cpp:1:30: error: expected constructor, destructor, or type conversion before ‘(’ token
#define EXPORT_API __declspec(dllexport) // Visual Studio needs annotating expo
^
/home/zayyon/Downloads/PointCloudUnity-master/CppPluginPCL/cpp_plugin_pcl.cpp:102:2: note: in expansion of macro ‘EXPORT_API’
EXPORT_API bool readCloud() {
^
/home/zayyon/Downloads/PointCloudUnity-master/CppPluginPCL/cpp_plugin_pcl.cpp:404:1: error: expected ‘}’ at end of input
} // end of export C block
^
CMakeFiles/cpp_plugin_pcl.dir/build.make:62: recipe for target 'CMakeFiles/cpp_plugin_pcl.dir/cpp_plugin_pcl.cpp.o' failed
make[2]: *** [CMakeFiles/cpp_plugin_pcl.dir/cpp_plugin_pcl.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/cpp_plugin_pcl.dir/all' failed
make[1]: *** [CMakeFiles/cpp_plugin_pcl.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions