Re: Re: was utf8 deprecated or removed from glib?



On Thu, Jan 24, 2013 at 4:49 PM, Lex Trotman <elextr gmail com> wrote:
> They are all still there and working.

I've just done a fresh install of Linux Mint and all the tools so something is not quite right, but I'm completely baffled ATM :(


> Whats the whole compile and link command(s).
#!/bin/bash
CFLAGS="-std=c++0x -Wall -pedantic -g `pkg-config --cflags --libs gtk+-2.0 gmodule-2.0 gtkmm-2.4 glib-2.0`"
echo "building static library objects"
g++ $CFLAGS -c *.cc
echo "making static link library " libcs-less.a
ar -rcs libcs-less.a *.o
echo "making test program"
g++ $CFLAGS check.cpp libcs-less.a
echo "running tests a.out"

Although it uses glib, gtk+ and gtkmm functions extensively only the utf8 bits are missing:
building static library objects
making static link library  libcs-less.a
making test program
libcs-less.a(cs_unistring.o): In function `cs::cs_unistring::append_utf8(char const*)':
/media/sf_Downloads/libcs/cs_unistring.cc:34: undefined reference to `g_utf8_get_char'
/media/sf_Downloads/libcs/cs_unistring.cc:35: undefined reference to `g_utf8_skip'
libcs-less.a(cs_unistring.o): In function `cs::cs_unistring::xfer_utf8(unsigned int, std::string&)':
/media/sf_Downloads/libcs/cs_unistring.cc:56: undefined reference to `g_unichar_to_utf8'
libcs-less.a(cs_unistring.o): In function `cs::cs_unistring::utf8_validate(char const*)':
/media/sf_Downloads/libcs/cs_unistring.cc:63: undefined reference to `g_utf8_validate'
libcs-less.a(cs_unistring.o): In function `cs::cs_unistring::utf8_get_char(char const*&)':
/media/sf_Downloads/libcs/cs_unistring.cc:67: undefined reference to `g_utf8_get_char'
/media/sf_Downloads/libcs/cs_unistring.cc:68: undefined reference to `g_utf8_skip'
collect2: error: ld returned 1 exit status
running tests a.out

Where would the library be that it should link? I wonder if mine is corrupted


>> _______________________________________________
>> gtk-list mailing list
>> gtk-list gnome org
>> https://mail.gnome.org/mailman/listinfo/gtk-list




--
~~~ PEr aRDUa ad asTrA ~~~
(Through adversity to the stars)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]