Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / problem during compilation

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. problem during compilation
#3344
Posted by: 2004-02-11 16:23:11
Hi,
I'm a french student and I would like to build a GUI with wxwindows (2.2.4) and Dev-cpp(4.9.8.0).
But when I try to compile, I have two messages:

Fatal E:TestWXminimalFatal
'clean-custom' does not exist - don't know how to make it

and

Fatal E:TestWXminimalFatal
'all-before' does not exist - don't know how to make it

I don't know how to solve them.

thank you for your help

bye
Message2. Re: problem during compilation
#3345
Posted by: upCASE 2004-02-11 17:46:01
Hi!
First I suppose you meant wxWindows version 2.4.2 :)
Maybe check the bloodshed site and download the brandnew update for Dev-C++ 4.9.8.7 (works with gcc 3.3.1 now if you need it).

For your problem I can only say that this is weird. Looks like the makefile Dev-C++ generated is missing targets. Maybe try the following:
Go to your program dir and delete makefile.win. In Dev-C++ check your project settings and go to "Compiler Options"->"Compiler" and disable "fast but imperfect dependency generation". That way a new makefile will be generated whenever it's needed (headers changed etc.). This will take longer, but leads to less trouble. I always have this disabled.

If the error doesn't go away, post your makefile here, because that's where the error is. Sure, another option would be to write a makefile on your own and try if this does the job...

upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message3. Re: problem during compilation
#3348
Posted by: 2004-02-11 18:22:47
thank you for your help but It doesn't work better

It seems that the problem come from the keyword "all-before", "all-after" and "clean-custom". Make doesn't know them and there is a syntax error (it appears when I check the syntax with dev-cpp ans when I try to build the project).

# Project: WxWindows minimal
# Makefile created by Dev-C++ 4.9.8.7

CPP  = g++.exe -D__DEBUG__
CC   = gcc.exe -D__DEBUG__
WINDRES = windres.exe
RES  = minimal_private.res
OBJ  = minimal.o $(RES)
LINKOBJ  = minimal.o $(RES)
LIBS =  -L"C:/Program Files/Dev-Cpp/lib" -mwindows -lwx -lole32 -lwsock32 -lcomctl32 -lctl3d32 -lgcc -lstdc++ -lshell32 -loleaut32 -ladvapi32 -luuid -lxpm  -lgmon -pg-g3
INCS =  -I"C:/Program Files/Dev-Cpp/include"
CXXINCS =  -I"C:/Program Files/Dev-Cpp/include/c++"  -I"C:/Program Files/Dev-Cpp/include/c++/mingw32"  -I"C:/Program Files/Dev-Cpp/include/c++/backward"  -I"C:/Program Files/Dev-Cpp/include"
BIN  = minimal.exe
CXXFLAGS = $(CXXINCS)  -pg -g3
CFLAGS = $(INCS)-fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -fvtable-thunks -D__WXMSW__ -D__GNUWIN32__   -pg -g3

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

all: all-before minimal.exe all-after


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

$(BIN): $(OBJ)
   $(CPP) $(LINKOBJ) -o "minimal.exe" $(LIBS)

minimal.o: minimal.cpp
   $(CPP) -c minimal.cpp -o minimal.o $(CXXFLAGS)

minimal_private.res: minimal_private.rc rsrc.rc
   $(WINDRES) -i minimal_private.rc -I rc -o minimal_private.res -O coff
Message4. Re: problem during compilation
#3350
Posted by: upCASE 2004-02-11 21:07:10
Hi!
Weird... What version of make do you use? I remember that there was an issue about make and .PHONY. Maybe try installing the latest make version
http://prdownloads.sf.net/mingw/mingw32-make-3.80.0-3.exe?download

upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message5. Re: problem during compilation
#3353
Posted by: 2004-02-11 22:23:16
thank tou very munch, it works now, with the new version of make.
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥860.00 ·
 
 
¥410.00 ·
 
 
¥288.00 ·
 
 
¥918.00 ·
 
 
¥288.00 ·
 
 
¥264.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0