Extern function definition (BASS-Lib Call)

BlitzMax Forums/BlitzMax Programming/Extern function definition (BASS-Lib Call)

Hey folks,

I'm trying to use to stream a mp3-file using BASS. I've created some simple function definitions for the bass.dll. Playing a local MP3 file works fine, but I can't get the right definition for the StreamCreateURL command.

I get a compile error like this:

Building main
Compiling:main.bmx
Linking:main.debug
Undefined symbols:
"_BASS_StreamCreateUrl", referenced from:
_62 in main.bmx.gui.debug.macos.x86.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Build Error: Failed to link /Users/jochenheizmann/Projekte/Replay/main.debug.app/Contents/MacOS/main.debug
Process complete


The definition in the C-Header file looks like this:
#define CALLBACK
typedef uint32_t DWORD;
typedef DWORD HSTREAM;		// sample stream handle
....
#ifndef BASSDEF
  #define BASSDEF(f) WINAPI f
#endif
.....
typedef void (CALLBACK DOWNLOADPROC)(const void *buffer, DWORD length, void *user);
....
HSTREAM BASSDEF(BASS_StreamCreateURL)(const char *url, DWORD offset, DWORD flags, DOWNLOADPROC *proc, void *user);


My BlitzMax-Wrapper-Function-Definition looks like that
Extern
  Function BASS_StreamCreateUrl:Int(filename:Byte Ptr, offset:Int, flags:Int, callback:Byte Ptr, user:Int)


What I am doing wrong???

P.S.: I also tried Brucys Bass.Mod but the streaming functions are not yet implmented :(