User forums > Using Code::Blocks

How to run a .bat at CB start-up to define env variables in CB scope?

<< < (2/2)

oBFusCATed:
Have you looked at the envvar plugin?

If you want to setup env vars you can make a bat file that sets them up and starts C::B.

oBFusCATed:

--- Quote from: J. on December 04, 2016, 01:37:45 pm ---How does this set up work for all the paths to be set and required by cl and link?  This task is silently and - I guess - reliably done by vcvars32.bat. Any manual fiddling with paths calls for errors and potential incompleteness I think.

--- End quote ---
Just select the msvc++ compiler in the settings-> compiler. If you use already supported compiler all should work out of the box.
If you're using newer compiler then you should fiddle with the settings to make them match the new version.

You can use the vcvars32.bat as a reference what needs to be set.
It is not rocket science.

Navigation

[0] Message Index

[*] Previous page

Go to full version