Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile project #21

Open
dwya222 opened this issue May 18, 2022 · 0 comments
Open

Unable to compile project #21

dwya222 opened this issue May 18, 2022 · 0 comments

Comments

@dwya222
Copy link

dwya222 commented May 18, 2022

Several errors with the SMP class

In file included from 
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SamplingMotionPlanning.cpp:1:
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SMP.h:20:22: error: extra qualification on member 'start'
        static ofVec2f SMP::start;
                       ~~~~~^
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SMP.h:22:21: error: extra qualification on member 'root'
        static Nodes* SMP::root;
                      ~~~~~^
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SMP.h:23:21: error: extra qualification on member 'target'
        static Nodes* SMP::target;
                      ~~~~~^
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SMP.h:24:21: error: extra qualification on member 'nextTarget'
        static Nodes* SMP::nextTarget;
                      ~~~~~^
In file included from 
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SamplingMotionPlanning.cpp:3:
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/InformedRRTstar.h:6:7: warning: 'InformedRRTstar::nextIter' hides overloaded virtual function [-Woverloaded-virtual]
        void nextIter(std::list<Nodes> &nodes, std::list<obstacles*> obst);
             ^
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/RRTstar.h:7:15: note: hidden overloaded virtual function 'RRTstar::nextIter' declared here: different number of parameters (3 vs 2)
        virtual void nextIter(std::list<Nodes> &nodes,std::list<obstacles*> obst, Nodes* u_ = NULL);
                     ^
.../source_code/openFrameworks/macOS_0_11_2/apps/RT_RRTStar/src/SamplingMotionPlanning.cpp:223:34: error: taking the address of a temporary object of type 'Nodes' [-Waddress-of-temporary]
                RRTstar::nextIter(nodes, obst, &InformedRRTstar::sample(min_cost));
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 5 errors generated.
make[1]: *** [obj/osx/Release/src/SamplingMotionPlanning.o] Error 1
make: *** [Release] Error 2
@dwya222 dwya222 changed the title ofApp.h attempts to include ofMain.h Unable to compile project May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant