Re: Compile .ec?
Posted in 1999
Hi, Set your LD_LIBRARY_PATH env variable to contain $INFORMIXDIR/lib:$INFORMIXDIR/lib/esql and export it. Best Regards, Octav On Thu, Jun 03, 1999 at 08:49:58AM +0000, carina@371.net wrote: > I've installed INFORMIX-OnLine 7.22.UC2 PRODUCT RELEASE on my > SCO OpenServer5.0 and created a database---mydb and some tables. > I write a easy program as below: > > /* a.ec */ > #include <stdio.h> > EXEC SQL include sqlca; > main() > { > $database mydb; /* database mydb */ > printf("open database\\n"); > $update kh /* table kh */ > set department="computer science" > where number=101; /* department and number are columns */ > printf("update complete\\n"); > } > > I use "esql a.ec -o aa" to compile it,then I execute aa,it shows: > $dynamic linker : aa : error opening libixsql.so > Killed > > I'm a beginner to informix so I feel puzzled. > Who can tell me how should I do to compile this .ec? > Thanks in advance. > > > Sent via Deja.com http://www.deja.com/ > Share what you know. Learn what you don't. -- Octav Chiriac Phone: (373) 2 22 99 67 NetInfo S.R.L. Fax: (373) 2 21 36 59 Chisinau (373) 2 24 00 83 Moldova, Republic of mailto:com@netinfo-moldova.com