编译通过,在制作成EXE时出现如下错误,少了那个LIB?请高手指点。多谢。
--------------------Configuration: Assignment4Template - Win32 Debug--------------------
Linking...
Assignment4Template.obj : error LNK2001: unresolved external symbol "class Vertex __cdecl Transform(float *,class Vertex &)" (?Transform@@YA?AVVertex@@PAMAAV1@@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Camera::Orthographic(void)" (?Orthographic@Camera@@QAEXXZ)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Camera::Perspective(void)" (?Perspective@Camera@@QAEXXZ)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: __thiscall Vertex::Vertex(void)" (??0Vertex@@QAE@XZ)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Camera::Pan(float,float)" (?Pan@Camera@@QAEXMM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Camera::ScaleView(float)" (?ScaleView@Camera@@QAEXM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Camera::MoveView(float)" (?MoveView@Camera@@QAEXM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Object::LocalScale(float)" (?LocalScale@Object@@QAEXM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Object::WorldRotate(float,float,float)" (?WorldRotate@Object@@QAEXMMM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Object::WorldTranslate(float,float,float)" (?WorldTranslate@Object@@QAEXMMM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Object::LocalRotate(float,float,float)" (?LocalRotate@Object@@QAEXMMM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: __thiscall Camera::Camera(void)" (??0Camera@@QAE@XZ)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Scene::Load(char *)" (?Load@Scene@@QAEXPAD@Z)
Debug/Assignment4Template.exe : fatal error LNK1120: 13 unresolved externals
Error executing link.exe.Assignment4Template.exe - 14 error(s), 0 warning(s)
--------------------Configuration: Assignment4Template - Win32 Debug--------------------
Linking...
Assignment4Template.obj : error LNK2001: unresolved external symbol "class Vertex __cdecl Transform(float *,class Vertex &)" (?Transform@@YA?AVVertex@@PAMAAV1@@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Camera::Orthographic(void)" (?Orthographic@Camera@@QAEXXZ)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Camera::Perspective(void)" (?Perspective@Camera@@QAEXXZ)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: __thiscall Vertex::Vertex(void)" (??0Vertex@@QAE@XZ)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Camera::Pan(float,float)" (?Pan@Camera@@QAEXMM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Camera::ScaleView(float)" (?ScaleView@Camera@@QAEXM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Camera::MoveView(float)" (?MoveView@Camera@@QAEXM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Object::LocalScale(float)" (?LocalScale@Object@@QAEXM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Object::WorldRotate(float,float,float)" (?WorldRotate@Object@@QAEXMMM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Object::WorldTranslate(float,float,float)" (?WorldTranslate@Object@@QAEXMMM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Object::LocalRotate(float,float,float)" (?LocalRotate@Object@@QAEXMMM@Z)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: __thiscall Camera::Camera(void)" (??0Camera@@QAE@XZ)
Assignment4Template.obj : error LNK2001: unresolved external symbol "public: void __thiscall Scene::Load(char *)" (?Load@Scene@@QAEXPAD@Z)
Debug/Assignment4Template.exe : fatal error LNK1120: 13 unresolved externals
Error executing link.exe.Assignment4Template.exe - 14 error(s), 0 warning(s)
解决方案 »
- 还是关于多线程的问题 同步
- compact framework 3.5下类似listview控件开发的设计器生成代码问题
- 菜鸟求救 谁会用 Attribute标记 ??
- 请问如果我用c#做SRPG战棋类游戏的话...
- 急,时间格式问题??
- button.Click +=new .....;注册了一个事件方法,如何判断Click上已经注册了方法?注册了几个?
- 电子邮件的格式检验!
- 不知道web控件的id和name怎么操作他们
- C#安装打包,如何在Web引导程序设置中安装文件夹URL中使用相对路径?
- C# WINIO模拟键盘求助
- C#里String赋值次数多了是否老出毛病?怎么回事
- 为什么imagelist控件无法刷新?
vc的例子例子不管是书上的还是网上的
如果他在project-setting里面包含lib文件并且又没有说明的话你即使copy也会编译不通过.最好的办法就是一次注掉一部分代码,直到找出是哪一个函数导致无法编译.
然后去网上找对应的lib文件.