beginner qnx ddk problem

Hi all,
i am using momentics and qnx neutrino (education program). I have a problem
with the driver development kit:
I want to modify and make the usb class driver and I always get errors like
the following:
“undefined reference to `usbd_abort_pipe’”

I get similar errors for all used usbd functions.
Is there a special library i have to include? I use the include file
sys/usbdi.h .

Thank you

You should link against the library usbdi.
cheers, peter
oparz wrote:

Hi all,
i am using momentics and qnx neutrino (education program). I have a problem
with the driver development kit:
I want to modify and make the usb class driver and I always get errors like
the following:
“undefined reference to `usbd_abort_pipe’”

I get similar errors for all used usbd functions.
Is there a special library i have to include? I use the include file
sys/usbdi.h .

Thank you

\

Thank you,
i have the 2 static libs “libudi.a” and “libusbdi.a” from the ddk copied in
my working dir, but no success, i’ve got the same error messages.

“Peter Weber” <pw@dolphin.de> schrieb im Newsbeitrag
news:c88oek$r0a$1@inn.qnx.com

You should link against the library usbdi.
cheers, peter
oparz wrote:
Hi all,
i am using momentics and qnx neutrino (education program). I have a
problem
with the driver development kit:
I want to modify and make the usb class driver and I always get errors
like
the following:
“undefined reference to `usbd_abort_pipe’”

I get similar errors for all used usbd functions.
Is there a special library i have to include? I use the include file
sys/usbdi.h .

Thank you

\

You will need to specifically mention those libs. Use -l libname on the
cc command line. See ‘use cc’.


oparz <oparz@compuserve.de> wrote:
o > Thank you,
o > i have the 2 static libs “libudi.a” and “libusbdi.a” from the ddk copied in
o > my working dir, but no success, i’ve got the same error messages.


o > “Peter Weber” <pw@dolphin.de> schrieb im Newsbeitrag
o > news:c88oek$r0a$1@inn.qnx.com

You should link against the library usbdi.

I am a lucky user of the Momentics IDE, and I have checked the library
paths. Maybe the problem depends on my target, (a ppc5200). Shortly I tried
to use the tan function out of the math lib, and i’ve got the same error
message…

“Bill Caroselli” <qtps@earthlink.net> schrieb im Newsbeitrag
news:c8ajd0$9p5$4@inn.qnx.com

You will need to specifically mention those libs. Use -l libname on the
cc command line. See ‘use cc’.


oparz <> oparz@compuserve.de> > wrote:
o > Thank you,
o > i have the 2 static libs “libudi.a” and “libusbdi.a” from the ddk
copied in
o > my working dir, but no success, i’ve got the same error messages.


o > “Peter Weber” <> pw@dolphin.de> > schrieb im Newsbeitrag
o > news:c88oek$r0a$> 1@inn.qnx.com> …
You should link against the library usbdi.

oparz <oparz@compuserve.de> wrote:

I am a lucky user of the Momentics IDE, and I have checked the library
paths. Maybe the problem depends on my target, (a ppc5200). Shortly I tried
to use the tan function out of the math lib, and i’ve got the same error
message…

Did you compile with:

qcc blah.c -lm -o blah

-David

Please follow-up to newsgroup, rather than personal email.
David Gibbs
QNX Training Services
dagibbs@qnx.com

oparz <oparz@compuserve.de> wrote:
o > I am a lucky user of the Momentics IDE, and I have checked the library
o > paths. Maybe the problem depends on my target, (a ppc5200). Shortly I tried
o > to use the tan function out of the math lib, and i’ve got the same error
o > message…

I’m not using the IDE so I’m a little fuzzy on this.

At link time you can specify library paths “-L” and libraries “-l”.
If you only specifying library paths your only specifying half of what
you need.

Thanks to all,
I have solved the problem. The missing -lm was my fault…

“Bill Caroselli” <qtps@earthlink.net> schrieb im Newsbeitrag
news:c8idvm$dpi$3@inn.qnx.com

oparz <> oparz@compuserve.de> > wrote:
o > I am a lucky user of the Momentics IDE, and I have checked the library
o > paths. Maybe the problem depends on my target, (a ppc5200). Shortly I
tried
o > to use the tan function out of the math lib, and i’ve got the same
error
o > message…

I’m not using the IDE so I’m a little fuzzy on this.

At link time you can specify library paths “-L” and libraries “-l”.
If you only specifying library paths your only specifying half of what
you need.