The compiler (CL.EXE) can accept several source files, but likes to generate all OBJ files in the directory that it is called. I could not find the compiler flag for setting the output directory, but I found it for a separate OBJ, but it cannot use multiple sources.
Without specifying each file to redirect output and having many goals for NMAKE, is there an easy way to do this through the CL?
It turns out that the /Fo option does work, but the directory you specify should end with a backslash. Thus,
/Fo
cl /Fo.\obj\ -c foo.c fee.c
It works, but cl /Fo.\obj -c ... will fail.
cl /Fo.\obj -c ...
Source: https://habr.com/ru/post/898931/More articles:Is it possible to delete a queue element by value? - c ++What is the equivalent way to set message options in .net? - c #Is it in the STL or BOOST map as a container with a search function and pop operation? - c ++Math 7 shows step by step - wolfram-mathematicaHow do elements with absolute positioning move along with the rest of the page? - htmlThe fastest way to read a csv file - performancemysql accent insensitive and dotted insensitive search - phpRecursive blocks in Scala Play Framework templates - scalaIOS 5 Developer Guide? - iosTwo dimensional limitations of an array: sudoku - javaAll Articles