Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: begooden-it on May 09, 2012, 02:15:16 pm

Title: Did anyone integrate ESQL/C into codeblocks
Post by: begooden-it on May 09, 2012, 02:15:16 pm
Hi community,

please forgive my newbieness on code::blocks, but the product is really cool. I would like to use it as
my IDE for Informix ESQL/C ( which is C/C++ with embedded SQL ).

It sound relatively easy to create new syntax highlight for those esql/c files, which have .ec as extension. ( add a new .xml file called lexer_esqlc.xml with
relevant contents).

I would like to push the integration a bit further and be able to compile and debug from the IDE ( which is what is expected from an IDE btw)

As anyone already done this?

To compile an esql/c program, you will use the '"esql" command that proprocesses the source files then compiles/links them using the regular
c or c++ compiler.

To debug an esql/c program, you will use the regular c/cc+ debugger.

I think this is possible to integrate all this in code::blocks, but not sure about how to proceed.

Any ideas for this?

Thanks
E.
Title: Re: Did anyone integrate ESQL/C into codeblocks
Post by: Freem on May 10, 2012, 11:14:35 pm
I think you could use pre and post build steps, in project's properties => build options if I remember correctly.
Title: Re: Did anyone integrate ESQL/C into codeblocks
Post by: stahta01 on May 10, 2012, 11:52:12 pm
I think you could use pre and post build steps, in project's properties => build options if I remember correctly.

That is one way.

This is another way.
http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system (http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system)

Tim S.
Title: Re: Did anyone integrate ESQL/C into codeblocks
Post by: begooden-it on May 11, 2012, 09:45:37 am
Thanks guys!

that's it! and it works! :)

Code::blocks is a great IDE!