Thanks Gilles,
I am truly grateful for your patience.

The kernel headers as well as the -l (that I overlooked) is now taken away.
However, I guess I still am missing a library path as I now end up with three 
undefined references.

Best regards
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 -o mycc rtdm_dht11-app.o  
-Wl,@//usr/xenomai/lib/posix.wrappers -L//usr/xenomai/lib -lpthread_rt 
-lxenomai -lpthread -lrt
rtdm_dht11-app.o: In function `main':
/home/debian/rtdm_dht11-app/rtdm_dht11-app.c:75: undefined reference to 
`rt_task_shadow'
/home/debian/rtdm_dht11-app/rtdm_dht11-app.c:84: undefined reference to 
`rt_dev_open'
/home/debian/rtdm_dht11-app/rtdm_dht11-app.c:94: undefined reference to 
`rt_dev_close'
collect2: ld returned 1 exit status
make: *** [mycc] Error 1

-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]] 
Sent: 3. november 2014 18:14
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 05:11:18PM +0000, Terje Frøysa wrote
> 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 ?

No, as I already told you two mails ago -l$(XENO_POSIX_LIBS) is wrong. It 
should be only $(XENO_POSIX_LIBS) (note by the way that in the same mail, I 
also already told you to remove the include directives for kernel headers).

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

Reply via email to