gary anderson
|
Re: Sample Ethernet driver compilation in QNX Momentics
|
gary anderson
11/25/2009 12:44 PM
post42585
|
Re: Sample Ethernet driver compilation in QNX Momentics
If the only line in the file to be compiled is
#include <io-pkt/iopkt_driver.h>
you get the same error. It looks like the io-pkt header files may not work correctly with 6.4.1.
|
|
|
Sean Boudreau(deleted)
|
Re: Sample Ethernet driver compilation in QNX Momentics
|
Sean Boudreau(deleted)
11/25/2009 12:49 PM
post42586
|
Re: Sample Ethernet driver compilation in QNX Momentics
On Tue, Nov 24, 2009 at 05:56:10PM -0500, gary anderson wrote:
> I'm getting an error when compiling the sample driver sam.c under 6.4.1.
>
> I get the error
>
> In file included from C:/QNX641/target/qnx6/usr/include/io-pkt/iopkt_driver.h:35,
> from C:/workspace/pci_network_driver/sam.c:20:
> C:/QNX641/target/qnx6/usr/include/io-pkt/sys/systm.h:237: warning: 'struct lwp' declared inside parameter list
> C:/QNX641/target/qnx6/usr/include/io-pkt/sys/systm.h:237: warning: its scope is only this definition or declaration,
which is probably not what you want
>
> In systm.h, 'struct lwp' is not defined. Its definition is inside a #ifndef __QNXNTO__ .. #endif so it is excludes
since __QNXNTO__ is defined during compilation.
>
> Is the definition of 'struct lwp' supposed to be found somewhere other than systm.h?
Can you post the full make output?
Thanks,
-seanb
|
|
|