For our assignment, we are supposed to use a file called functions.o. Our instructor told us it would compile with our .cpp files using the command, g++ functions.o * .cpp , but it isn't working. Is there something wrong with this command, or is there somewhere special I'm supposed to insert it?

not > g++ functions.o * .cpp but > g++ functions.o *.cpp (no space after *)
better: > g++ -std=c++98 -Wall functions.o *.cpp

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.