Link issues when compiling from CMD with VS2012 installation

So I'm attempting to compile a program that displays just a very simple window. It uses native C++ code. When I load it into visual studio, it builds just fine and spits out the .exe. However when I attempt to compile from the command line using cl, I get a bunch of LNK2019 unresolved external symbol errors. I figure this shouldn't be an error with my code since it builds and runs fine through VS, just a problem with the way the linker is set up for the command line. I've tried using the included batch file to launch VS's command line - no luck. I've also tried copying all of the VS properties over to their corresponding environment variables. Anyone have any ideas? Thanks in advance!

I'm running Windows 7 64 bit with Visual Studio 2012 Pro


Last edited on
I suspect you aren't supplying the appropriate libraries for the linker. The IDE does this for you automatically.
Topic archived. No new replies allowed.