游戏开发论坛

 找回密码
 立即注册
搜索
查看: 2267|回复: 1

Compile GPU Gems Ch17 Sample Error

[复制链接]

414

主题

611

帖子

621

积分

高级会员

Rank: 4

积分
621
发表于 2007-12-28 02:07:00 | 显示全部楼层 |阅读模式
Compile GPU Gems Ch17 Sample Error

I unzip the HLSL_SoftEdgedShadows.zip and compile the solution in it.
But it appears some errors as below:
Could somebody tell me how to solve it? (I use VC++2005)

1>HLSL_SoftShadowsApp.obj : error LNK2019: unresolved external symbol "public: long __thiscall CDXUTStatic::SetText(wchar_t const *)" (?SetText@CDXUTStatic@@QAEJPB_W@Z) referenced in function "void __stdcall ModifyDeviceSettings(struct DXUTDeviceSettings *,struct _D3DCAPS9 const *)" (?ModifyDeviceSettings@@YGXPAUDXUTDeviceSettings@@PBU_D3DCAPS9@@@Z)
1>HLSL_SoftShadowsApp.obj : error LNK2019: unresolved external symbol "wchar_t const * __cdecl DXUTGetDeviceStats(void)" (?DXUTGetDeviceStats@@YAPB_WXZ) referenced in function "void __cdecl RenderText(void)" (?RenderText@@YAXXZ)
1>HLSL_SoftShadowsApp.obj : error LNK2019: unresolved external symbol "public: long __thiscall CDXUTTextHelper:rawTextLine(wchar_t const *)" (?DrawTextLine@CDXUTTextHelper@@QAEJPB_W@Z) referenced in function "void __cdecl RenderText(void)" (?RenderText@@YAXXZ)
1>HLSL_SoftShadowsApp.obj : error LNK2019: unresolved external symbol "wchar_t const * __cdecl DXUTGetFrameStats(void)" (?DXUTGetFrameStats@@YAPB_WXZ) referenced in function "void __cdecl RenderText(void)" (?RenderText@@YAXXZ)
1>HLSL_SoftShadowsApp.obj : error LNK2019: unresolved external symbol "public: long __thiscall CDXUTDialog::AddStatic(int,wchar_t const *,int,int,int,int,bool,class CDXUTStatic * *)" (?AddStatic@CDXUTDialog@@QAEJHPB_WHHHH_NPAPAVCDXUTStatic@@@Z) referenced in function "void __cdecl InitApp(void)" (?InitApp@@YAXXZ)
1>HLSL_SoftShadowsApp.obj : error LNK2019: unresolved external symbol "public: long __thiscall CDXUTComboBox::AddItem(wchar_t const *,void *)" (?AddItem@CDXUTComboBox@@QAEJPB_WPAX@Z) referenced in function "void __cdecl InitApp(void)" (?InitApp@@YAXXZ)
1>HLSL_SoftShadowsApp.obj : error LNK2019: unresolved external symbol "public: long __thiscall CDXUTDialog::AddButton(int,wchar_t const *,int,int,int,int,unsigned int,bool,class CDXUTButton * *)" (?AddButton@CDXUTDialog@@QAEJHPB_WHHHHI_NPAPAVCDXUTButton@@@Z) referenced in function "void __cdecl InitApp(void)" (?InitApp@@YAXXZ)
1>HLSL_SoftShadowsApp.obj : error LNK2019: unresolved external symbol "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z) referenced in function _WinMain@16

0

主题

2

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2008-2-4 10:58:00 | 显示全部楼层

Re:Compile GPU Gems Ch17 Sample Error

顶一下,我在调试nvidia sdk 的例子时,也出现这样的问题。
正在链接...
Water.obj : error LNK2019: 无法解析的外部符号 "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z),该符号在函数 _WinMain@16 中被引用
Water.obj : error LNK2019: 无法解析的外部符号 "public: long __thiscall CDXUTDialog::AddCheckBox(int,wchar_t const *,int,int,int,int,bool,unsigned int,bool,class CDXUTCheckBox * *)" (?AddCheckBox@CDXUTDialog@@QAEJHPB_WHHHH_NI1PAPAVCDXUTCheckBox@@@Z),该符号在函数 "protected: void __thiscall Water::InitGUI(void)" (?InitGUI@Water@@IAEXXZ) 中被引用
Water.obj : error LNK2019: 无法解析的外部符号 "public: long __thiscall CDXUTComboBox::AddItem(wchar_t const *,void *)" (?AddItem@CDXUTComboBox@@QAEJPB_WPAX@Z),该符号在函数 "protected: void __thiscall Water::InitGUI(void)" (?InitGUI@Water@@IAEXXZ) 中被引用
Water.obj : error LNK2019: 无法解析的外部符号 "public: long __thiscall CDXUTDialog::AddStatic(int,wchar_t const *,int,int,int,int,bool,class CDXUTStatic * *)" (?AddStatic@CDXUTDialog@@QAEJHPB_WHHHH_NPAPAVCDXUTStatic@@@Z),该符号在函数 "protected: void __thiscall Water::InitGUI(void)" (?InitGUI@Water@@IAEXXZ) 中被引用
Water.obj : error LNK2019: 无法解析的外部符号 "public: long __thiscall CDXUTDialog::AddButton(int,wchar_t const *,int,int,int,int,unsigned int,bool,class CDXUTButton * *)" (?AddButton@CDXUTDialog@@QAEJHPB_WHHHHI_NPAPAVCDXUTButton@@@Z),该符号在函数 "protected: void __thiscall Water::InitGUI(void)" (?InitGUI@Water@@IAEXXZ) 中被引用
Water.obj : error LNK2019: 无法解析的外部符号 "wchar_t const * __cdecl DXUTGetDeviceStats(void)" (?DXUTGetDeviceStats@@YAPB_WXZ),该符号在函数 "protected: void __thiscall Water::RenderInformation(void)" (?RenderInformation@Water@@IAEXXZ) 中被引用
Water.obj : error LNK2019: 无法解析的外部符号 "wchar_t const * __cdecl DXUTGetFrameStats(void)" (?DXUTGetFrameStats@@YAPB_WXZ),该符号在函数 "protected: void __thiscall Water::RenderInformation(void)" (?RenderInformation@Water@@IAEXXZ) 中被引用
Water.obj : error LNK2019: 无法解析的外部符号 "long __stdcall DXUTTrace(char const *,unsigned long,long,wchar_t const *,bool)" (?DXUTTrace@@YGJPBDKJPB_W_N@Z),该符号在函数 "protected: long __thiscall Water::OnCreateDevice(struct IDirect3DDevice9 *,struct _D3DSURFACE_DESC const *)" (?OnCreateDevice@Water@@IAEJPAUIDirect3DDevice9@@PBU_D3DSURFACE_DESC@@@Z) 中被引用
../../bin/debug/VertexTextureFetchWater.exe : fatal error LNK1120: 8 个无法解析的外部命令
那位大侠,帮忙解决一下。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-12-19 23:39

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表