User forums > Using Code::Blocks
wxFormBuilder generated classes and using them within code::blocks
blue orb:
okay, as said, a wxWidgets project works fine...
but a wxsmith project still doesn't compiile.
i have told code::blocks where the wxWidgets (wxPack) is and that works fine with a new wxWidgets project. alas, wxsmith projects still don't compile.
the differences between wxWidgets and wxsmith are beginning to blur on me.
i might give this up ;)
Radek:
wxWidgets headers have not been found at all, even if they are in "<>". Check what is produced by wx-config --cxxflags and wx-config --libs. If your headers (and libraries) are elsewhere, add paths to your headers (and libraries) to Build Options of your project. You can also create a "custom project" which will be wxWidgets project along with the right paths to your headers. The problem does not seem to be caused by wxFormBuilder.
The underscores are okay. They aren't around names of variables but around #define symbols, where underscores are used frequently.
zabzonk:
> The underscores are okay. They aren't around names of variables but around #define symbols, where underscores are used frequently.
Perhaps you should read the C and C++ standards before giving advice like this? Names like that are NOT OK. To quote from the C Standard:
> All identifiers that begin with an underscore are always reserved for use as macros and as identifiers with file scope in both the ordinary and tag name spaces.
and:
> All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use.
Here "reserved" means "reserved for the C (or C++) compiler implementers".
Navigation
[0] Message Index
[*] Previous page
Go to full version