[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
a makefile ref, problem
From: |
Fred J. |
Subject: |
a makefile ref, problem |
Date: |
Tue, 23 Aug 2005 15:38:10 -0700 (PDT) |
Hello
I am getting errors like in-frame-below when compiling
c++ project.
could someone help please in telling me whats wrong
with my makefile?
if not, then I will look in the code, but I think my
make file is not
right.
thanks
error******************************************************************
$make -k
cc main.o stash.o -o proj1
main.o: In function `main':
main.cpp:(.text+0x22): undefined reference to
`Stash::initialize(double)'
main.cpp:(.text+0x88): undefined reference to
`std::cout'
...
**********************************************************************
more info:
address@hidden:~/Exercies/ThinkingInC++/Vol1/4thCh/7$ ls
main.cpp makefile stash.cpp stash.h
my makefile:
OBJS= main.o stash.o
proj1: $(OBJS)
cc $(OBJS) -o $@
.SUFFIXES:.o .h
.h.o:
$(CC) -c $<
clean:
rm -f $(OBJS) proj1
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- a makefile ref, problem,
Fred J. <=