I’ve ordered a bit my structure of classes and moved the related ones to more specific folders. The problem is that now the includes I made are not being able to find the class, as right now is in another folder.
Why is it not looking automatically for the file through all the folders?
I shouldn’t have to write #include “Gameplay/TestMap.hpp”. How can I avoid this?
I’ve got this in my makefile (I don’t know if it might be related):
The error indicates that the compiler can’t find a header, that’s the role of LOCAL_C_INCLUDES, which tells the compiler where to search for headers, which means all *.h and *.hpp files.
From the screenshot, the LOCAL_SRC_FILES is missing GameMap.cpp, I would add this too. The LOCAL_SRC_FILES is for source files, which means all *.c and *.cpp files. The compiler is going to complain later on, during the linking phase.
Here is the interesting part
“Additionally, this command is used to find text within a file, not the actual file itself. If you are wanting to search or find a file with a particular name, use the dir command.”
From that you should be able to change the script to work on Windows. A good test is to open the command prompt, go to LOCAL_PATH and try the command there: you can test it until it works.
After getting really tired of the makefile, I decided to do it manually. But now, I tried again to generate it automatically with windows and I am still not able to do it. If I do it through the ‘cmd’ the script I wrote in the other post works perfect. It gives you a list of all the .cpp files with their path, just what I’m writing manually in the makefile. But is not working, aparently is not finding anything. I don’t really know how to debug this. I don’t know too much about promt.