Click here to Skip to main content
15,895,772 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to build a project from CodeProject from this article.

Using CodeBlocks 13.12, wxW 3.0.2, MinGW-64.

I have never before seen this error, but seems to be related to one particular pc. (of two pcs in which I have recently installed CodeBlocks and wxWidgets)
I believe I have both PCs CodeBlocks Settings, Build Options, and Global Variables set identically. (The other PC builds this project with no errors)

The resource.rc file mentioned IS IN the project folder.
C++
aaaa ICON "wx/msw/std.ico"

#include "wx/msw/wx.rc"


Build Log:
-------------- Build: Release in wxlConsole (compiler: GNU GCC Compiler)---------------

windres.exe -I(invalid)\include -I(invalid)\lib\gcc_lib\mswu -J rc -O coff -i C:\WXLCON~1\resource.rc -o obj\Release\resource.res
C:\WXLCON~1\resource.rc:3:24: wx/msw/wx.rc: No such file or directory
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), 10 second(s))
3 error(s), 0 warning(s) (0 minute(s), 10 second(s))
I'm thinking this is an IDE configuration issue, as I copied the project folder & contents to the second PC and it builds without errors. Both PCs are Windows XPpro, 1-SP2(build-ok), 1-SP3, both 32-bit.

Any help appreciated.
Posted
Updated 8-Mar-15 8:05am
v3

1 solution

My tip is, that these files are from the wx-framework. So you need to install it on the second PC. Or it is a path issue. Find them on the first PC and compare it with the second to get what is missing.
 
Share this answer
 
Comments
EdwardX2 9-Mar-15 11:21am    
I have verified the files std.ico and wx.rc are in the partial path in the resource.rc file. Can the resource.rc be removed from this(a) project? Contents of resource.rc: aaaa ICON "wx/msw/std.ico" #include "wx/msw/wx.rc" .

A pre-build Exe file does run perfect on the PCs that won't build it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900