use nmake from command prompt console window
*********************************************
If you open the command prompt console window from within the IDE by
using the menu item:
Tools->Visual Studio 2008 Command Prompt
============================================================================
The compiler has to know the path(s) to the header files (such as stdio.h).
There are a number of ways this can be specified. Normally it is specified
via an environment variable - INCLUDE=
The linker also has to know the path(s) to the lib files to be linked.
Again, there are a number of ways this can be specified.
Normally it is specified via an environment variable - LIB=
If you open the command prompt console window from within the IDE by
using the menu item:
Tools->Visual Studio 2008 Command Prompt
these environment variables will be set up for you automatically.
The file vcvars32.bat is where these are configured for 32-bit builds.
It's in the VC++ bin directory.
You can also specify the include file directory via the /I switch when
invoking cl.exe - type cl /? to see all of the options available. Note
the linker options as well.
As a self-professed "absolute beginner" you would be well-advised to
use the IDE for doing your programming. It will configure many things
for you - especially if you use the supplied project templates. There
are many things you have to consider when building using the command
line tools, which most beginners won't be able to cope with initially.
- Wayne
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment