User forums > General (but related to Code::Blocks)
wxWidgets Samples
alb_cb_moon:
I know that this is a old post but I have the same problem. I try to download the Hakki's sample archive but the link are death, someone have a copy of it?
alb_cb_moon:
Finally I can download the archive but it don't work , whem I try to compile
show the error
--- Code: ---Compiling: ..\sample.rc
C:\project\WXWIDG~1.8\samples\sample.rc:31:24: wx/msw/wx.rc: No such file or directory
windres.exe: preprocessing failed.
Process terminated with status 1 (0 minutes, 0 seconds)
2 errors, 0 warnings
--- End code ---
I try a lot but I can't fixed it, then I create a empty project, add the archives minimal.cpp and sample.rc
copy the same options of a wxWidgets project created by the wizard, but without
the option '-include wx_pch.h', I use the build targets of wxminimal-cb.zip for
the gcc compiler and it works...
hd:
Hi,
(wx2.8.8, mingw-3.4.5)
I'm glad you found your way to compile it.
Seeing your unsuccessfull try, I tried to use my project file. As you, I too failed :( Believe me it was working at that time..
There are two differences/problems:
- Project file was for ANSI build
- Compiler settings-#defines: Added wxUSE_UNICODE
- Linker settings: Changed wxmsw28 to wxmsw28u, wxregex to wxregexu
- It seems cb misses to add (Search directories-Resource compiler) resource include directories to windres command. I removed minimal.rc from project.
ps. I'm not using other compilers now, so didn't check them.
--
Regards,
Hakki Dogusan
Navigation
[0] Message Index
[*] Previous page
Go to full version