|

楼主 |
发表于 2004-8-23 18:16:00
|
显示全部楼层
Re: FreeType2字库问题
樱: 你可以去看看 FreeType2 .它就是把你输入的字符转换成位图.
这个里面有个演示
http://mbox.troja.mff.cuni.cz/~peak/ftdemo/index.cgi
你如果有时间帮我编译一下它,那就太谢谢了.
下面是演示代码:
http://freetype.sourceforge.net/freetype2/docs/tutorial/example1.c
解压出来之后
在 \builds\win32\visualc 目录里有vc 的工程文件.用它可以编译出:
freetype219.lib - release build; single threaded
freetype219_D.lib - debug build; single threaded
freetype219MT.lib - release build; multi-threaded
freetype219MT_D.lib - debug build; multi-threaded
在 objs 目录中产生,这些文件.
问题是在我测试 example1.c 文件的时候 总是出现这些错误:
work001 fatal error LNK1169: 找到一个或多个多重定义的符号
work001 error LNK2005: _strncpy 已经在 LIBCD.lib(strncpy.obj) 中定义
work001 error LNK2005: _atol 已经在 LIBCD.lib(atox.obj) 中定义
work001 error LNK2005: _memmove 已经在 LIBCD.lib(memmove.obj) 中定义
work001 error LNK2005: _sprintf 已经在 LIBCD.lib(sprintf.obj) 中定义
work001 error LNK2005: _malloc 已经在 LIBCD.lib(dbgheap.obj) 中定义
work001 error LNK2005: _realloc 已经在 LIBCD.lib(dbgheap.obj) 中定义
work001 error LNK2005: _free 已经在 LIBCD.lib(dbgheap.obj) 中定义
work001 error LNK2005: _fclose 已经在 LIBCD.lib(fclose.obj) 中定义
work001 warning LNK4098: 默认库“MSVCRT”与其他库的使用冲突;使用 /NODEFAULTLIB:library
我不知道是哪的问题.
|
|