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.







_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to