473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Using NMAKE to build C++ app - Falling over

Hi all,

I'm new to C++ and .Net but I have been giving the task of building a
C++ application using NMAKE. Simple huh?

I have visual studio .net installed and therefore VC++7.0. However
when ever I try to run NMAKE from the dos prompt it is unable to find
any header files that have been included, for example stdio.h.

Do I need to add certain directories to my path variable in windows?
I thought VS.net would have taken care of this.

The guidlines for the application which needs to be built are a little
hazy in the following respect. In one place it mentions VC++ v5 or
V6 should be used to build the appliaction using NMAKE. In other
places it says v5 or above. The application is relatively new
(FlexLMv6).

Any help would be much appreaciated.

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 17 '05 #1
2 5792
Catweasel wrote:
Hi all,

I'm new to C++ and .Net but I have been giving the task of building a
C++ application using NMAKE. Simple huh?

I have visual studio .net installed and therefore VC++7.0. However
when ever I try to run NMAKE from the dos prompt it is unable to find
any header files that have been included, for example stdio.h.
Do you have VC7 or VC7.1 (VS.NET 2002 or VS.NET 2003)?

Do I need to add certain directories to my path variable in windows?
I thought VS.net would have taken care of this.
Run vcvars32.bat - it's installed in the vc7\bin directory of your Visual
Studio installation. Alternatively, open a "Visual Studio Command Prompt".
A shortcut to do that was also installed with Visual Studio.
The guidlines for the application which needs to be built are a little
hazy in the following respect. In one place it mentions VC++ v5 or
V6 should be used to build the appliaction using NMAKE. In other
places it says v5 or above. The application is relatively new
(FlexLMv6).


As an general rule, VC7 or VC7.l can be dropped into any command-line build
environment where VC6 or VC5 was used. One notable exception is use of
libraries: If you're intending to link a 3rd party C++ (not C) library with
your applicaiton, make sure you have a VC7 (or 7.1 as the case may be)
version of that library.

HTH

-cd
Nov 17 '05 #2
Thanks very much for your help. I have VS .net 2003. It worked fine
from the VS command prompt. I didn't realise their was a specific
command line tool :oops:

Unfortunately I have another problem now whilst try to link my files
when building .exe

I get the following error

LINK : fatal error 1104 cannot open file lmgr.lib

I have no idea why. The directory that holds this file is outside the
project folder but in the path. Could this be the problem?

<edit>I've managed to solve this now. Was an issue with paths
used in linking</edit>

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
1
by: John | last post by:
I'm try to run one of the sample(.net documentation) to use office: Microsoft Office Technology SampleThis suite of samples demonstrates the use of Microsoft Office applications (Microsoft...
10
by: RG | last post by:
I am trying to compile a makefile project. I have a makefile. I can't find documentation and/or samples of buil/rebuild/clean command line syntax. I am sure as to what goes there. Is it os...
0
by: Vidyasagara Guntaka | last post by:
Hi, I'm not able to compile libpq for Windows environment using the 8.0.0 beta 1 source tree. I got the following errors (The entire compilation output is listed below): ...
0
by: Benny | last post by:
I'm testing to see whether msbuild can replace nmake. project file <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Target Name="test"> <Exec Command="test.exe"/>...
3
by: mircohering | last post by:
Hello, i am trying to build an application from a foreign make file and i dont know what is wrong with my makefile that i get that error above.... I am a beginner with makefiles -> could you...
3
by: hsmit.home | last post by:
I spent way too much time on this and I must say, I was a little disgruntled with what has been posted on all the various Xalan C mailing lists. Everyone says there's a solution, but give next to...
7
by: Khookie | last post by:
I'm required to write an app that can compile on both Windows (cl/ nmake) & Linux (gcc/make) targets, so I was wondering whether anyone has any guidelines on how to do it properly. Even pointing...
11
by: O.B. | last post by:
Does C# support anything like PHP's break command that optionally accepts a parameter specifying how many loops to break out of?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.