MakeFile in C ++ - Geany

0

Good afternoon, I'm new to programming in C ++ using Geany. And I'm having trouble with creating a class with main, ie when creating a class, for example message.h and message.cpp, access the methods of the message class itself in main.cpp.

I have already seen tutorials explaining how to create a Makefile file, however I get the error that no targets were created.

The Makefile file I have is the following:

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 "link" the classes and main are welcome.

    
asked by anonymous 21.11.2018 / 17:33

0 answers