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
Hello, I want to ask about compile way
Moderator: paolo.gai
Hello, I want to ask about compile way
- Attachments
-
- problem.jpg (71.54 KiB) Viewed 8466 times
Re: Hello, I want to ask about compile way
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
/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
the log said code.cpp is not in the workspace.
PJ
PJ
Re: Hello, I want to ask about compile way
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,
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 (67.94 KiB) Viewed 8442 times
Re: Hello, I want to ask about compile way
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
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