Thanks Gilles,

Really helpful advice!
Now I only have to find out why the linker doesn't find the posix.wrappers
It is certainly there.. can it be due to the // in the: 
-l-Wl,@//usr/xenomai/lib/posix.wrappers ?

Terje

debian@beaglebone:~/rtdm_dht11-app$ make
gcc -Wall -g -I//usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__ 
-I//usr/xenomai/include/posix -c rtdm_dht11-app.c  -o r                     
tdm_dht11-app.o
rtdm_dht11-app.c: In function 'main':
rtdm_dht11-app.c:59:10: warning: unused variable 'size' [-Wunused-variable]
rtdm_dht11-app.c:58:7: warning: unused variable 'buf' [-Wunused-variable]
gcc -Wall -g -I//usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__ 
-I//usr/xenomai/include/posix -o mycc rtdm_dht11-app.o                       
-l-Wl,@//usr/xenomai/lib/posix.wrappers -L//usr/xenomai/lib -lpthread_rt 
-lxenomai -lpthread -lrt
/usr/bin/ld: cannot find -l-Wl,@//usr/xenomai/lib/posix.wrappers
collect2: ld returned 1 exit status
make: *** [mycc] Error 1

debian@beaglebone:~/rtdm_dht11-app$ cd //usr/xenomai/lib
debian@beaglebone://usr/xenomai/lib$ ls posi*
posix.wrappers

-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]] 
Sent: 3. november 2014 18:02
To: Terje Frøysa
Cc: [email protected]
Subject: Re: [Xenomai] Xenoma 2.6.4 missing posix/xeno_config.h ?

On Mon, Nov 03, 2014 at 04:58:52PM +0000, Terje Frøysa wrote:
> Thanks!
> 
> Here is the complete Makefile:

Please remove the include directive for kernel-space headers. I think it should 
fix the issue.

-- 
                                            Gilles.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to