Hi David,
Thanks, it works.
So, the makefile of dxsamples-4.3.2 should be updated.
Under Linux, the orignal:
hello_loadable: $(HELLOLOAD)
$(DXCC) $(INCLUDES) $(DXCFLAGS) -c hello.c
$(DXCC) $(INCLUDES) $(DXCFLAGS) -c userhello_load.c
$(DXCC) $(INCLUDES) userhello_load.o hello.o -o
hello_loadable
should be changed to
hello_loadable: $(HELLOLOAD)
$(DXCC) $(INCLUDES) $(DXCFLAGS) -c hello.c
$(DXCC) $(INCLUDES) $(DXCFLAGS) -c userhello_load.c
$(DXCC) $(INCLUDES) -shared -fPIC -eDXEntry
userhello_load.o hello.o -o hello_loadable
KC
David Thompson wrote:
You must compile with the proper flags for a linux loadable module to
make sure it links correctly add
--shared -eDXEntry
to the compile line.
David