LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

C++ CIN problem

I'm trying to create a C++ CIN using MSVC 6. The CIN is fairly simple:

// multab.cpp

#include "extcode.h"

CIN MgErr CINRun(float64 *A, float64 *B, float64 *C);

CIN MgErr CINRun(float64 *A, float64 *B, float64 *C)
{
*C=*A * *B;
return noErr;
}

This compiles ok, but when building the dll, I get this message:

cin.obj : error LNK2001: unresolved external symbol _CINRun

I have followed the instructions for setting up the project acording to the
CINRef man. p1-30.

What is wrong?

Thanks for your time.
ttLied.
0 Kudos
Message 1 of 2
(2,688 Views)
Try with this prototype:

extern "C" CIN MgErr CINRun(float64 *A, float64 *B, float64 *C);

Hi - Filippo
0 Kudos
Message 2 of 2
(2,688 Views)