[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Using a shared library on AIX -- works in a C program, doesn't work in a Progress progr

  • Thread starter Thread starter scott_auge
  • Start date Start date
Status
Not open for further replies.
S

scott_auge

Guest
Found the problem - XL C for AIX defaults to compiling to 32bit and _progres is compiled as 64 bit. Duh. Changed the makefile to: all: factorial.c xlc -q64 -c factorial.c xlc -q64 -qmkshrobj -o factorial.so factorial.o run: run.c xlc -q64 -o run run.c -L:/home/sauge/c factorial.so clear: rm run factorial.o factorial.so Also needed to add the directory /home/sauge/c with the .so in PROLIBPATH. If you put the .so where it belongs, it works without modification but I don't have root permission. :) After doing so, the C and Progress ABL code behave.

Continue reading...
 
Status
Not open for further replies.
Back
Top