My source code as below
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
#include "libsub.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
int bc;
sub_device dev=NULL;
//sub_handle handle=NULL;
AnsiString descr, ver;
char tmp[32];
Edit1->Text="";
dev =sub_find_devices(dev);
if(dev==0)
Edit1->Text="NG";
}
Error Message:
[Linker Error] 'D:\SUB-20\SUB20_TEST\SUB20.LIB' contains invalid OMF record, type 0x21 (possibly COFF)
What am I doing wrong?
