From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I call a DLL from Borland C++Builder that was generated by LabVIEW?

In the linking phase, the linker of Borland C++Builder echoes the message shown below:

[Linker Error] 'Test.LIB' contains invalid OMF record, type 0x21 (possibly COFF)

'Test.LIB' was generated by LabVIEW Application Builder and had been verified working well with Microsoft Visual C++
0 Kudos
Message 1 of 2
(2,559 Views)
"Murray Chen" schrieb im Newsbeitrag
news:506500000008000000D2310000-1005954886000@exchange.ni.com...
> In the linking phase, the linker of Borland C++Builder echoes the
> message shown below:
>
> [Linker Error] 'Test.LIB' contains invalid OMF record, type 0x21
> (possibly COFF)
>
> 'Test.LIB' was generated by LabVIEW Application Builder and had been
> verified working well with Microsoft Visual C++

Hi Murray,

Borland C++ Builder uses a .lib format which is not equal with VC++. You
have to rebuild your .lib by using implib.
Try 'implib library.lib library.dll' to create a new .lib.

Greets
Henrik
0 Kudos
Message 2 of 2
(2,559 Views)