[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a makefile ref, problem
From: |
Paul D. Smith |
Subject: |
Re: a makefile ref, problem |
Date: |
Tue, 23 Aug 2005 18:56:37 -0400 |
%% "Fred J." <address@hidden> writes:
fj> I am getting errors like in-frame-below when compiling
fj> c++ project.
fj> could someone help please in telling me whats wrong with my
fj> makefile? if not, then I will look in the code, but I think my
fj> make file is not right.
This is not a problem with make or the syntax of your makefile: you are
invoking your compiler incorrectly. You need to use the right compiler
command line. This is really a question that should be directed to a
mailing list or group associated with your compiler, not with make.
To get you started in the right direction I'll point out that you're
compiling and linking your C++ code with "cc", which is a C compiler,
not a C++ compiler. You shouldn't expect that to work.
Try using "c++" instead of "cc". GNU make uses the variable CXX to hold
the name of the C++ compiler (CC is the name of the C compiler).
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist