Re: Help...A Link error...?
comp.lang.c++ wrote:
NAME=Test
PATH=../../IDE\WATCOM17\Bin
Consider using the path separator consistently. It may not be the
reason for your troubles, but why risk it?
LIB_PATH=../../IDE\WATCOM17\Lib
INCLUDE_PATH=../../IDE\WATCOM17\Include
BIN_PATH=../../Bin
OBJS=$(NAME).obj
LINK_FLAG= d all op inc op m op maxe=25 op q op symf
You seem to be missing slashes (or dashes) here, no? Just a wild guess.
RTFM to be sure.
CL_FLAG= -i=$(INCLUDE_PATH);$(INCLUDE_PATH)\nt -w4 -e25 -zq -od -d2
-5r -bt=nt -mf -xs
$(NAME).exe:$(OBJS)
wlink $(LINK_FLAG) $(OBJS)
$(NAME).obj:$(NAME).cpp
.cpp.obj:
wpp386 $(CL_FLAG) $<
clean:
-------------------------------------------------------------------------------------
Error! E3033: directive error near 'Test.obj'
I would guess that the text 'Test.obj' appears in the processing more
than once. You need to figure out which occurrence actually throws your
utility off.
Why...? I need Help!!!!!!
Sorry, your question has nothing to do with C++ *language* and
everything to do with the 'make' program you're using. Please contact
the makers of your compiler, or post to the newsgroup that deals with
your 'make' (whichever it is). Utilities are off-topic here, sorry.
Just one last suggestion: usually 'make' type utilities have the option
to process the input and print out the commands they would be executing
without actually executing them ("dry run"). RTFM to see if yours
provides that as well. Makefiles need to be debugged just like code.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask