cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

New Contributor

Hi,

ModusToolbox has been came.

I got it yesterday, and tried a little.

I want to program in c++,

rename main.c to main.cpp, and

[main.cpp]

extern "C" { int main(){} }

Then, link error as following

D:\MyFiles\Programs\PSoC6\030_PSoC6_CY8CPROTO-062-4343W\work\EmptyPSoC6App_mainapp\Debug/../psoc6sw-1.0/components/psoc6pdl/devices/psoc6/startup/gcc/startup_psoc6_01_cm4.S:415: undefined reference to `main'

collect2.exe: error: ld returned 1 exit status

Can't ModusToolbox build in C++?

Regards,

S.Kinoshita

0 Likes
Reply
1 Solution
Moderator
Moderator

Sorry but ModusToolbox currently doesn't support C++ . Just modifying the main file and changing the make files won't work since a Modus application has several dependency files and might cause various errors.

Regards,

Dheeraj

View solution in original post

2 Replies
Moderator
Moderator

Sorry but ModusToolbox currently doesn't support C++ . Just modifying the main file and changing the make files won't work since a Modus application has several dependency files and might cause various errors.

Regards,

Dheeraj

View solution in original post

New Contributor

I'm sorry but I understand.

Regards,

S.Kinoshita

0 Likes
Reply
Top labels