Is there a way I can tell VC in what order to compile cpp files? Like if I had main.cpp, wingraph.cpp and util.cpp and I wanted to compile main.cpp first, util.cpp second and wingraph.cpp last.
Thanks
Printable View
Is there a way I can tell VC in what order to compile cpp files? Like if I had main.cpp, wingraph.cpp and util.cpp and I wanted to compile main.cpp first, util.cpp second and wingraph.cpp last.
Thanks
In the work space window File view you can build the file by right clicking on it then click> compile Filename.cpp. You might also want to look in project settings. I hardly ever mess with that stuff tho.
Why do you need a specific order?
Most of the time it doesn't matter what order they've been compiled in, since the linker resolves everything. The file containing main() is usually compiled last, though.
Well it looked like my compile order was what was giving me linking errors. But I figured it out.....I think ;)