From: <bur...@ya...> - 2002-08-23 08:23:38
|
I am looking for some general librarys for accessing databases using Tiny Cobol. Starting my first hp3000 conversion to Linux/Tiny Cobol , does anyone have any resources they can point to that will work with an sql db please. Thanks for any help in advance. Regards Peter --- Ferran Pegueroles <fer...@re...> wrote: > eurlix wrote: > > >Hi All, > > > >I am trying to use postgreSQL with TC, using > Rildo's tdb02a.c > >compiled as a shared library. > >This works not too bad (thanks Rildo) but the time > to start > >a program is almost TWENTY seconds. > >I think that is the time to find libpq.so in > /usr/lib/. > >I have tryed somethings like : > >- add "/usr/lib/libpq.so" in TCOB_LD_LIBRARY_PATH, > >- recompile TC with libltdl, > >... > >but the time for start the program is always the > same. > > > >As someone (perhaps Ferran) an idea about this ? > > > >Regards, > > > > > Sorry for the late answer, I was on halydays. > > The calls to libpq are from the C source, then the > TCOB_LD_LIBRARY_PATH > doesn't act on it. This only acts for finding the > routines found on tdba.c > > My recomentation is, first link tdba.c with libpq. > This can be done > easily because shared libs can be linked with other > shared libs. This > should reduce the time needed to find libpq. Then > the problem is the > time to fund the libraries found on tdb02a. A good > solution is to rename > the shared object to something like libtdba.so. > > If this doesn't work try to inser displays and > printf on the cobol and c > source and see where is the time spend exactly. > > If nothing helps, ask me again with more detailed > info. > > -- > Salutacions / Regards > +---------------------------------------------------------------+ > | Ferran Pegueroles Forcadell > | > | mailto:fer...@re... > | > | Tels (+34)937252106 - (+34)667658535 > | > | C/Unió 44 2n 2a 08201 Sabadell (BCN) > | > +---------------------------------------------------------------+ > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of > that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Tin...@li... > https://lists.sourceforge.net/lists/listinfo/tiny-cobol-users __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com |