Discussion:
Problem found while Linking
(too old to reply)
vivekde
2007-11-30 08:40:06 UTC
Permalink
Hi All,
 
          I am getting an error while I am trying to compile CAN Receive.c we got after purchasing NI_CAN 8473 in DEV-C Compiler. The compiler is unable to figure out the API's used for the device and hence throwing linking error "Undefined reference to API's". I am having nicanbor.lib and nican.h files along with C.
 
 
          Looking for help !!!!
 
 
Thanks in advance,
 
Vivek  
Lauren L
2007-12-03 16:10:22 UTC
Permalink
Hi Vivek,
I believe that your issue may be due to the calling convention used by the DLL when compiling with DEV-C.  If it is derived from GCC, you will need to copy the dll to your directory and create a .def file that lists the exportable routines that the dll has.  From there, you can create an import file, although the .def file may require some modifications.
It is a fairly complicated process, if the calling convention is, indeed, the root of your problem.  If you can give me more information about the specific operating system, programming software, and compiler software you are using, I might be able to give you a more exact answer.
I hope this helps a little.
Regards,
Lauren L.

Continue reading on narkive:
Loading...