-
Notifications
You must be signed in to change notification settings - Fork 92
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
can we compile MAX78000 projects with G++ instead of GCC? #826
Comments
Thanks for reporting this @khavernathy, I've just opened a PR to fix this. We were missing C++ guards in some of our display and camera files. C++ is fully supported, and the camera drivers should compile with the PR changes. |
Thanks, for what it's worth, these are all the undefined references I get when changing Also when I wrap the relevant header file with
as you did in the PR commits, it seems to resolve the undefined reference error on my side.
|
I'd like to use C++ code for a project. Changing
main.c
tomain.cpp
in one of the sample projects results in a bunch ofundefined reference to ...
errors.make
seems to compile the definition files finebut i get
even though I'm including
camera.h
at the top ofmain.cpp
.The call to
camera_start_capture_image();
is simply that. No arguments passed, no return value.If I change the name of the definition file
camera.c
(located in MaximSDK files/home/x/MaximSDK/Libraries/MiscDrivers/Camera
) tocamera.cpp
, the error goes away. But then there is a cascade of newundefined reference
errors from the files thatcamera.cpp
depends on.The text was updated successfully, but these errors were encountered: