tetrahydrex
In Runtime
- Messages
- 239
Hello.
I am having a problem with C++. I am using the BASS audio library. I am trying to initialize the library now, and C++ Builder keeps giving me this error: [Linker Error] Error: Unresolved external 'BASS_Init' referenced from D:\D-PT\WORK\MPROG\C++\TURBO C++ EXPLORER\KMPEE-9\DEBUG_BUILD\U_KMPEE_9.OBJ
Here is the code:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "U_KMPEE_9.h"
#include "bass.h"
#include "string.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TFKMPEE *FKMPEE;
//---------------------------------------------------------------------------
__fastcall TFKMPEE::TFKMPEE(TComponent* Owner)
: TForm(Owner)
{
HWND win;
BASS_Init(-1, 44100, 0, win, NULL);
}
//---------------------------------------------------------------------------
I already included the directory of the .dll, .lib, and .h files in the search path in the options. The dll, lib, and h file are all in the same directory.
Could someone please help me?
Thank you.
I am having a problem with C++. I am using the BASS audio library. I am trying to initialize the library now, and C++ Builder keeps giving me this error: [Linker Error] Error: Unresolved external 'BASS_Init' referenced from D:\D-PT\WORK\MPROG\C++\TURBO C++ EXPLORER\KMPEE-9\DEBUG_BUILD\U_KMPEE_9.OBJ
Here is the code:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "U_KMPEE_9.h"
#include "bass.h"
#include "string.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TFKMPEE *FKMPEE;
//---------------------------------------------------------------------------
__fastcall TFKMPEE::TFKMPEE(TComponent* Owner)
: TForm(Owner)
{
HWND win;
BASS_Init(-1, 44100, 0, win, NULL);
}
//---------------------------------------------------------------------------
I already included the directory of the .dll, .lib, and .h files in the search path in the options. The dll, lib, and h file are all in the same directory.
Could someone please help me?
Thank you.