LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

trying to integrate LabWindows with borland C++ ambiguity between Point and _fastcall class

Hi
 
I am trying to integrate Borland C++ with LabWindows. But I am getting the following error when i include the userint file of LabWindows in the Borland C++ env.
 
[C++ Error] userint.h(1724): E2015 Ambiguity between 'Point' and '_fastcall Classes::Point(int,int)'
 
Any suggestions ?
 
Thanks
Charu
0 Kudos
Message 1 of 8
(5,027 Views)
strange... which version of CVI and Borland are you using ?

given CVI is not C++, 'Point' should be a function and not a class. also __fastcall is a calling convention, not the name of an identifier.
using CVI 8.1, i don't see any __fastcall function, i'm not even sure CVI understands __fastcall. but i read somewhere on the internet that __fastcall is the default calling convention for Delphi...

maybe verifying that '__cplusplus' is defined, to be sure that everything from userint.h is declared as 'extern "C"'...


Message Edited by dummy_decoy on 02-12-2008 07:15 AM
0 Kudos
Message 2 of 8
(5,016 Views)

...but he's using the Borland C++ compiler, not the CVI one.

0 Kudos
Message 3 of 8
(5,013 Views)
... but userint.h does not come from the Borland C++ compiler...

(also said: what version of CVI does userint.h originate from ? my version of this file, installed with CVI 8.1 does not define anything related to Point at this line number)
0 Kudos
Message 4 of 8
(5,006 Views)

I am using Borland Turbo C++ version 10.0.3. the userint.h is the CVI include file. Everything in that file is defined with extern C.

I am using 7.0 LAbWindows/CVI. Its not just the "point" struct/function that has the ambiguity but also Rect and other graphic constructs.

I am trying to import some .uir files from the LAbWindows to the Borland C++ env and have included the userint.h and other header files from CVI in the inlcude path of the Turbo C++ project.

Any help would be appreciated.

 

Thanks

0 Kudos
Message 5 of 8
(4,998 Views)
Hi Charu
 
Are you only seeing this behavior with the structs defined in the header?
Nestor
0 Kudos
Message 6 of 8
(4,975 Views)
The issue is fixed. When we create the borland C++ solution , we need to uncheck the option of using VCL. I guess vcl.h has conflicting class/struct names.
 
Thanks
0 Kudos
Message 7 of 8
(4,958 Views)

In the BCB Classes.hpp

extern PACKAGE Types::TPoint __fastcall Point(int AX, int AY);

 

Point and your definition of repeat;

please note Point in the Classes.hpp

 

0 Kudos
Message 8 of 8
(4,195 Views)