User forums > Using Code::Blocks

Missing std.ico, wx.rc files in a project migration from old XP to Win 7 inst

(1/3) > >>

Aaron:
I'm setting up CB on a Win 7 pc (CB 16.01, wxWidgets 3.1.0). I have been using CB(13.12, wxWidgets 3.0.2) on Win XP for years with no problems.
I'm trying to build and run a working project transferred from the XP box to the Win7, but I can't get beyond this error.

I have compared my settings on these pcs side-by-side, but I must be overlooking something.
Both std.ico and wx.rc are located in the C:\wxWidgets-3.1.0\include\wx\msw  folder.

The build log:

-------------- Build: Release in wxPanel4 (compiler: GNU GCC Compiler)---------------

windres.exe -IC:\wxWidgets-3.0.2\include -IC:\wxWidgets-3.0.2\lib\gcc_lib\mswu  -J rc -O coff -i C:\Users\Admin\Desktop\BRIEFC~1\CPP_PR~1\CODEBL~1\WXWIDG~1\wxPanel4\resource.rc -o obj\Release\resource.res
C:\Users\Admin\Desktop\BRIEFC~1\CPP_PR~1\CODEBL~1\WXWIDG~1\wxPanel4\resource.rc:3:24: fatal error: wx/msw/wx.rc: No such file or directory
 #include "wx/msw/wx.rc"
                        ^
compilation terminated.
windres.exe: can't open icon file `wx/msw/std.ico': No such file or directory
windres.exe: preprocessing failed.
Process terminated with status 1 (0 minute(s), 0 second(s))
3 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 ----- End build log -----

In the below resource.rc file the paths are the same.

--- Code: ---aaaa ICON "wx/msw/std.ico"

#include "wx/msw/wx.rc"
// prefix is: C:\wxWidgets-3.1.0\include\

--- End code ---


Would this be a global variable issue or edit the resource.rc file(manually)?

Any assistance appreciated.

stahta01:
You likely need to add the include header search path to the project.
Remember to add it to the resource tab!

Also, fix any CB Global Variables on the new computer.

If you still have problems; post a build log.
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Tim S.

stahta01:
Note: I have no idea; but, I missed the build log the first time I read your post.
Edit: I normally look for it being in code tags.

What version in the MinGW GCC Compiler; some of them had bad windres.exe in the past.
The problem seems to happen every few years. So, post the place you got the Compiler from.

Also, I suggest searching for "windres.exe" on your computer to be sure you are using the correct one.

Tim S.

stahta01:
Decide what wxWidgets version you are using!!!

The log says 3.0.2 your words says 3.1.0 !

Tim S.

Aaron:

--- Quote ---Decide what wxWidgets version you are using!!!

The log says 3.0.2 your words says 3.1.0 !
--- End quote ---

I Have Decided What wxWidgets version I am using!!!  3.1.0! Yeaaa.

Yes,the log says 3.0.2, but Installed is 3.1.0!  -- As I stated in my original post...
3.0.2 was used with this project in the old PC.  This is all I know.  They are on the desk in front of me.


--- Quote ---What version in the MinGW GCC Compiler; some of them had bad windres.exe in the past.
The problem seems to happen every few years. So, post the place you got the Compiler from.
--- End quote ---

The version of MinGW32 I am using came with the latest version of CB 16.01.
I will have to determine it's actual version number.  Should it be common knowledge as to what version is bundled with CB 16.01?
The CB website doesn't give the version.  I will try to find out for you though.

Navigation

[0] Message Index

[#] Next page

Go to full version