cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

CIN(Code Interface Node)

NI engineers:
I am one of your users (labVIEW 6.1).
Now, I have some questions to ask you. Please give me some help.
I try to use the CIN(Code Interface Node) function, but I can not pass compile.I do not know why?
The c file is very simple, and the Compiling result is as following.
Please help me to solve the problem.
Thank you !
Chenyong
2002/7/7



/*
* CIN source file
*/

#include "extcode.h"

CIN MgErr CINRun(int a,int b,int c);

CIN MgErr CINRun(int a,int b,int c) {

/* ENTER YOUR CODE HERE */
int a;int b;int c;
a=1;b=2;
c=a+b;
return noErr;
}







--------------------Configuration: try - Win32 Debug--------
------------
Compiling...
629.c
c:\labview\labview 6.1\z_beginner\629.c(17) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
0 kudos
Mensaje 1 de 3
3.121 Vistas
Hi Chenyong;

Do not declare your variables again in the code, as they are already declared in the function prototype. Remove the line:

int a;int b;int c;

Regards;
Enrique
www.vartortech.com
0 kudos
Mensaje 2 de 3
3.121 Vistas
Hallo
re-declaring the parameters as local variables will prevent the function to do what you expect.
But your error is more probably a problem the compiler configuration. Make sure the path to the include file extcode.h (and all it's own includes) is known to your compiler.

Gabi
7.1 -- 2013
CLA
0 kudos
Mensaje 3 de 3
3.121 Vistas