-
Notifications
You must be signed in to change notification settings - Fork 14
building error: ‘status’ is not a class, namespace, or enumeration #46
Comments
That is odd. Here is compiling ok. It is defined on mavlink_vehicles.hh which is indirectly included via gzsitl_plugin.hh. Care to share how did you issue your |
Just cloned and build a fresh repo and was unable to reproduce the issue. Could to share your cmake output? |
Thanks for your @mbelluzzo @rchiossi reply. I am using Ubuntu16.04 (GCC 5.4.0). Here is how I build.
Second, I build Ardupilot using
From my current understanding, mavproxy and Ardupilot are both runtime dependence, not building depenence. Please correct me if I am wrong. Third, I run
Then I get that error. Confirmed on another close to fresh install Ubuntu 16.04 machine Here is the cmake .. output. It has some warnings inside. After that is gcc -v output (gcc 5.4.0)
|
cmake seems ok. I checked on a fresh install from ubuntu 16.10 that I had in a new machine and it worked fine. I'll try to get a fresh install of 16.04 to see if I can reproduce the issue. |
Thank you @rchiossi. Here is the error message from the first warning
|
I was able to reproduce the issue on ubuntu 16.04. The problem comes from gcc version. Version 5 was getting confusing with the variable/class naming (it may be a good idea to rework that bit of code). PR #48 solves the issue. @mbelluzzo can you take a look later today at this PR? |
When I build using cmake and make I get this error message. Any idea? Thanks in advance.
The text was updated successfully, but these errors were encountered: