User forums > Using Code::Blocks

wxsmith - fatal error wx/dialog.h: no such file or directory

<< < (2/4) > >>

zabzonk:
To write wxWidget applications, you need the wxWidgets libraries and header files. These are not part of Code::Blocks or of the GCC compiler, but must be installed separately.  You can get a pre-built version of the wxWidgets libraries from wxPack at http://wxpack.sourceforge.net.  If you do not use wxPack, you will have to build wxWidgets yourself - this is not something I would recommend you try doing.

Have you installed wxWidgets?

blue orb:
i have both wxWidgets 2.8.12 and wxWidgets 2.9.2 installed. i have also installed wxPack. how do i link wxPack to code::blocks?

thanks!

zabzonk:
When you create a wxWidgets project in Code::Blocks, one of the things the Project Wizard asks you is for the directory you installed wxWidgets in (the one that contains the include and lib directories). Start a new wxProject, and make sure that this setting is set correctly, pointing to the wxPack installation.

I've just done this, and built the small Hello World wxWidget project with no problems.

blue orb:
the wxPack folder (on my c: drive) only contains a few files + an unistaller. it isn't very populated. does wxPack install to another location, too? though wxFormBuilder installed okay and is working.fine. the question i really want to ask, is, how are wxsmith, wxWidgets, wxPack, code::blocks and wxFormBuilder interweaved?

zabzonk:
That is the directory used by the installer. When you ran the wxPack installer, it will have asked you "Where should wxWidgets Compiled be installed?" It is that directory that contains the include files and libraries.

As for the relationship between the components, wxWidgets is a library. Applications like Code::Blocks, wxFormBuilder, and whatever it is that you are trying to write, use that library.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version