Fabio: You could check whether oxexport.h has been linked when compiling. It looks like it cannot find oxexport.h. you can either write out the full path to that file in threes.c or use include the path when compiling. That last step worked for me. Pierre-Carl. -----Original Message----- From: The ox-users list is aimed at all Ox users [mailto:[log in to unmask]] On Behalf Of Fábio Demarqui Sent: Friday, May 08, 2009 10:15 AM To: [log in to unmask] Subject: problem calling C functions from Ox 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 __________________________________________________________________________ This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.