I am very very new to c++. I have downloaded DEV-C++ BETA 5 gcc 3.2 and gcc 2.95.3 versions. I am able to compile a console program fine.
I downloaded the wxWindows 2.2.9 compiled version for DEV-C++ and I also found a 2.40 compiled version from the wxWindows site as well. But when I start a new project and then compile the code I get the following error under the compile tab:
[Resource Error] no resources
C:\Dev-Cpp\projects\Makefile.win
[Build Error] [Project1_private.res] Error 1
Also under the compile log tab I get this message:
windres.exe: no resources
make.exe: *** [Project1_private.res] Error 1
Execution terminated
Can anyone please help me with this problem. I have no idea what compiler options I need (I don't even understand them) if they need setting. I assume everything should have been set right when I installed the compiled package of wxWindows.
Thank you for any help.
Adrian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Errmm... they really got a compiled version of wx 2.4.0 at wxwindows.org?? Hmm.. then I guess I worked for nothing..
Anyway: The resource problem is quite common. Try deleting the .rc file dev-cpp generated, uncheck support support winXp themes and check win32 GUI under project options. Another way should be to simply include an icon under the projects options.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-02-04
Thank you very much for responding to my post. First of all, the compiled version is not actually at the wxWindows site, but they do give you a link to another site where someone has actually compiled it. It is at: http://michel.weinachter.free.fr/
Now in reference to your answer, I was unable to find a .rc file. Would be saved where my project and source file is saved? I also have support winxp unchecked and win32 GUI checked but I still get the same error message. There is also an icon included by default with the new project.
I will post you what my default compiler settings are for a wxWindows project and the Makefile.win.
Hmmmm..... looks very odd to me, cause I'd say it should work. There should be an .rc file especially because you included an icon. Maybe try deleting the makefile and (check again) the rc. This is a makefile error, not an options problem.
So it looks for an rc it doesn't find. **_private.rc gets written by dev-cpp.
You could also try (if you don't need resources) to modify the makefile and take out the rules dealing with the resource, compile it from the prompt and maybe it will work.
upcase
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I am very very new to c++. I have downloaded DEV-C++ BETA 5 gcc 3.2 and gcc 2.95.3 versions. I am able to compile a console program fine.
I downloaded the wxWindows 2.2.9 compiled version for DEV-C++ and I also found a 2.40 compiled version from the wxWindows site as well. But when I start a new project and then compile the code I get the following error under the compile tab:
[Resource Error] no resources
C:\Dev-Cpp\projects\Makefile.win
[Build Error] [Project1_private.res] Error 1
Also under the compile log tab I get this message:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\projects\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\projects\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/DEV-CPP/include" -I"C:/DEV-CPP/include/c++" -I"C:/DEV-CPP/include" --pipe -D_X86_=1 -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -mthreads -DSTRICT -D__WXMSW__ -D__WINDOWS__ -Wall -fno-pcc-struct-return -O2 -fno-rtti -fno-exceptions
windres.exe -i Project1_private.rc -I rc -o Project1_private.res -O coff
windres.exe: no resources
make.exe: *** [Project1_private.res] Error 1
Execution terminated
Can anyone please help me with this problem. I have no idea what compiler options I need (I don't even understand them) if they need setting. I assume everything should have been set right when I installed the compiled package of wxWindows.
Thank you for any help.
Adrian
Errmm... they really got a compiled version of wx 2.4.0 at wxwindows.org?? Hmm.. then I guess I worked for nothing..
Anyway: The resource problem is quite common. Try deleting the .rc file dev-cpp generated, uncheck support support winXp themes and check win32 GUI under project options. Another way should be to simply include an icon under the projects options.
Thank you very much for responding to my post. First of all, the compiled version is not actually at the wxWindows site, but they do give you a link to another site where someone has actually compiled it. It is at: http://michel.weinachter.free.fr/
Now in reference to your answer, I was unable to find a .rc file. Would be saved where my project and source file is saved? I also have support winxp unchecked and win32 GUI checked but I still get the same error message. There is also an icon included by default with the new project.
I will post you what my default compiler settings are for a wxWindows project and the Makefile.win.
Compiler:
--pipe -D_X86_=1 -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -mthreads -DSTRICT -D__WXMSW__ -D__WINDOWS__ -Wall -fno-pcc-struct-return -O2 -fno-rtti -fno-exceptions
Linked Options/optional libs or object files:
-lwxmswu -lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lodbc32 -lwsock32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid
Makefile.win
# Project: Project1
# Makefile created by Dev-C++ 4.9.7.0
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES = Project1_private.res
OBJ = main.o $(RES)
LIBS = -L"C:/DEV-CPP/lib" -mwindows -lwxmswu -lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lodbc32 -lwsock32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid
INCS = -I"C:/DEV-CPP/include" -I"C:/DEV-CPP/include/c++" -I"C:/DEV-CPP/include"
BIN = Project1.exe
CXXFLAGS = $(INCS) --pipe -D_X86_=1 -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -mthreads -DSTRICT -D__WXMSW__ -D__WINDOWS__ -Wall -fno-pcc-struct-return -O2 -fno-rtti -fno-exceptions
CFLAGS = $(INCS) --pipe -D_X86_=1 -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -mthreads -DSTRICT -D__WXMSW__ -D__WINDOWS__ -Wall -fno-pcc-struct-return -O2 -fno-rtti -fno-exceptions
.PHONY: all all-before all-after clean clean-custom
all: all-before Project1.exe all-after
clean: clean-custom
rm -f $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(OBJ) -o "Project1.exe" $(LIBS) $(CXXFLAGS)
main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)
Project1_private.res: Project1_private.rc
$(WINDRES) -i Project1_private.rc -I rc -o Project1_private.res -O coff
I have no idea what these do. Would they be my problem?
Thanks again for your help
Adrian
Hmmmm..... looks very odd to me, cause I'd say it should work. There should be an .rc file especially because you included an icon. Maybe try deleting the makefile and (check again) the rc. This is a makefile error, not an options problem.
windres.exe -i Project1_private.rc -I rc -o Project1_private.res -O coff
windres.exe: no resources
make.exe: *** [Project1_private.res] Error 1
So it looks for an rc it doesn't find. **_private.rc gets written by dev-cpp.
You could also try (if you don't need resources) to modify the makefile and take out the rules dealing with the resource, compile it from the prompt and maybe it will work.
upcase