On 05.07.2017 02:59, U-BLASTER-6000\mtdew wrote:
Hi- I looked everywhere for docs on using gpre. I am interested in either a c, c++, or cobol example for gpre compiled with gcc,g++, or cobc for gnucobol. Can anyone include a link or file with some pointers? e.g. c file with embedded sql and then the gcc commands to make it work. I am using 2.5.x series cobol versions. I think after the gpre line there is only one or two lines of gcc compiler commands to make it work. c would probably be the easiest because when you run gpre with cobol it is a little bit of work to get the output formatted the right way for instance to feed it to cobc for gnucobol. I tried paul's article on cobol but got really stuck, so I think C or C++ might be better. Thanks for any links or a very brief tutorial if you can provide them.
What about C - you can find some samples in examples/stat of firebird distro (not absolutely sure for windows binaries, if it's missing there - please use src tarbal, linux binaries or github directly).
With Cobol things are worse. I do not know any sample, what is worse - noone of FB developers ever used to write a single line using that language. And if I'm not mistaken gpre distributed in binaries does not support cobol.
Also I have to warn you that gpre is close to getting 'de[recated' status soon i.e. it's not recommended to start new projects using it.
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel