Henning Nielsen Lund wrote:
Rene W. Olsen wrote:
Hello
I have BIG trouble with my library for libusb and I cant find any
error in the source code :(
So if there is a library guru in here thats want to help me track
down my error(s)..
I can compile the barebone library with no problem but I cant open
the library without the
system freezing, and the openlib program never returns.
I looks like it hangs in the library init function.
I have striped all the function to track down the nasty error
HELP PLEASE
The source files can be found here:
http://www.rwo.dk/libusb.lha
I am no guru, but one little thing... #include <proto/Libusb.h> in
loadlib.c should have been #include <proto/libusb.h>. I will try to
test it later, to see if I get some errors too (have tried to compile
the library and loadlib with newlib instead, to see if it can be a
little clib2 thing).
I did just try the one that I had recompiled using newlib (cross
compiled)... it crashed :-(
But as I have not tried to use newlib before with the crosscompiler, did
I try to compile it nativly, and it worked :-D
LibusbBase 0283fc38
ILibusb 02857550
OK
TheEnd
So at least loadlib is able to open libusb.library :-D
And remember if it is compiled using newlib.library, can the programs
using the library also only use newlib.library as the standard-C library
(the same goes for clib2).
Kind regards
Rene W. Olsen
_______________________________________________
Openoffice-os4 mailing list
Openoffice-os4(a)samfundet.no
https://lists.samfundet.no/mailman/listinfo/openoffice-os4
--
best regards,
hnl_dk - Henning Nielsen Lund [Denmark]