4coder » Forums » Setting up the VC build environment for use within 4coder
stenton
3 posts
#16527 Setting up the VC build environment for use within 4coder
1 month, 1 week ago Edited by stenton on Oct. 11, 2018, 2:24 p.m. Reason: Initial post

Sorry for the newb question: How can I set up the environment variables for use within 4coder when I press alt+m to build? Before, I just called vcvarsall.bat x64 from a cmd window and alt-tabbed to that window from Visual Studio when I wanted compile. The cracks have begun to show in the VS editor so I am trying out the 4coder demo and so far it's great, except for this problem that I am having. I only have VS 2017 installed and compile for 64-bit. I have added cl.exe to the path, but now of course the compiler doesn't know where windows.h, user32.lib etc. is. Thanks.
ratchetfreak
413 posts
#16528 Setting up the VC build environment for use within 4coder
1 month, 1 week ago

Launch 4coder from a terminal that ran vcvarsall.bat x64

or have the build script run vcvarsall.bat x64 itself.

The latter will be slow per build but you can speed it up by manually setting the env vars that vcvarsall.bat sets up. They are not going to change until you upgrade your VS install anyway.
stenton
3 posts
#16529 Setting up the VC build environment for use within 4coder
1 month, 1 week ago

Welp, Im dumb. It works now. Thanks man.
Mr4thDimention
Allen Webster
428 posts / 2 projects

Heyo

#16540 Setting up the VC build environment for use within 4coder
1 month, 1 week ago Edited by Allen Webster on Oct. 12, 2018, 8:28 p.m.

You're not dumb! The VS compiler path initialization on the other hand...