LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

import shared library

Hi;

 

I am developing a LabVIEW binding for Fast Artificial Neural Network (FANN) library using LabVIEW Import Shared Library (.DLL). This library can be found here. My problem is, the wizard cannot convert all functions into corresponding VIs. One of the error is 

"FANN_EXTERNAL struct fann *FANN_API fann_create_from_file(const char *configuration_file);

 

Undefined symbols can prevent the wizard from recognizing functions and parameters. To correct this problem, check the header file to determine if you must add predefined symbols. Click the Back button to return to the previous page of the wizard to add a preprocessor definitionsl (for example, "NIAPI_stdcall = __stdcall" or "NIAPIDefined = 1").

FANN_DLL_EXPORTS;FIXEDFANN;_INC_WINDOWS;_MSC_EXTENSIONS;_MSC_VER;__GNUC__;__cplusplus;" 

 

Can somebody tell me what is the problem. I am not good in C.

 

Below I attached the configuration for Import Shared Library(picture) and the source code for FANN Library. I have removed some of the source code which are not related as this forum limit the attachment file size.

 

Thanks in advance 

 

DLL and header.jpg

 

Configure.jpg 

 

Convert.jpg 

 

The functions those can not be converted.jpg 

DAKBIAS
0 Kudos
Message 1 of 2
(2,573 Views)

duplicate post:

 

http://forums.ni.com/ni/board/message?board.id=170&thread.id=440448

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 2
(2,569 Views)