编译C++源码总是出错

[复制链接]
查看11 | 回复1 | 2011-8-23 19:13:33 | 显示全部楼层 |阅读模式
源码在这下载http://www.mediafire.com/?h1nhf53b165te6o
出错提示在这--------------------Configuration: fs - Win32 Debug--------------------
Compiling...
filesystem.cpp
c:\复件 fs_dumper\filesystem.cpp(44) : error C2440: '=' : cannot convert from 'void *' to 'struct path *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
c:\复件 fs_dumper\filesystem.cpp(117) : error C2440: '=' : cannot convert from 'void *' to 'struct file *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
c:\复件 fs_dumper\filesystem.cpp(134) : warning C4018: '>' : signed/unsigned mismatch

回复

使用道具 举报

千问 | 2011-8-23 19:13:33 | 显示全部楼层
不是啥毛病!实际上这个问题很多情况下是由于路径设置的问题引起的,“CL.exe”是VC使用真正的编译器(编译程序),其路径在“VC根目录\VC98\Bin”下面,你可以到相应的路径下找到这个应用程序。因此问题可以按照以下方法解决:点击VC“TOOLS(工具)”—>“Option(选择)”—>“Directories(目录)”重新设置“Excutable Fils、Include Files、Library Files、Source Files”的路径。很多情况可能就一个盘符的不同(例如你的VC装在C,但是这些路径全部在D),改过来就OK了。...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行