07-26-2023, 06:51 PM
I have got access to a C project at work that I have to implement some stuff in. I was able to load it into eclipse and can `Project -> Build All` it. Compilation shows no errors or warnings. But in eclipse, there are a lot of errors shown. One example:
----------
There is an enum
typedef enum MeasurementType {
PN, BB, AM, RES
} MEAS_TYPE;
MEAS_TYPE type;
in one of the files. It is used somewhere else and produces an error like this:
![enter image description here][1]
It is most interesting, that only `AM` seems to be a problem, not `PN` or `BB`.
----------
I haven't found a satisfying solution to this. I already tried to include all possible directories I could think of in `Project Properties -> C/C++ General -> Paths and Symbols` (like [this post][2] suggests), but that didn't help.
The project itself is compiled with Makefiles (which is why I need `Project -> Build All`). Can it be that eclipse does not interpret those Makefiles correctly or something? I am a bit lost after messing around with that stuff for a few hours and not getting a single step forward.
EDIT: Here are some screenshots for my build-relevant project properties (at least I believe they are relevent :D). Tell me if you need more information.
![enter image description here][3] ![enter image description here][4]
[1]:
[2]:
[4]:
----------
There is an enum
typedef enum MeasurementType {
PN, BB, AM, RES
} MEAS_TYPE;
MEAS_TYPE type;
in one of the files. It is used somewhere else and produces an error like this:
![enter image description here][1]
It is most interesting, that only `AM` seems to be a problem, not `PN` or `BB`.
----------
I haven't found a satisfying solution to this. I already tried to include all possible directories I could think of in `Project Properties -> C/C++ General -> Paths and Symbols` (like [this post][2] suggests), but that didn't help.
The project itself is compiled with Makefiles (which is why I need `Project -> Build All`). Can it be that eclipse does not interpret those Makefiles correctly or something? I am a bit lost after messing around with that stuff for a few hours and not getting a single step forward.
EDIT: Here are some screenshots for my build-relevant project properties (at least I believe they are relevent :D). Tell me if you need more information.
![enter image description here][3] ![enter image description here][4]
[1]:
[2]:
[To see links please register here]
[3]:[4]: