Hello, I want to ask about compile way

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
CarrickCha
Newbie
Posts: 5
Joined: Mon May 04, 2015 11:35 am

Hello, I want to ask about compile way

Post by CarrickCha » Fri Nov 04, 2016 11:08 am

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
Attachments
problem.jpg
problem.jpg (71.54 KiB) Viewed 4046 times

CarrickCha
Newbie
Posts: 5
Joined: Mon May 04, 2015 11:35 am

Re: Hello, I want to ask about compile way

Post by CarrickCha » Fri Nov 04, 2016 11:27 am

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

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Hello, I want to ask about compile way

Post by paolo.gai » Tue Nov 08, 2016 2:21 pm

the log said code.cpp is not in the workspace.

PJ

CarrickCha
Newbie
Posts: 5
Joined: Mon May 04, 2015 11:35 am

Re: Hello, I want to ask about compile way

Post by CarrickCha » Mon Nov 14, 2016 5:32 am

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,
Attachments
error.jpg
error.jpg (67.94 KiB) Viewed 4022 times

nicola.serreli
Jr. Member
Posts: 68
Joined: Mon Aug 02, 2010 10:11 am

Re: Hello, I want to ask about compile way

Post by nicola.serreli » Mon Nov 14, 2016 11:16 am

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

Post Reply