c

找不到.lib文件MSVC++ 2008

我正在用msvc ++ 2008编译我的项目。我在项目属性中添加了一个引用路径到./lib,它是包含文件freeglut.lib的目录。我一直非常小心地组织一切,但仍然msvc ++没有找到文件:(。我检查了构建日志,看到构建命令行中没有它说的./lib。这可能是问题吗?我已经包含了构建日志,希望有人可以帮助解决这个问题。提前感谢

`Build Log
Rebuild started: Project: triangle_wars, Configuration: Debug|Win32
Command Lines
Creating temporary file "c:\Users\Tom\code\projects\triangle_wars\triangle_wars\triangle_wars\Debug\RSP0000087603200.rsp" with contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Fo"Debug\" /Fd"Debug\vc90.pdb" /W3 /c /ZI /TC .\main.c
]
Creating command line "cl.exe @c:\Users\Tom\code\projects\triangle_wars\triangle_wars\triangle_wars\Debug\RSP0000087603200.rsp /nologo /errorReport:prompt"
Creating temporary file "c:\Users\Tom\code\projects\triangle_wars\triangle_wars\triangle_wars\Debug\TMP0000097603200.tmp" with contents
[
1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID/24/RT_MANIFEST */ ".\Debug\triangle_wars.exe.embed.manifest"
]
Creating command line "rc.exe /fo".\Debug\triangle_wars.exe.embed.manifest.res" c:\Users\Tom\code\projects\triangle_wars\triangle_wars\triangle_wars\Debug\TMP0000097603200.tmp"
Creating temporary file "c:\Users\Tom\code\projects\triangle_wars\triangle_wars\triangle_wars\Debug\RSP00000A7603200.rsp" with contents
[
/OUT:"C:\Users\Tom\code\projects\triangle_wars\triangle_wars\Debug\triangle_wars.exe" /INCREMENTAL /MANIFEST /MANIFESTFILE:"Debug\triangle_wars.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\Users\Tom\code\projects\triangle_wars\triangle_wars\Debug\triangle_wars.pdb" /SUBSYSTEM:CONSOLE /DYNAMICBASE /NXCOMPAT /MACHINE:X86 freeglut.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
".\Debug\main.obj"
".\Debug\triangle_wars.exe.embed.manifest.res"
]
Creating command line "link.exe @c:\Users\Tom\code\projects\triangle_wars\triangle_wars\triangle_wars\Debug\RSP00000A7603200.rsp /NOLOGO /ERRORREPORT:PROMPT"
Output Window
Compiling...
main.c
Compiling manifest to resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Linking...
LINK : fatal error LNK1104: cannot open file 'freeglut.lib'
Results
Build log was saved at "file://c:\Users\Tom\code\projects\triangle_wars\triangle_wars\triangle_wars\Debug\BuildLog.htm"
triangle_wars - 1 error(s), 0 warning(s)
`
已邀请:

funde

赞同来自:

通过右键单击解决方案资源管理器中的项目名称并选择add-> existing item,我可以将freeglut.lib添加到项目的“命名空间”(即兴项)...我认为它应该能够libs所在的路径,就像我在linux下所做的那样......任何对我这个工具有更多经验的人,我都非常感谢小费。在那之前,至少我可以继续编写代码

要回复问题请先登录注册