LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI: compile et create a executable with Visual C++ project

I compile a C project with VISUAL C++ 2005 (I use a example project from Gsoap).

 

The project can be compile et create an executable with VISUAL C++.

 

I can not compile the project with CVI.

 

I have a problem of link (__snprintf, _write, _read ....)

 

Do you have a solution please?

0 Kudos
Message 1 of 4
(3,640 Views)
in C, there is a convention which states that vendor specific functions (those that are not part of the standard) have their name starting with an underscore ('_'). check your code, you might be using non-standard functions. i can already tell you that snprintf is one of those functions. you can easily find replacement functions or alternative ways to perform the same thing.
0 Kudos
Message 2 of 4
(3,605 Views)

Thanks for your message.

 

I have a problem because when I use the fonctions without underscore. 

 

I add the file stdio.h from Microsoft Platform SDK to the project. The fonctions snprintf and _snprintf are defined in this file.

 

I have always compile errors like:

 

"Missing prototype"

 

I used CVI 7.0.

 

I can use the CVI 9.0 with evaluation.

 

 

0 Kudos
Message 3 of 4
(3,603 Views)

Hi Daniau !

 

Dummy is right !

This error is not exclusive of LabWindows/CVI. It is a standard error that any C compiler will generate whenever you try to call a function that has not been declared previously.

It is very commonly generated when a function name is misspelled (i.e. typing print instead of printf).

Another cause would be when you don't use the void keyword for a function which does not receive any arguments.

Try declaring the function as: void my_func(void); instead of :  void my_func();.

 

Regards,

0 Kudos
Message 4 of 4
(3,594 Views)