Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem found while Linking

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  
0 Kudos
Message 1 of 2
(4,956 Views)

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.

Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(4,943 Views)