hello world example of gpre requested

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

hello world example of gpre requested

U-BLASTER-6000\mtdew

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.
It is almost like undocumented even with google!

Have a cool rest of the work week -
jim

------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hello world example of gpre requested

firebird-devel mailing list


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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hello world example of gpre requested

Paul Beach
In reply to this post by U-BLASTER-6000\mtdew

<<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.>>

I have some cobol samples - on paper.
I have used gpre fairly extensively over the years, but you are right
in terms of deprecation, it doesn't support new features and its very
long in the tooth. Adding cobol support to Firebird by doing a build
isn't complicated, a simple

./configure –with-gpre-cobol
make

Should do the trick.

Regards
Paul


------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: hello world example of gpre requested

Leyne, Sean
In reply to this post by firebird-devel mailing list


> 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.

Actually, Steve Boyd provided patches for Cobol support some time back.

Perhaps he has examples that can the provided.


> 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.

I completely agree that gpre needs to become g-gone.


Sean


------------------------------------------------------------------------------
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
Loading...