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

Not compiling for ESP32 #80

Open
ohbhatt opened this issue Dec 5, 2023 · 1 comment
Open

Not compiling for ESP32 #80

ohbhatt opened this issue Dec 5, 2023 · 1 comment

Comments

@ohbhatt
Copy link

ohbhatt commented Dec 5, 2023

sqlite3_sdspi.ino
Board ESP32 Dev Module

Here are the error messages:

C:\Users\A\AppData\Local\Temp.arduinoIDE-unsaved2023115-15748-1nxy7ds.xjdqh\sqlite3_sdspi\sqlite3_sdspi.ino: In function 'void setup()':
C:\Users\A\AppData\Local\Temp.arduinoIDE-unsaved2023115-15748-1nxy7ds.xjdqh\sqlite3_sdspi\sqlite3_sdspi.ino:67:10: error: unused variable 'zErrMsg' [-Werror=unused-variable]
char *zErrMsg = 0;
^~~~~~~
cc1plus.exe: some warnings being treated as errors
Multiple libraries were found for "SD.h"
Used: C:\Users\A\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9\libraries\SD
Not used: C:\Users\A\AppData\Local\Arduino15\libraries\SD
exit status 1
Compilation error: unused variable 'zErrMsg' [-Werror=unused-variable]``

Just loaded the example and it didn't compile - where am I going wrong?

@NixToDo
Copy link

NixToDo commented Dec 7, 2023

If you read the compiler output, you should know the reason why it fails to compile.
Set your compiler warning prereferences to "Normal" or comment out the marked line.

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