If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Compiler (command line) arguments

I'm working on a project that uses waf as its build tool. The project does build under MSVC but things aren't as I'd expect them. For example, when building a Debug version of the project, it seems to link to the Release version of the MSVC 'C' runtime.

After examining the waf script, I noticed a couple of places where paramters are getting passed to the compiler using '-' (rather than '/'). For example, waf passes -TP and -MD to the compiler whereas VS's own IDE would pass them as /TP and /MD.

Are both versions valid or are these mistakes that I'll need to modify in the waf script?

Re: Compiler (command line) arguments

I really don't know John but since cl -? show all options as / whithout mentioning anything about - I guess - isn't alright. On the other hand if so I guess that you should have some error message logged after building?

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan