Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IotWebConf 3.0.1 conflicts with esp32 core 2.0.0-alpha1 #184

Open
societyofrobots opened this issue Apr 19, 2021 · 4 comments
Open

IotWebConf 3.0.1 conflicts with esp32 core 2.0.0-alpha1 #184

societyofrobots opened this issue Apr 19, 2021 · 4 comments

Comments

@societyofrobots
Copy link

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;
                            ^~~~~~~~
@prampec
Copy link
Owner

prampec commented Apr 19, 2021

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.

@societyofrobots
Copy link
Author

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.

@prampec
Copy link
Owner

prampec commented Apr 20, 2021

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

@societyofrobots
Copy link
Author

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.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants