`
lineageII
  • 浏览: 80380 次
  • 来自: ...
社区版块
存档分类
最新评论

PWNtcha-makefont

阅读更多

PWNtcha

http://caca.zoy.org/wiki/PWNtcha

 

用VC6 编译makefont时遇到的问题。

1.

-------------------Configuration: makefont - Win32 Debug--------------------
Linking...
makefont.obj : error LNK2001: unresolved external symbol _SDL_FreeSurface
makefont.obj : error LNK2001: unresolved external symbol _SDL_SaveBMP_RW
makefont.obj : error LNK2001: unresolved external symbol _SDL_RWFromFile
makefont.obj : error LNK2001: unresolved external symbol _TTF_CloseFont
makefont.obj : error LNK2001: unresolved external symbol _TTF_RenderUTF8_Shaded
makefont.obj : error LNK2001: unresolved external symbol _TTF_SetFontStyle
makefont.obj : error LNK2001: unresolved external symbol _TTF_Quit
makefont.obj : error LNK2001: unresolved external symbol _SDL_GetError
makefont.obj : error LNK2001: unresolved external symbol _TTF_OpenFont
makefont.obj : error LNK2001: unresolved external symbol _TTF_Init
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/makefont.exe : fatal error LNK1120: 11 unresolved externals
Error executing link.exe.

makefont.exe - 12 error(s), 0 warning(s)

 

参考

http://www.opencv.org.cn/index.php/VC6%E4%B8%8B%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE#.E5.AE.89.E8.A3.85Visual_C.2B.2B_6.0

 

http://blog.chinaunix.net/u/15586/showart_205879.html

 

快捷键 alt+F7

1.在VC工具目录下面找到选项,设置其include和lib目录为其你所下载的相关目录

2.在工程的设置中,找到link,在对象/库模块中添加sdl.lib,sdlmain.lib,sdl_ttf.lib

3.在工程的设置中,找到c/c++中,设置Use run_time library为multithread dll

4.还有一点非常重要的是:在建立工程的时候,一般建立基于win32或win控制台项目时,最后设置为空项目,然后自己添加源文件.不要使用mfc等

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics