MakeFile in C++ - Geany
Good afternoon, I'm new to programming in C++ using Geany. And I'm having a hard time when it comes to creating interconnect a class with main, i.e. when creating a class, e.g. message.h E message.cpp access message Class own methods in main.cpp.
I've seen tutorials that explain how to create a Makefile, however I get the error that no targets were created.
The Makefile I have is the next:
output: main.o Language.o
g++ main.o Language.o -o output
main.o: main.cpp
g++ -c main.cpp
Language.o: Language.cpp Language.h
g++ -c Language.cpp
clean:
rm *.o output
If anyone has tips on how to" interconnect " classes and main are welcome.
0