Forum Topic - compilation errors ...: (5 Items)
   
compilation errors ...  
I am trying to build an application that uses couple of ado*** functions and I am getting the following error,

TempPlayBack.o: In function `omap35xx_playback_aquire':
TempPlayBack.c:(.text+0x6c): undefined reference to `ado_error'
TempPlayBack.c:(.text+0x80): undefined reference to `global_options'
TempPlayBack.o: In function `omap35xx_playback_trigger':
TempPlayBack.c:(.text+0xb0): undefined reference to `ado_error'
TempPlayBack.c:(.text+0x1a0): undefined reference to `ado_error'
TempPlayBack.c:(.text+0x1ac): undefined reference to `global_options'
TempPlayBack.o: In function `omap35xx_dma_interrupt':
TempPlayBack.c:(.text+0x1e4): undefined reference to `ado_error'
TempPlayBack.c:(.text+0x248): undefined reference to `ado_error'
TempPlayBack.c:(.text+0x25c): undefined reference to `ado_error'
TempPlayBack.c:(.text+0x268): undefined reference to `global_options'
TempPlayBack.o: In function `mcbsp_init':
TempPlayBack.c:(.text+0x29c): undefined reference to `ado_error'
TempPlayBack.c:(.text+0x448): undefined reference to `ado_error'
TempPlayBack.c:(.text+0x454): undefined reference to `global_options'
TempPlayBack.o: In function `omap35xx_dma_detach':
TempPlayBack.c:(.text+0x514): undefined reference to `ado_error'
TempPlayBack.o: In function `omap35xx_dma_attach':
TempPlayBack.c:(.text+0x5cc): undefined reference to `ado_error'
TempPlayBack.c:(.text+0x650): undefined reference to `ado_error'
TempPlayBack.o: In function `main':
TempPlayBack.c:(.text+0x72c): undefined reference to `ado_error'
TempPlayBack.c:(.text+0x760): undefined reference to `ado_error'
TempPlayBack.o:TempPlayBack.c:(.text+0x7d4): more undefined references to `ado_e
rror' follow
TempPlayBack.o: In function `main':
TempPlayBack.c:(.text+0x7e4): undefined reference to `ado_mutex_init_recursive_nodebug'


Compilation command :

 qcc -Vgcc_ntoarm -c -O -Wc,-Wall -DNDEBUG -EL -I. -I"C:/QNX650/target/qnx6/usr/include" -DVARIANT_le -DBUILDENV_qss 
TempPlayBack.c

Linking command :
qcc -Vgcc_ntoarmv7 -Wl,--no-keep-memory -EL -g -oTestApplication_g.exe  TempPlayBack.o -L "C:\QNX650/target/qnx6/armle-
v7/lib" -Bstatic -lm -lgcc -Bdynamic -I. -I"C:\QNX650/target/qnx6/usr/include"
Re: compilation errors ...  
On 10-12-14 08:47 AM, Girisha SG wrote:
> I am trying to build an application that uses couple of ado*** functions
> and I am getting the following error,

To use functions in a library you need to link against the library. You 
are missing -lado in your link line..

Regards,

Ryan Mansfield
Re: compilation errors ...  
Thanks for the reply ...
I have added this in the link line and tried again but I am getting the following error ...

'cannot find -lado'

where exactly it is located with in the QNX installation ?
Re: compilation errors ...  
On 10-12-14 09:07 AM, Girisha SG wrote:
> Thanks for the reply ...
> I have added this in the link line and tried again but I am getting the
> following error ...
>
> 'cannot find -lado'

Please ask in the BSP forum. This is not an issue with the toolchain.

Regards,

Ryan Mansfield
RE: compilation errors ...  
I checked with the developer, and here's what he wrote:

  ado_* functions are io-audio driver functions, so you must must be 
  loaded by io-audio to make use of them (not for use in standalone
apps).

  You can not use those functions unless your are building a DLL that is

  loaded into io-audio.

Steve Reid (stever@qnx.com)
Technical Editor
QNX Software Systems 
 

> -----Original Message-----
> From: Ryan Mansfield [mailto:community-noreply@qnx.com] 
> Sent: Tuesday, December 14, 2010 9:17 AM
> To: general-toolchain
> Subject: Re: compilation errors ...
> 
> On 10-12-14 09:07 AM, Girisha SG wrote:
> > Thanks for the reply ...
> > I have added this in the link line and tried again but I am 
> getting the
> > following error ...
> >
> > 'cannot find -lado'
> 
> Please ask in the BSP forum. This is not an issue with the toolchain.
> 
> Regards,
> 
> Ryan Mansfield
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post78605
> 
>