Community
cancel
Showing results for 
Search instead for 
Did you mean: 
KVors1
Beginner
1,019 Views

How to enable C++ in Intel System Studio for Microcontrollers [Quark D2000]

Hello all,

Recently I have been playing around with the Quark D2000 development board and am interested in using C++. I am able to include header (.hpp) and source (.cpp) files, but when I create a main.cpp...

# include "MyCPPHeader.hpp"

int main()

{

return 0;

}

It says there is an undefined reference to main(). I'm assuming the build settings are default to C, as keywords such as "class" do not light up. How then, would it be possible to enable C++ for the Quark D2000 MCU through Intel System Studio for Microcontrollers?

Thanks!

0 Kudos
4 Replies
CK_Intel
Moderator
61 Views

Hello,

Thank you for reaching out to Intel® Quark™ Microcontrollers Forum.

We will be looking into this issue and get back to you shortly.

Regards

Intel Customer Support

KVors1
Beginner
61 Views

Hello,

Were you ever able to find a way to invoke the C++ compiler for Intel System Studio for Microcontrollers? Is the Quark platform not setup for C++, such as heap management etc, or is this something that the project template for Quark in the IDE was not set up for?

Thank you,

Ken

CK_Intel
Moderator
61 Views

Hi Ken,

I am still waiting for engineering feedback on this. Please stay tuned.

Regards

CK

Shah_Intel
Moderator
61 Views

Hi,

Have you try with int main(void) ?

Or you can try sample code at https://software.intel.com/en-us/articles/intel-system-studio-tutorials Intel® System Studio Samples and Tutorials | Intel® Software .

Regards,

Intel Customer Support.