Hello again,

I keep asking questions but hopefully I get it this time.

So I am trying to turn hid_desc.bas to a lib or .o file and then use that as a usb library for every project instead of including all .asm files.

So I edited assembly code in hid_desc.bas and used global directives for USBDeviceInit,USBDeviceTask,and PutUSB in usb_mem.asm.I then used MPASMWIN tool to generate hid_desc.O from hid_desc.asm and then generate a .lib file using MPLib. No I want use the lgenerated file in my main Basic code but I don't know how to get it working.

I am using USBInit,USBSERVICE,and USBOut for send out data.But I don't know how to declare them as external directive.

Would appreciate any help.