LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to resolve conflict between toolbox.h and extcode.h?

Hi!

Very simple question.

I would like to call LabVIEW-generated DLL from CVI GUI Application.

So, I have generate lets say "SharedLib.DLL" in LabVIEW and got SharedLib.lib, and SharedLib.h files.

SharedLib.h  included into CVI project as well as *.lib file.

The problem, that in SharedLib.h file the first line is

#include "extcode.h"

and in CVI I have

#include "toolbox.h"

 

Now I've got following trouble by compiling:

 

 UI Application.c - 3 errors
  "toolbox.h"(504,67)   Redeclaration of 'Pin' with different calling convention, previously declared at extcode.h:445.
  "toolbox.h"(506,76)   Redeclaration of 'SwapBlock' with different calling convention, previously declared at extcode.h:619.
  "toolbox.h"(633,141)   Redeclaration of 'BinSearch' with different calling convention, previously declared at extcode.h:554.

Otherwise if I will change the order of SharedLib.h and toolbox.h, then a lot of other errors coming:

 

 UI Application.c - 20 errors, 6 warnings
  "extcode.h"(443,45)   syntax error; found '<' expecting ')'.
  "extcode.h"(443,45)   Missing identifier.
... <skipped>

  "extcode.h"(445,53)   Redeclaration of 'Pin' with different calling convention, previously declared at toolbox.h:504.
  "extcode.h"(554,94)   Redeclaration of 'BinSearch' with different calling convention, previously declared at toolbox.h:633.

I can remove extcode.h from Sharedlib.h, but this file recreated every time by DLL build.

Of course, I can create my own header for the library, but auto-generated header is a very convenient for me.

 

So, the question is - how can I resolve conflict between excode.h and toolbox.h?

 

Thank you in advance,

Andrey.

0 Kudos
Message 1 of 2
(3,403 Views)

Ups, sorry,

I have similar topic myself:

CVI fails to compile extcode.h (labview include file) and any toolbox fp file in CVI

 

regards,

Andrey.

0 Kudos
Message 2 of 2
(3,399 Views)