How to use 'makefile' in Visual C++ 6.0
Printable View
How to use 'makefile' in Visual C++ 6.0
(1) read the "how to get your questions answered" at the top of this thread. "Help me please" is not a description of a problem.
(2) you are in the wrong forum. This is the VB forum. You want the C/C++ forum.
hm ... OK this is NOT the vb forum ... somehow a search results shifted me over to another forum ... sorry.
Great way to greet new members and make them feel welcome.Quote:
Originally posted by phinds
(1) read the "how to get your questions answered" at the top of this thread. "Help me please" is not a description of a problem.
(2) you are in the wrong forum. This is the VB forum. You want the C/C++ forum.
Toubou - do you mean using Makefiles in general, or how to use one with VC?
If the former, do a search for GNU make and you'll get the manual :)
If the latter, go to a command prompt, run the vcvars32.bat file, then move to the directory containing the Makefile and run "nmake" -- that should build it all :)
I have never used makefiles on Windows but on Linux, you can use "make" to compile your source code using a makefile.
An example (using gcc [g++]):
Save it as something like "mymake" and then go to your directly where you saved it. Now type this:Quote:
myprogram : source.c
g++ source.c -o myprogram
Ofcourse there's a lot a lot more to a Makefile. You can even compile a large pile of source codes into one with a very little code (using your own rules). Try pscode.com or search google for a tutorial on making Makefiles.Quote:
make -n mymake