freetype
[Top][All Lists]
Advanced

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

[ft] Why it dont recognize FT_Init_FreeType?


From: a124
Subject: [ft] Why it dont recognize FT_Init_FreeType?
Date: Tue, 23 Feb 2010 08:52:25 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414

Hello all.
Trying to see how freetype works starting with a very simple console project with codeblocks, in XP i have error(freetype dir and ft2build.h put in C:\Program Files\CodeBlocks\MinGW\include\ and libfreetype.a in C:\Program Files\CodeBlocks\MinGW\lib\)

obj\Debug\main.o||In function `main':|
C:\TMP\23\main.cpp|12|undefined reference to `_FT_Init_FreeType'|
||=== Build finished: 1 errors, 0 warnings ===|

Why it dont recognize FT_Init_FreeType? Need somthing?
Thank's
Jim




The code.....
#include <iostream>
#include <ft2build.h>
#include FT_FREETYPE_H

using namespace std;

int main()
{
   FT_Library library; /* handle to library */
   FT_Face face; /* handle to face object */
   FT_Error  error;
   error = FT_Init_FreeType(&library);
   if ( error )
   {
       cout<<"an error occurred during library initialization ...";
       return 0;
   }
}

============================================
Compilling and making freetype library.
-------------------------------
Open codeblocks and import from C:\TMP\freetype-2.3.12\builds\win32\visualce\ for example the freetype.dsw workspase, very easyly compille freetype.









reply via email to

[Prev in Thread] Current Thread [Next in Thread]