Dear all,
I have had trouble calling C functions from Ox. I am using Ox Console
5.10. Following the steps provided in the Ox Appendix, I downloaded
the Ox 5.1 Development kit, unzipped it, and I put it into the Ox
folder. Then, before creating the .dll file for the function I am
interested in, I tried to replicate the example "threes" (which is in
ox/dev/samples/threes/) using the compiler Dev C++, but every time I
try to create a .dll file, I get the following error message:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Projeto_dll\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Projeto_dll\Makefile.win" all
dllwrap.exe --output-def libthrees.def --implib libthrees.a threes.o
--no-export-all-symbols --add-stdcall-alias -o threes.dll
threes.o(.text+0x26):threes.c: undefined reference to `OxLibCheckType@16'
threes.o(.text+0x57):threes.c: undefined reference to `OxLibValMatMalloc@12'
collect2: ld returned 1 exit status
dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
dllwrap.exe: gcc exited with status 1
make.exe: *** [threes.dll] Error
It seems to me that the compiler is not able to find both the
functions OxLibCheckType and OxLibValMatMalloc, which are listed in
the oxexport.h file. I have already checked if I am doing something
wrong when creating the .dll file by using another function instead of
threes.c, but in this case everything goes perfect.
Does anybody have any idea of how can I solve this problem, or any
material that can help me?
Thank you in advance,
--
Fábio Nogueira Demarqui
Visiting Scholar
Department of Statistics
University of Connecticut
|