05-01-2009 08:34 AM
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?
05-04-2009 02:59 AM
05-04-2009 03:40 AM
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.
05-04-2009 04:52 AM
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,
Emmelyne G.
National Instruments France
>> Vidéo-t'chats de l'été : présentations techniques et ingénieurs pour répondre à vos questions