A few days ago, in class, we were working on classes, etc... My professor did something and I can't remember what it was called or why he did it, but it produced a ".o" file. I remember him saying "We will just <blank> instead of compiling". Lol, can anyone fill in the blank and tell me what we did, how we did it (what command), and why we did it? Whatever he did works, but when I simply try to compile I get error messages.
I'm a big time Unix noob so I don't know what info would be needed to answer this question, but we're obviously on Unix using g++.
Thanks for any help. I love programming, but I'm starting to lag behind in class (my prof is old school and really zooms through a lot of stuff fast). Figuring this out would get me going.
whats the g++ command to only produce the .o file and nothing else?
We had previously been using "g++ prog.cc -o prog" but whatever he did was different... The file I'm trying to do this with WILL produce the .o file (he did it in class) but I don't think its suppose to fully compile yet... I just need to know that command he used and he won't answer my emails! (lol I think he's getting tired of my stupid questions...)