creating sample-project files for Code::Blocks

Biplab Kumar Modak bkmodak at gmail.com
Sun Mar 4 23:04:40 PST 2007


Christian Buhtz <yspam at ...> writes:

> 
> ABX schrieb:
> > The key is to add Code::Block format to generator called bakefile.
> 
> The current vc-projects in cvs are generated automaticly with bakefile?
> 


I don't see any need of it unless you want to add more files to wxWidgets
distribution.

The problem is, There are a number of possible combination of wxWidgets lib. So
for each possible alternatives you need to create a project file. Remember
wxWidgets can be compiled with different compilers, too. If you wan to add C::B
project file, then for each sample you need to add a different project file for
a particular compiler alongwith all possible wx lib configurations (around 10+,
if I'm not wrong).

I would give you an alternative suggestion.

1. Create an Empty wxWidgets Project for a Compiler. Code::Blocks will set
appropriate settings. Keep this as your Master Copy.
2. Add the sample source (whatever you want to compile) to one copy of Master
Project file.
3. Compile it.

You may use the same empty project file to compile multiple samples. I agree
that this is not a very good suggestion, but this would work.

At the time of writing this mail, Code::Blocks wxWidgets Project Wizard
Officially supports -
1. GCC, BCC 5.5.1 & 5.82, MSVC 7.1 & 8, OpenWatcom in Windows (Digital Mars
support for wxWidgets will be added soon)
2. GCC in Linux and Mac

So there is possibility of testing samples in Code::Blocks with a wide variety
of compilers. Only thing you have to do is to run the wizard few times.

I hope I could make my points clear to you.

Regards,

Biplab

(http://biplab.in)





More information about the wx-dev mailing list