Actually gdbm is not a problem. I added unicon/src/gdbm and unicon/src/libtp as include directories to gcc and compilation finished successfully.
But it didn't help, step of shared linrary creation is failed:
>gcc -c bitcount.c -I../../../src/h -I../../../src/gdbm -I../../../src/libtp
>gcc -shared -Wl,--enable-auto-import -o libfunc.so bitcount.o
bitcount.o:bitcount.c:(.text+0x14): undefined reference to `curpstate'
collect2.exe: error: ld returned 1 exit status
19.02.2014, 16:29, "Hugh Sasse" <h...@dmu.ac.uk>:
I've not tried this, but you may be able to get there by building gdbm.
http://www.gnu.org.ua/software/gdbm/manual/html_node/Compatibility.html#SEC19
leads me to this belief.
Hugh
On Wed, 19 Feb 2014, Sergey Logichev wrote:Hello,
I would know is it possible the dynamic loading of C-functions for Windows?
Theorethically shared library may be created with help of MinGW gcc. It
seems that main problem is a compilation of loadable C-function itself.
I have tried to compile an example included in Unicon sources
(unicon/tests/calling/loadfunc/).
But gcc compiler couldn't find one from inluded header-files:
c:\work\unicon\tests\calling\loadfunc>gcc -c bitcount.c -I../../../src/h
In file included from ../../../src/h/rt.h:10:0,
from fib.c:4:
../../../src/h/../h/sys.h:349:18: fatal error: ndbm.h: No such file or
directory
#include <ndbm.h>
^
compilation terminated.
I suppose that it is result of some misconfiguration. What I need to do to
successfully complete the compilation?
Unfortunately I didn't find any instructions for Unicon how to create the
shared library. For Icon we have detailed explanations but these ones can
not be used for Unicon.
Thanks,
Sergey Logichev
------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________ Unicon-group mailing list Unicon-group@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unicon-group