从外部库调用函数时出现VS2010错误 [英] VS2010 error when calling a function from external library

查看:133
本文介绍了从外部库调用函数时出现VS2010错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Window 7 64位和Visual Studio 2010 64位.我有一个使用来自model64.lib和3Delight.lib的调用函数对Terrain.cpp进行编程.该项目是一个名为Terrain的控制台应用程序. model64.lib由c ++函数组成,我 直接用cl(64bit)构建,3Delight.lib是DNA Research的库.地形的建立是可以的.如果我做的简单(Terrain.obj是由Terrain生成的)

I' m working with Window 7 64bit and Visual Studio 2010 64 bit. I have a  program terrain.cpp with calls functions from model64.lib and 3Delight.lib. The project is a console application with name Terrain. The model64.lib consits of c++ functions, I have build with cl(64bit) directly and the 3Delight.lib is the library form DNA Research. The build of Terrain is OK. If I do a simple (Terrain.obj is generated by build of Terrain)

C:\ Pixar-Delight \ pixar \ terrain \ generate_xxx \ Terrain \ x64 \ Debug>链接/DEBUG Terrain.obj model64.lib"C:\ Program Files \ 3Delight \ lib \ 3Delight.lib"程序Terrain.exe正在运行,没有任何错误.

C:\Pixar-Delight\pixar\terrain\generate_xxx\Terrain\x64\Debug>link /DEBUG Terrain.obj model64.lib "C:\Program Files\3Delight\lib\3Delight.lib"  the program terrain.exe is runinng without any errors.

 

如果我在VS2010中调试程序,它将在model64.lib中的一个简单函数调用时崩溃.我无法进行配置,无法在VS2010上设置参数以使上面给出的简单链接命令生效.有人可以帮忙吗?

If I debug the program in VS2010 it crashes at a simple function call in model64.lib. I can not configure out, to set parameters on VS2010 to make that simple link command given above.  Can someone help?

欢呼

gre

 

 

 

 

 

推荐答案

你好,

我发现了这个错误.这是由于在3Delight.lib中调用一个函数引起的,并且该函数没有向我发送无法调试model64.lib的错误消息,因此我只看到了崩溃.

I have found the bug. It was caused by calling a function in 3Delight.lib and this function have not send an error message to me where model64.lib was not debug-able, so I have seen only a crash.

干杯

 

gre


这篇关于从外部库调用函数时出现VS2010错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆