Re: changing font, color, size, etc. in a GtkEntry
- From: Eric Wajnberg <eric wajnberg sophia inra fr>
- To: gtk-app-devel-list gnome org
- Subject: Re: changing font, color, size, etc. in a GtkEntry
- Date: Thu, 07 Nov 2013 11:48:25 +0100
Thanks Michael for your answer.
The compilation is ok. No error message. This is the linker that
reports, e.g.:
undefined reference to `pango_font_description_from_string'
The instruction I use to compile is (which is launched by CodeBlocks):
mingw32-g++.exe -L"C:\Program Files (x86)\CodeBlocks\gtk\lib" -o
bin\Release\entry2.exe obj\Release\main.o -s -lgtk-win32-2.0
-lgobject-2.0 -lglib-2.0 -mwindows
So, all needed libraries are here, I think.
Of course, my code starts with:
#include <pango/pango.h>
So, there are apparently - in my view - no header or library missing.
In the meantime, I tried to do this on another computer at work. I got
the same message. No way to have these pango functions recognized.
Is there something obvious I am missing?
Any help on this is welcomed!
Cheers, Eric.
Michael Cronenworth wrote, On 06/11/2013 15:22,
Eric Wajnberg wrote:
However, as I've mentioned in my original post, functions like
pango_font_description_from_string, etc. are not recognized in my coding
environment (while I can define pointer to things like
PangoFontDescription
without problem).
This looks weird to me. Is there some specific libraries or headers I
have to
load or declare before? Or are these fonctions available on GTK 3
only, and - if
yes - what can I do, then?
(I am coding on Windows with CodeBlocks 12.11 and GTK 2.24.0).
Pango is not tied to a GTK version. You can use GTK 2 for this.
What do you mean "not recognized"? The compiler reports an undefined
function? The linker reports an undefined function? The function has
been around for a very long time (at least since Pango 1.10) so this
is not something new. It appears your development environment is
missing headers and/or libraries.
Something to consider: I cross-compile Windows binaries under Fedora
using MinGW packages. You may find this a better alternative as
packages will be up-to-date (GTK 2.24.22), packaged properly, and find
some support from the packagers and upstream in case something like
this goes wrong.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Eric Wajnberg
Associated Professor at the
University of Montreal (Quebec, Canada)
I.N.R.A.
400 Route des Chappes, BP 167,
06903 Sophia Antipolis Cedex, France
Tel: (33-0) 4.92.38.64.47
Fax: (33-0) 4.92.38.65.57
e-mail: wajnberg sophia inra fr
Web page: http://www.sophia.inra.fr/perso/wajnberg/
Editor-in-Chief of BioControl, Published by Springer.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- References:
- changing font, color, size, etc. in a GtkEntry
- Re: changing font, color, size, etc. in a GtkEntry
- From: Michael Cronenworth
- Re: changing font, color, size, etc. in a GtkEntry
- Re: changing font, color, size, etc. in a GtkEntry
- From: Michael Cronenworth
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]