2024-10-22 02:37 AM
Hi everyone,
I am developing a new project with SMT32H7 MCU series, in which I have added the ITTIA DB middleware.
I’m encountering an issue while trying to compile my project using a Makefile. The Makefile was auto-generated, and the error I get during compilation is:
make: *** No rule to make target `build/oslib.cpp', needed by `build/M0045-8000_TheHeecapDevice.elf'. Stop.
make: *** Waiting for unfinished jobs....
The oslib.cpp file is present in my project directory, but it seems like the Makefile isn’t properly handling the .cpp file. Therefore, I am assuming that there is a problem with the makefile, since it cannot find/build cpp files.
What do I have to change in order to compile my project?
Here is the makefile attached.
Solved! Go to Solution.
2024-10-22 05:15 AM
The makefile lacks definitions for .cpp sources. The cpp files are not added to OBJECTS, and no definition for the c++ (g++) compiler, and vpath statement is missing for .cpp.
2024-10-22 05:15 AM
The makefile lacks definitions for .cpp sources. The cpp files are not added to OBJECTS, and no definition for the c++ (g++) compiler, and vpath statement is missing for .cpp.
2024-10-25 01:40 PM - edited 2024-10-25 01:52 PM
Thank you!
2024-10-25 01:54 PM
OBJECTS += ...