I am trying to understand How some code works and it bugs on a class. i get the following error:
error: expected class-name before '{' token
class Sac2020Barometer final : public Photic::Barometer
{
public:
/**
sac2020_main.zip (43.4 KB)
I do not understand why it gives the error and I do not know how to fix it.
Can someone light the way?
Thanks
I don't look at code in zips, but the snippet you showed looks like Java, not C++.
6v6gt
October 6, 2023, 9:47pm
3
mccpie01:
Photic::Barometer
There should be a class called Barometer
in the name space Photic
. I see class BarometerInterface
in BarometerInterface.hpp
but haven't found Barometer
Thanks, did not see that Class Name BarometerInterface , so i changed Photic::Barometer and that error is gone.
Thank you for your help.
system
Closed
July 1, 2024, 9:12pm
6
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.