Open pkeir opened 5 months ago
The library is been updated now, hopefully, this solves the issue. Working on Windows 11 Pro, with GCC version 13.2.0.
Thankyou. I am using Ubuntu, so perhaps it can't work. I tried the following:
git clone https://github.com/CoLab-Glasgow/Coconut.git
mv Http_connection\ / Http_connection
mv \ LightSwitch_Example\ / LightSwitch_Example
mkdir build2 && cd build2
cmake ..
make
There is now only an error in main.cpp of Inheritance/Case_2
:
Coconut/Inheritance/Case_2/main.cpp:16:10: error: no match for ‘operator->*’ (operand types are ‘Car’ and ‘void (Car::*)()’)
16 | (C->*&Car::Adjust_Seats)();
I fixed it now, hope it works on your end
I tried it again today, but now the error is:
Coconut/PillBox/PillBox.h:40:10: error: ‘class Drawer’ has no member named ‘SetDrawerState’
40 | d->SetDrawerState("CLOSED");
Fix it!
Thanks again. But now I get the error:
Coconut/PillBox/tests/Valid_test2.cpp:10:36: error: no match for call to ‘(TypestateLibrary::TypestateClassConnector<PillBox, TypestateLibrary::Typestate_Template<TypestateLibrary::State<domain{0}, &PillBox::Activate_pillBox, domain{1}>, TypestateLibrary::State<domain{1}, &PillBox::Process_System_Time, domain{3}>, TypestateLibrary::State<domain{3}, &PillBox::Switch_ON, domain{4}>, TypestateLibrary::State<domain{4}, &PillBox::Switch_ON, domain{4}>, TypestateLibrary::State<domain{4}, &PillBox::Blink, domain{6}>, TypestateLibrary::State<domain{4}, &PillBox::Switch_OFF, domain{5}>, TypestateLibrary::State<domain{6}, &PillBox::Switch_OFF, domain{5}>, TypestateLibrary::State<domain{1}, &PillBox::Deactivate_Pill_Box, domain{2}> > >::operator->*<PillBox, Drawer*>(void (PillBox::*)(Drawer*))::<lambda(Drawer*)>) (std::remove_reference<Drawer*&>::type, int)’
10 | (pillbox->*&PillBox::Switch_ON)(std::move(d),0);
When I configure CMake, I get two errors. I can fix these by removing the extra space in the names of the " LightSwitch_Example" and "Http_connection " directories; but when I run
make
I then get an error from thestatic_assert
inTypestate_Checking
(see below). I am using GCC on Ubuntu 23.10.