Problem compiling example client

66 views
Skip to first unread message

david.t...@gmail.com

unread,
Nov 23, 2009, 5:27:58 AM11/23/09
to wview
HI,

Successfully compiled, installed, tested latest wview 5.7.1 release
with WS-2300 La Crosse.

Now I want to try the walarmd and the socket connection. I tried
compiling the example client and got some missing reference:

make
Building datafeedClient.o
gcc -Wall -g -O2 -D_GNU_SOURCE -D_DEBUG -I. -I/usr/local/include -c
datafeedClient.c -o datafeedClient.o
Linking datafeedClient...
/usr/local/lib/librad.so: undefined reference to `sqlite3_column_text'
/usr/local/lib/librad.so: undefined reference to `sqlite3_close'
/usr/local/lib/librad.so: undefined reference to
`sqlite3_column_bytes'
/usr/local/lib/librad.so: undefined reference to
`sqlite3_column_int64'
/usr/local/lib/librad.so: undefined reference to `sqlite3_finalize'
/usr/local/lib/librad.so: undefined reference to `sqlite3_column_type'
/usr/local/lib/librad.so: undefined reference to `sqlite3_errcode'
/usr/local/lib/librad.so: undefined reference to `sqlite3_step'
/usr/local/lib/librad.so: undefined reference to
`sqlite3_column_count'
/usr/local/lib/librad.so: undefined reference to `sqlite3_errmsg'
/usr/local/lib/librad.so: undefined reference to `sqlite3_column_name'
/usr/local/lib/librad.so: undefined reference to `sqlite3_prepare'
/usr/local/lib/librad.so: undefined reference to
`sqlite3_column_double'
/usr/local/lib/librad.so: undefined reference to `sqlite3_open'
collect2: ld returned 1 exit status
make: *** [datafeedClient] Error 1

Any ideas?

Thanks for help in advance,

David.

Graham Eddy

unread,
Nov 23, 2009, 5:30:37 AM11/23/09
to wv...@googlegroups.com
umm, update the makefile to link in sqlite3...?
(i did on 5.6.0; it works fine)
------------------------------------------------------------------------
*Graham Eddy*

david.t...@gmail.com

unread,
Nov 26, 2009, 3:33:49 AM11/26/09
to wview
Many thanks. It turned out to be as simple as ensuring the libraries
were available when it is run:

export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib:/usr/lib

On Nov 23, 11:30 pm, Graham Eddy <graham.e...@gmail.com> wrote:
> umm, update the makefile to link in sqlite3...?
> (i did on 5.6.0; it works fine)
> ------------------------------------------------------------------------
> *Graham Eddy*
>

Mark S. Teel

unread,
Dec 15, 2009, 5:25:54 PM12/15/09
to wv...@googlegroups.com
True that.

I think I fixed this when I first saw this email.

Mark
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "wview" group.
> To post to this group, send email to wv...@googlegroups.com
> To unsubscribe from this group, send email to wview+un...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/wview?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>
Reply all
Reply to author
Forward
0 new messages