Mail Archives: djgpp/1998/12/30/07:05:14
On Tue, 29 Dec 1998, Ofer Corshid wrote:
> This is my Makefile:
> OBJS=main.o foo.o
> CXXFLAGS=-Wall -g
>
> main: $(OBJS)
> g++ $(CXXFLAGS) $(OBJS) -o main
>
> foo.o:foo.cc foo.hh
> main.o:main.cc main.hh
This is okay. But you didn't say what command did Make issue to
compile foo.cc into foo.o (the above Makefile relies on the built-in
rules, unless it's only a part of your Makefile). Since the linker
complains about foo.o, I'd guess that the problem is in the way foo.o
is created. Please post that information.
The best way to present all the relevant info is to type these
commands:
del foo.o
del main.o
del main
redir -o make.log -eo make main
Then post the contents of the file make.log. (The `redir' utility is
described in the DJGPP FAQ, section 6.14.)
- Raw text -