Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ErwinMars on July 31, 2009, 09:02:05 pm

Title: How to use precompiler before compile
Post by: ErwinMars on July 31, 2009, 09:02:05 pm
I would like to use a SQL Precompiler, which should precompile my cpp program before its compiled. Can somebody point me to a sample project template. The project should
1. Precompile *.SQX and create the *.CXX file
2. Compile the *.CXX file and create the *.o file and
3. Link the *.o file to a *.exe file.

Any help is welcome.
 
Thanks in advance

Erwin
Title: Re: How to use precompiler before compile
Post by: stahta01 on July 31, 2009, 09:11:11 pm
http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system

Tim S
Title: Re: How to use precompiler before compile
Post by: ErwinMars on August 01, 2009, 09:03:02 pm
Hi Tim,

thanks, yes that works fine. It was a little bit trial and error.

Btw. i'm a newbie in this stuff. So, may be a stupid question. Can you point me also to a page, with simple explanation of the Regular expression, so that i can also catch the messages from the precompiler.

Erwin
Title: Re: How to use precompiler before compile
Post by: ErwinMars on August 01, 2009, 09:20:43 pm
Yes, it was a stupid question. In the meantime i found http://www.regular-expressions.info for that
Title: Re: How to use precompiler before compile
Post by: ErwinMars on August 01, 2009, 09:32:39 pm
But now, after i solved the regular expression, what does the Sub-Expression Indices mean on the Output Parsing panel.

Erwin
Title: Re: How to use precompiler before compile
Post by: Jenna on August 01, 2009, 09:52:31 pm
These are the indices of the backreferences.
See http://docs.wxwidgets.org/2.8/wx_wxregex.html (http://docs.wxwidgets.org/2.8/wx_wxregex.html),http://www.regular-expressions.info/brackets.html (http://www.regular-expressions.info/brackets.html) and http://www.regular-expressions.info/wxwidgets.html (http://www.regular-expressions.info/wxwidgets.html).