Server Help

Non-Subspace Related Coding - awkward build error.

tcsoccerman - Sat Mar 03, 2007 8:09 pm
Post subject: awkward build error.
I've gotten this error a few times and need help with it. I know it's a build error like it says. here it is:

Code: Show/Hide
C:\Documents and Settings\*****\My Documents\zone file\Dev-Cpp\window spanish\Makefile.win [Build Error]  No rule to make target `"recource', needed by `window_spanish_private.res'.  Stop.

Mine GO BOOM - Sat Mar 03, 2007 8:44 pm
Post subject: Re: awkward build error.
tcsoccerman wrote:
`"recource'

Notice the double-quote inside the single quotes. I'm guessing you are missing a " somewhere.
tcsoccerman - Sat Mar 03, 2007 9:08 pm
Post subject:
but it's a build error and it doesn't give a line so it's not something in text....at least i thoiught so. ty for reply.
Mine GO BOOM - Sun Mar 04, 2007 6:15 am
Post subject:
Post the makefile.
tcsoccerman - Sun Mar 04, 2007 10:11 am
Post subject:
Make file:

Code: Show/Hide
# Project: Project1
# Makefile created by Dev-C++ 4.9.9.1

CPP  = g++.exe
CC   = gcc.exe
WINDRES = windres.exe
RES  = window_spanish_private.res
OBJ  = main.o $(RES)
LINKOBJ  = main.o $(RES)
LIBS =  -L"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/lib" -mwindows 
INCS =  -I"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/include"
CXXINCS =  -I"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/include/c++/3.3.1"  -I"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/include/c++/3.3.1/mingw32"  -I"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/include/c++/3.3.1/backward"  -I"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include"  -I"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/include"
BIN  = "window spanish.exe"
CXXFLAGS = $(CXXINCS) 
CFLAGS = $(INCS) 

.PHONY: all all-before all-after clean clean-custom

all: all-before "window spanish.exe" all-after


clean: clean-custom
   rm -f $(OBJ) $(BIN)

$(BIN): $(OBJ)
   $(CC) $(LINKOBJ) -o "window spanish.exe" $(LIBS)

main.o: main.c
   $(CC) -c main.c -o main.o $(CFLAGS)

window_spanish_private.res: window_spanish_private.rc "recource file.rc"
   $(WINDRES) -i window_spanish_private.rc --input-format=rc -o window_spanish_private.res -O coff


Edit: attached file since it's a little confusing to read on forums.
k0zy - Sun Mar 04, 2007 1:30 pm
Post subject:
My guess is it doesn't like the blank in "resource file".

Either that, or the file is missing.
tcsoccerman - Sun Mar 04, 2007 2:32 pm
Post subject:
what line are you talking about. or are you talking about the file itself. cause it's not blank.
k0zy - Sun Mar 04, 2007 2:34 pm
Post subject:
Talking about the last rule in the makefile.
tcsoccerman - Sun Mar 04, 2007 3:03 pm
Post subject:
oh. i don't understand much of makefiles so could you help... ty
k0zy - Sun Mar 04, 2007 3:10 pm
Post subject:
Try renaming the file from "resource file" to something else without a space in it.
Also make sure the file actually exists.

As there's no rule to make the file, it has to exists before running make.
So either it doesn't, or make can't find it because of the whitespace inside the filename.
tcsoccerman - Sun Mar 04, 2007 4:26 pm
Post subject:
ok now it says it's circular..?
k0zy - Sun Mar 04, 2007 4:56 pm
Post subject:
Post the new makefile, too.
tcsoccerman - Sun Mar 04, 2007 5:43 pm
Post subject:
Here's the error:

Code: Show/Hide
make.exe C:\DOCUME~1\Scott\MYDOCU~1\ZONEFI~1\Dev-Cpp\WINDOW~1\make.exe Circular recource <- recource.o dependency dropped. 


and makefile:

Code: Show/Hide
# Project: Project1
# Makefile created by Dev-C++ 4.9.9.1

CPP  = g++.exe
CC   = gcc.exe
WINDRES = windres.exe
RES  =
OBJ  = main.o recource.o $(RES)
LINKOBJ  = main.o $(RES)
LIBS =  -L"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/lib" -mwindows 
INCS =  -I"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/include"
CXXINCS =  -I"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/include/c++/3.3.1"  -I"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/include/c++/3.3.1/mingw32"  -I"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/include/c++/3.3.1/backward"  -I"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include"  -I"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/include"
BIN  = WINDOW~1.exe
CXXFLAGS = $(CXXINCS) 
CFLAGS = $(INCS) 

.PHONY: all all-before all-after clean clean-custom

all: all-before WINDOW~1.exe all-after


clean: clean-custom
   rm -f $(OBJ) $(BIN)

$(BIN): $(OBJ)
   $(CC) $(LINKOBJ) -o "WINDOW~1.exe" $(LIBS)

main.o: main.c
   $(CC) -c main.c -o main.o $(CFLAGS)

recource.o: recource
   $(CC) -c recource -o recource.o $(CFLAGS)

Animate Dreams - Sun Mar 04, 2007 5:53 pm
Post subject:
Is recource a word?
tcsoccerman - Sun Mar 04, 2007 6:09 pm
Post subject:
i think so what do you mean. a word as in my program or the dictionary. lol. this makefile is automatically generated so it should be correct.
Chambahs - Sun Mar 04, 2007 6:14 pm
Post subject:
I thought it was resource...lol
k0zy - Sun Mar 04, 2007 7:38 pm
Post subject:
Why is it called "recource"?
Where did the file extension go?
Mine GO BOOM - Mon Mar 05, 2007 12:30 am
Post subject:
tcsoccerman wrote:
Code: Show/Hide
recource.o: recource
   $(CC) -c recource -o recource.o $(CFLAGS)

The recourse in the first line says that for that build, it requires recourse to be built. Makefile checks for how to make that, finds the rule named recource.o and attempts to build that. Which is itself.
tcsoccerman - Mon Mar 05, 2007 3:27 pm
Post subject:
which is why it's circular
hmm i'll jsut do it over. i was just playing around anyways. ty for that info and all reply's. i've gotten that quite a few times.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group