473,378 Members | 1,390 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,378 software developers and data experts.

Make problem with MSVSC++

Dear all

The following makefile

CXX= cl
CXXFLAGS = -c -O2
%.o : %.cc
$(CXX) $(CXXFLAGS) $*.cc
lib: cflow_irr.o
gives, when called with "make lib", the error

NMAKE : fatal error U1073: don't know how to make 'cflow_irr.o'
Using instead the explicit dependency
cflow_irr.o:
$(CXX) $(CXXFLAGS) cflow_irr.cc
it works. This is my first makefile problem, so I would appreciate any
hints. The problem is the more then 100 files need to get compiled.

W. Bauer
Jul 22 '05 #1
5 1558

<bauerwo**at**gmx.net (W. Bauer)> wrote in message
news:95********************@130.60.128.14...
Dear all

The following makefile

CXX= cl
CXXFLAGS = -c -O2
%.o : %.cc
$(CXX) $(CXXFLAGS) $*.cc
lib: cflow_irr.o
gives, when called with "make lib", the error

NMAKE : fatal error U1073: don't know how to make 'cflow_irr.o'
Using instead the explicit dependency
cflow_irr.o:
$(CXX) $(CXXFLAGS) cflow_irr.cc
it works. This is my first makefile problem, so I would appreciate any
hints. The problem is the more then 100 files need to get compiled.

W. Bauer


I think that the syntax for NMAKE is completely different from the syntax
you are used to. But in any case for help with NMAKE ask on a Windows
programming group such as news:comp.os.ms-windows.programmer.tools.misc, or
maybe news:microsoft.public.vc.ide_general. You are off topic here.

But they'll probably tell you to forget about makefiles and create a project
instead.

john
Jul 22 '05 #2
jo*************@hotmail.com (John Harrison) wrote in
<2l************@uni-berlin.de>:

news:microsoft.public.vc.ide_general. You are off topic here.
Sorry!
But they'll probably tell you to forget about makefiles and create a
project instead.


I hope not.

W. Bauer
Jul 22 '05 #3
W. Bauer wrote:
%.o : %.cc
$(CXX) $(CXXFLAGS) $*.cc


This is a GNUism. The regular unix way to do this is*:
..cc.o:
$(CXX) $(CXXFLAGS) $<

you may also need to add a line: ".SUFFIXES: .cc .o", I do not remember
what the default list is supposed to be.

I do not know about nmake in particular, but you are more likely to have
the standard syntax work than an extension.
Jul 22 '05 #4

<bauerwo**at**gmx.net (W. Bauer)> wrote in message
news:95********************@130.60.128.14...
jo*************@hotmail.com (John Harrison) wrote in
<2l************@uni-berlin.de>:

news:microsoft.public.vc.ide_general. You are off topic here.


Sorry!
But they'll probably tell you to forget about makefiles and create a
project instead.


I hope not.


If so, you can find information about NMAKE at
www.msdn.microsoft.com

-Mike
Jul 22 '05 #5
Ma***********@Loria.Fr (Marc) wrote in <cd**********@nef.ens.fr>:
.cc.o:
$(CXX) $(CXXFLAGS) $<

you may also need to add a line: ".SUFFIXES: .cc .o", I do not remember

Many thanks, that works. Actually, both
$(CXX) $(CXXFLAGS) $*.cc
and
$(CXX) $(CXXFLAGS) $<
work with nmake of MSVC++

Many thanks for the help, W. Bauer
Jul 22 '05 #6

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

Similar topics

3
by: Robert Blaha | last post by:
Hi, I'm runnig Linux/Mandrake9.0-Dolphin and try to update Apache 2.0.46 and PHP 4.3.2. Apache is OK bu with PHP I've problem. I unpacked distribution, run ../configure > configure.vysl, make...
7
by: WindAndWaves | last post by:
Hi Gurus I am keen to make a search page on a website, but I have absolutely zero experience with PHP. I am going to hire an expert, but I thought that it may pay to try it a bit first myself...
2
by: Glenn | last post by:
Hi, I'm using cygwin and am trying to install DBI-mSQL and am getting errors on make .. any idea how to fix this (TIA): cpan> install DBD::mSQL Running install for module DBD::mSQL Running...
17
by: stubbsie | last post by:
Hi, I have redesigned our official public government website in .net and it has taken me a few months to redo. I have been the sole designer of the website from its humble beginnning a few years...
7
by: Hal Vaughan | last post by:
I have a problem with port forwarding and I have been working on it for over 2 weeks with no luck. I have found C programs that almost work and Java programs that almost work, but nothing that...
8
by: Seeker | last post by:
Hello, In using Solaris Pro Compiler to compile Pro*C code. I am getting this error: make: Fatal error in reader: parser_proc_online.mk, line 26: Badly formed macro assignment Based on other...
28
by: Steven Bethard | last post by:
Ok, I finally have a PEP number. Here's the most updated version of the "make" statement PEP. I'll be posting it shortly to python-dev. Thanks again for the previous discussion and suggestions!...
7
by: Steven Bethard | last post by:
I've updated PEP 359 with a bunch of the recent suggestions. The patch is available at: http://bugs.python.org/1472459 and I've pasted the full text below. I've tried to be more explicit about...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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...

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.