IotWebConf icon indicating copy to clipboard operation
IotWebConf copied to clipboard

IotWebConf 3.0.1 conflicts with esp32 core 2.0.0-alpha1

Open societyofrobots opened this issue 3 years ago • 4 comments

prampec, I'm using 2.0.0-alpha1 to bypass the security bug in 1.0.6, but now I'm getting some library errors that don't happen in 1.0.6.

I can certainly understand not being interested in supporting an alpha, but perhaps this is easily fixable?

C:\Users\pikachu\Documents\Arduino\libraries\IotWebConf\src/IotWebConfTParameter.h: At global scope:
C:\Users\pikachu\Documents\Arduino\libraries\IotWebConf\src/IotWebConfTParameter.h:293:23: error: cannot inherit constructors from indirect base 'iotwebconf::DataType<bool, bool>'
 using DataType<bool>::DataType;
                       ^~~~~~~~
C:\Users\x\Documents\Arduino\libraries\IotWebConf\src/IotWebConfTParameter.h:308:24: error: cannot inherit constructors from indirect base 'iotwebconf::DataType<float, float>'
 using DataType<float>::DataType;
                        ^~~~~~~~
C:\Users\x\Documents\Arduino\libraries\IotWebConf\src/IotWebConfTParameter.h:323:25: error: cannot inherit constructors from indirect base 'iotwebconf::DataType<double, double>'
 using DataType<double>::DataType;
                         ^~~~~~~~
C:\Users\x\Documents\Arduino\libraries\IotWebConf\src/IotWebConfTParameter.h: In instantiation of 'class iotwebconf::SignedIntDataType<int, 10>':
C:\Users\x\Documents\Arduino\libraries\IotWebConf\src/IotWebConfTParameter.h:663:7:   required from 'class iotwebconf::IntTParameter<int>'
sketch\wifi_server.h:68:36:   required from here
C:\Users\x\Documents\Arduino\libraries\IotWebConf\src/IotWebConfTParameter.h:262:28: error: cannot inherit constructors from indirect base 'iotwebconf::DataType<int, int>'
 using DataType<ValueType>::DataType;
                            ^~~~~~~~

societyofrobots avatar Apr 19 '21 20:04 societyofrobots

That's not good. It took me 2 moths to get together where we are now with the TypedParameters. I just don't want to spend more time on this right now.

prampec avatar Apr 19 '21 21:04 prampec

I confirmed the error is because 2.0.0-alpha1 uses a different gcc compiler than 1.0.6.

I guess we wait a few days to see if they fix 1.0.6. Otherwise, I'm willing to test whatever you got.

societyofrobots avatar Apr 19 '21 23:04 societyofrobots

It is very likely, that we need to add some additional lines to some places. I need to do this some days before 2.0.0 goes official. https://stackoverflow.com/questions/61476446/getting-error-can-not-inherit-constructors-from-indirect-base-in-c17-compiler

prampec avatar Apr 20 '21 04:04 prampec

I found that page yesterday. I had no idea what a constructor even was, so I read a bunch of tutorials and watched videos on it, then looked back at your code and decided 'nope, it's way over my head.'

societyofrobots avatar Apr 20 '21 13:04 societyofrobots