请教,用opengl做动画,编译出现如下问题 ,我已按要求把glut相关文件复制到相关位置,不知道怎么办,急请回复,感谢
Compiling...
ffView.cpp
c:\program files\microsoft visual studio\myprojects\gg\ffview.cpp(769) : warning C4551: function call missing argument list
Linking...
ff.obj : error LNK2001: unresolved external symbol "public: static struct CRuntimeClass const CMainFrame::classCMainFrame" (?classCMainFrame@CMainFrame@@2UCRuntimeClass@@B)
ffView.obj : error LNK2001: unresolved external symbol _auxSolidSphere@8
ffView.obj : error LNK2001: unresolved external symbol _auxSolidBox@24
ffView.obj : error LNK2001: unresolved external symbol _auxSolidCylinder@16
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/ff.exe : fatal error LNK1120: 7 unresolved externals
执行 link.exe 时出错.ff.exe - 1 error(s), 0 warning(s)

解决方案 »

  1.   

    增加opengl的lib 将运行库改为多线程的。
      

  2.   

    ffView.obj : error LNK2001: unresolved external symbol _auxSolidSphere@8 
    ffView.obj : error LNK2001: unresolved external symbol _auxSolidBox@24   
    这个错说明要link glaux.lib.
    libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main 
    把程序设置改成控制台的
      

  3.   

    project->setting->linking->code generation  using run time lib 设置成multithread 
      

  4.   

    引用lib文件:格式:#include "路径...lib"