is there a difference between build object files and linking them seperatly than just doing it all a

is there a difference between build object files and linking them seperatly than just doing it all at once with g++? Ex:
g++ $(FLAGS) -c -o test.o test.cpp
g++ $(FLAGS) -c -o main.o main.cpp
g++ $(FLAGS) -o main test.o main.o
g++ $(FLAGS) -c -o test.o test.cpp
g++ $(FLAGS) -c -o main.o main.cpp
g++ $(FLAGS) -o main test.o main.o
vs.
g++ $(FLAGS) -o main test.cpp main.cpp
g++ $(FLAGS) -o main test.cpp main.cpp
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?