LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

problems with C++ head files and Lw/cvi head files

Thanks for responses on my question about windows.h and
formatio.h. From your email, I figured out I have to add windows.h first and then formatio.h. I just try this way, but problem is still there. My code looks like this:

#incude "windows.h"
extern "C" {
#include "cvirte.h"
#include "formatio.h"
#include "userint.h"
#include "nidaqex.h"
...
}

When compiling, the error (from fromatio.h 67is: only one of a set of overload function can be "C" . Could you let me what is wrong?

Regards
0 Kudos
Message 1 of 3
(3,157 Views)
What this error sounds like is that somewhere in your header files or elsewhere, you have two different parameter lists for the same function. Or, in other words, you have a function with certain parameters defined in one place, and later on, the function is defined again with a different set of parameters. I think the compiler would have reported a redefine if the function was defined again with the same set of parameters as the first time.
Your solution to this problem may be to do some investigating into what functoin is being redefined. You could locate the function that pertains to your program the best, and comment out the other one.
On a related note, you can keep further questions on a topic you post by responding to the comments we make. This allows us to ke
ep all similar subject posts in the same thread. Thanks.
0 Kudos
Message 2 of 3
(3,157 Views)
Found a good site to check out on MSDN. The rest of my answer is below.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang98/HTML/_pluslang_function_overloading.asp
0 Kudos
Message 3 of 3
(3,157 Views)