win7 64位+vs2008下调试Fluids v2.0(SPH)程序调试过程记录

环境:win7 64+vs2008  Fluidv2.0程序调试

 

fluid_v2.0原地址:http://www.rchoetzlein.com/eng/graphics/fluids.htm

 

第一个错误

1>------ Build started: Project: fluids, Configuration: Debug Win32 ------

1>Compiling...

1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release

1>image.cpp

1>c:/users/mac/desktop/fluids_v2/common/common_defs.h(20) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

1>Build log was saved at "file://c:/Users/mac/Desktop/fluids_v2/Debug/BuildLog.htm"

1>fluids - 1 error(s), 1 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

解决办法:vs2008 Tools——Options——Projects and Solutions——VC++ Directories——Show directories for:下拉选Include files

添加新路径,将windows sdkinclude目录加进去就ok

 

 

 

 

第二个错误:GL/gl.h

解决办法:vc6.0GL文件夹拷到vc下即可

 

  

第三个错误:

1>------ Build started: Project: fluids, Configuration: Debug Win32 ------

1>Compiling...

1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release

1>image.cpp

1>c:/users/mac/desktop/fluids_v2/common/mtime.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss

1>c:/users/mac/desktop/fluids_v2/common/image.cpp(13) : fatal error C1083: Cannot open include file: 'jpeglib.h': No such file or directory

1>Build log was saved at "file://c:/Users/mac/Desktop/fluids_v2/Debug/BuildLog.htm"

1>fluids - 1 error(s), 2 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

解决办法:

http://www.ijg.org/

下载jpegsr8c.zip 解压到vcinclude下建立一个jpeg目录放到里面,代码改成#include”jpeg/jpeglib.h”

 

错误:无jconfig.h

解决办法:将jconfig.vcvs打开新建一个jconfig.h文件并拷贝里面的文本即可

 

错误:PRJ0003: error spawning 'rc.exe'

解决办法:打开vs2008安装盘,更新加上“x64编译器与工具”

 

 

 

错误:无法打开jpegd.lib

解决办法:到网上下载了一个jpegd.lib拷到vclib目录下

 

 

错误:无法打开LIBCD.lib

解决办法:到vc6.0盘里面把vcliblibcd.lib拷过去就完了

 

 

至此,搞定!!

截图留念:

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值