Hello, I want to ask about compile way

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Locked
CarrickCha

Hello, I want to ask about compile way

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

Re: Hello, I want to ask about compile way

Post 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
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Hello, I want to ask about compile way

Post by paolo.gai »

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

PJ
CarrickCha

Re: Hello, I want to ask about compile way

Post 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,
Attachments
error.jpg
error.jpg (67.94 KiB) Viewed 8480 times
nicola.serreli

Re: Hello, I want to ask about compile way

Post 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
Locked