Linking problem with C++.

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.
 
What the error is trying to tell you is that youre calling BASS_Init with all those parameters but the actual definition and code for BASS_Init isnt anywhere within the other code youre compling.

Are you sure youve got everything on the linker path correct and is everything you need there? Can I please see your linker path can you copy and past e it for me please.
 
This is the search path from C++ Builder: $(BDS)\Include\Indy9;$(BDS)\Lib\Indy9;D:\D-PT\Libraries\Audio\bass23\c
 
Back
Top Bottom