Export PSoC Creator Project to Eclipse as C++ project

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I found PSoC Creator 4.0 can compile C++ source.

   

But text editor of PSoC Creator doesn't support C++, so keyword highlight, auto complete doesn't work.

   

So, I exported project to eclipse, but I have trouble in setting up eclipse to compile C++.

   

First, I exported project as C project, at that time, compile was successful.

   

After that, I added C++ nature by "File > New > Convert to a C/C++ project".

   

I set include path of c++ compiler same as c compiler.

   

Then,  I built the project, but eclipse output some errors as following.

   

"undefined reference to `__cy_regions`" in Cm3Start.c

   

"undefined reference to `__cy_stack`" in Cm3Start.o

   

 

   

How to fix that?

0 Likes
1 Solution
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

"_cy_regions " & "_cy_stack" are defined in linker script file(.ld),we do not recommend to convert to a C++ project.

View solution in original post

0 Likes
2 Replies
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

"_cy_regions " & "_cy_stack" are defined in linker script file(.ld),we do not recommend to convert to a C++ project.

0 Likes
Anonymous
Not applicable

OK, Thanks ANKS.

0 Likes