Hi,
I have been looking at Tntnet at tntnet.org (website down at the moment of writing). It has a way of creating web applications using C++, which I find interesting. Even more interesting is that you can create "stand alone" web applications that contain their own web server, it is simply a special form of C++ console application. That means it is possible to use Code::Blocks for such web development. Tntnet has a special file type *.ecpp which compiles into *.cpp using the ecpp compiler:
ecppc <filename>.ecpp -o <filename>.cpp
Obviously, the output *.cpp file is further compiled using the C++ compiler in the normal way. One may do this using makefiles, however, I would much prefer to use the Code::Blocks build system instead.
My question is therefore: What do I need to do in Code::Blocks to make it recognize *.ecpp files. compile them using the ecppc compiler and immediately compile/link the resulting *.cpp file using g++?