Compiling Modules

BlitzMax Forums/BlitzMax Programming/Compiling Modules

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I have a problem to use my LIBUSB.mod in BlitzMax1.26.
This is the BlitzMax Module.
SuperStrict

Module sch.libusb

ModuleInfo "Version:	 	1.00"
ModuleInfo "Modserver:	Not yet implemented"
ModuleInfo "Author:	 	Sven Schwiecker (MacOS part)"
ModuleInfo "License:	 	Public Domain"
ModuleInfo "Contact:	 	Sven.Schwiecker@..."
ModuleInfo "Homepage:	www.SvenSchwiecker.de"

?MacOS
'Import "include/*.h"
Import "usbmax.c"
Import "darwin.c"
Import "usb.c"
Import "descriptors.c"
Import "error.c"
'Import "usbpp.cpp"

Extern "C"

Function usb_init()
Function usb_set_debug:Int(level:Int)

Function usb_find_busses:Int()
Function usb_find_devices:Int()

Function get_usb_busses:Int()
Function get_usb_device:Int()

Function print_device:Int()
Function print_configuration:Int()
Function showmain:Int()
EndExtern


This is my sample BlitzMax program:
'usbtest



x=usb_find_busses()
Print "USB Busses found:   "+x
x=usb_find_devices()
Print "USB Devices found: "+x



Can someone tell me that is wrong under BlitzMax 1.26 it works fine.