-
Notifications
You must be signed in to change notification settings - Fork 67
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
How to use this driver in c project? e.g. an ESP-IDF hello_world example project written in C language #26
Comments
The error info given by compiler:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use this driver in C project? , e.g. an ESP-IDF hello_world example project written in C language
Hello, I tried to import the i2c and MPU repository as component under my 'hello_world' example project given by ESP-IDF.
if I modify the main.c into main.cpp by modifying some lines in
main.c
file andCMakeList.txt
, the components works.However, My project with lvgl lib needs to be developed by C language. When I directly using this driver for my MPU6050 on I2C, the error occurs when compiling.
How to use the cpp-written components in C project?
below is the file structure of my project:
Some error about namespace, I guess I need to configure something for using C++ component in C proj. but How?
Thank you very much!!
The text was updated successfully, but these errors were encountered: