Page 1 of 1

Hello, I want to ask about compile way

Posted: Fri Nov 04, 2016 11:08 am
by CarrickCha
Hello, I'm using Hightec Complier on Erika Enterprise IDE (Windows 7).

and I'm also using TC275 multicore board.

The question is how to compile cpp file with c files?

I attached file what i'm explaining.

I know I should use g++ for compiling cpp files.

Could you give me any advice?

If this question is boring, sorry I'm newbie.

Thank you.

Best regards

Re: Hello, I want to ask about compile way

Posted: Fri Nov 04, 2016 11:27 am
by CarrickCha
tricore-gcc.exe: error: obj/code.cpp: No such file or directory
/cygdrive/c/EE_RT-~1.0-J/eclipse/plugins/COE07D~1.201/ee_files/pkg/cfg/arch/rules_infineon_tc_generic.mk:233: recipe for target `myProject_master.elf' failed
make[1]: Leaving directory `/cygdrive/c/Users/CHA/Chavees/aurduino_multicore_test/Debug/master'
make[1]: *** [myProject_master.elf] Error 1
make: *** [CPU_MASTER-all] Error 2
/cygdrive/c/EE_RT-~1.0-J/eclipse/plugins/COE07D~1.201/ee_files/pkg/cfg/arch/rules_infineon_multi_base.mk:158: recipe for target `CPU_MASTER-all' failed


this is a result of compiling

Re: Hello, I want to ask about compile way

Posted: Tue Nov 08, 2016 2:21 pm
by paolo.gai
the log said code.cpp is not in the workspace.

PJ

Re: Hello, I want to ask about compile way

Posted: Mon Nov 14, 2016 5:32 am
by CarrickCha
Thank you for replying, paolo.gai !

Unfortunately, I already added code.cpp, it results same error. (you can see attached image file)

Is there any other way to solve this problem?

I'm waiting for any answers and advise.

Best regards,

Re: Hello, I want to ask about compile way

Posted: Mon Nov 14, 2016 11:16 am
by nicola.serreli
Hello,

we did a quick check and we found that, at this moment, Erika makefiles for Tricore are not able to compile .cpp files.
There are at least two missing points:
* vpaths are set only for .c and .s files
* there is no compilation rules for cpp files

Unfortunately we'll be not able to fix (and test) makefiles in this week.

If you want try by your self, it should be easy. You can look at avr8 makefile (pkg/cfg/arch/rules_avr8.mk) to have some hint of missing elements.
Feel free to share your results.

Best regards,
Nicola