User forums > Using Code::Blocks

Cant load bitmap 'wxBITMAP_STD_COLOURS' from resources! ..

(1/1)

armink:
Check rc file.

Well I Imported a project from DEVC++ where all worked fine to CB.

All compiles fine but when I start the App, I get the message above ...

I checked the rc file, it is compiled and says

#include <wx/msw/wx.rc>

The path D:\wxWindows-2.4.2\include , the mother of wx/msw/wx.rc is included in the linker dir ...

wx.rc exists ...


Whats wrong please ?

armink:
and the application exe doesnt have the icon it should have ...

mandrav:

--- Quote ---The path D:\wxWindows-2.4.2\include , the mother of wx/msw/wx.rc is included in the linker dir ...
--- End quote ---

This should go in the compiler's dirs, not the linker's...

Yiannis.

armink:
Hi Yannis,

it is also in the compiler dir ... I put both to be sure ... thats not the problem , have you any other idea what it may be ?

armink:
Hi again the solution was:

In "Project/Properties/Targets" select the "rc" file, click "Selected file options" and enable "link file"


Thanx to all how tortured their brains with me :-) :D

I surely will come back, there is a lot to discover in CB, its great !

Navigation

[0] Message Index

Go to full version