[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] GSoC 2017
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] GSoC 2017 |
Date: |
Sun, 26 Mar 2017 10:14:57 +0200 (CEST) |
> gcc first.c -o first.o -I/usr/local/include/freetype2 -lm
> /tmp/ccJ2R6G5.o: In function `main':
> first.c:(.text+0x26f): undefined reference to `FT_Init_FreeType'
> first.c:(.text+0x28e): undefined reference to `FT_New_Face'
> first.c:(.text+0x2b2): undefined reference to `FT_Set_Char_Size'
> first.c:(.text+0x3d0): undefined reference to `FT_Set_Transform'
> first.c:(.text+0x3f8): undefined reference to `FT_Load_Char'
> first.c:(.text+0x47f): undefined reference to `FT_Done_Face'
> first.c:(.text+0x48b): undefined reference to `FT_Done_FreeType'
> collect2: error: ld returned 1 exit status
>
> When I do compilation of the Example given in the site after
> installing the library, I am getting these errors.
> What to do ?
Uh, oh, you have to link with the freetype library! Add `-lfreetype'.
Werner