Re: Crreating a UDR on HPUX 10.20
Posted in 2000
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues
From: dgmyrs@my-deja.com > >I have a simple c routine that I am trying to compile into a shared >library, but the only examples I can find are for Solaris. The file I >am trying to compile is named checkcaps.c. > >I first issue the following command: > > >cc -PIC -DMI_SERVBUILD -I/home/informix_udo/incl/public - >I/home/informix_udo/incl -L/home/informix_udo/esql/lib -c checkcaps.c > >This results in a checkcaps.i file. I then issue: > > >ld -G checkcaps.i -o checkcaps.so > >This returns the following error: > >ld: checkcaps.i: Not a valid object file (invalid system id) Which version of HPUX? HPUX 11.0 must have the worst, most hostile and confusing C compiler on the planet. :-( _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
Obnoxio The Clown wrote: > > From: dgmyrs@my-deja.com > > > >I have a simple c routine that I am trying to compile into a shared > >library, but the only examples I can find are for Solaris. The file I > >am trying to compile is named checkcaps.c. > > > >I first issue the following command: > > > > >cc -PIC -DMI_SERVBUILD -I/home/informix_udo/incl/public - > >I/home/informix_udo/incl -L/home/informix_udo/esql/lib -c checkcaps.c > > > >This results in a checkcaps.i file. I then issue: > > > > >ld -G checkcaps.i -o checkcaps.so > > > >This returns the following error: > > > >ld: checkcaps.i: Not a valid object file (invalid system id) > > Which version of HPUX? HPUX 11.0 must have the worst, most hostile and > confusing C compiler on the planet. :-( It is not yet the worst, most hostile and confusing compiler - but HP is promising a free upgrade 2001Q2 to a better effort! Art S. Kagel