Don't list your header files. If you want the executable to have the .exe file extension you should say so. g++ -o elasticity.exe main.cpp abs.cpp calcDofs.cpp dbcs.cpp delta.cpp gradient.cpp height.cpp intForce.cpp kuele.cpp kueta.cpp makeB.cpp makeC.cpp makeStress.cpp sols.cpp weights.cpp
Something like this might also work g++ -o elasticity.exe *.cpp
This should automatically list all the .cpp files.
hmm... so I'm still getting errors. Is there any reason why the code would be able to compile in one program but not be able to do so in another?
All the files compile and run when I use xcode, but I want to be able to run them using terminal, so that I can send the job to a server and not run it on my own machine.
Oh! I figured it out! One of my files had <global.h> instead of "global.h" at the top, and that was screwing everything up. Weird that the Xcode compiler didn't care about it.