错误:“此应用程序启动失败,因为未找到libufun.dll”。 [英] Error: "This application failed to start because libufun.dll was not found."

查看:773
本文介绍了错误:“此应用程序启动失败,因为未找到libufun.dll”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

操作系统: Windows XP

OS: Windows XP

IDE: Visual Studio 2005

IDE: Visual Studio 2005

语言 C / C ++

Language: C/C++

编码: Unigraphics NX的CAD软件),特别是Open C中的外部自动化(但这可能不重要)

Coding for: Unigraphics NX (which is a type of CAD software), specifically an external automation in Open C (but this may not be important)

我正在为NXOpen编写一个外部程序 - 那些不熟悉它的人,意味着它运行在Windows上,而不是NX(这将是一个内部程序)。我决定评论所有有趣的东西,只是使用一些printf语句来测试它,以确保所有内容都被正确链接。

I'm trying to code an external program for NXOpen - which, for those unfamiliar with it, means it runs on Windows, instead of within NX (which would be an internal program). I decided to comment out all the interesting stuff and just test it using some printf statements to make sure that everything was properly linked.

显然,这是一件好事,因为当我尝试运行生成的.exe时,我收到错误此应用程序启动失败,因为找不到libufun.dll。重新安装应用程序可能会解决这个问题。 libufun.dll属于UG库。

Apparently, it's a good thing I did, because when I try to run the .exe that was generated, I get the error "This application failed to start because libufun.dll was not found. Re-installing the application may fix this problem." libufun.dll belongs to the UG library.

从目前为止,我看过的文件可能已损坏。然而,它也可能只是有一些奇怪的链接问题(所有这些奇怪的库),我想查找这种类型的问题,然后再尝试找到一个新的文件副本。我已经检查了Linker-> General-> Additional Library Dependencies路径是否正确,并且相关的系统变量没有改变。一切都很好,那里。

From what I've read so far, the file may be corrupted. However, it may also simply have some strange linking problem (what with all these strange libraries), and I want to look for issues of that sort before trying to find a new copy of the file. I've already checked that the Linker->General->Additional Library Dependencies path is correct, and that the related system variable hasn't changed. All is well, there.

还有其他什么我应该检查还是做这些工作?

Is there anything else I should check or do to make this work?

谢谢!

推荐答案

1)找到libufun.dll,将其放在与.exe相同的文件夹中

2)我的电脑 - 属性 - 高级 - 环境变量,编辑PATH变量,将包含libufun.dll的目录添加到PATH

3)设置包含IDE中libufun.dll的目录的PATH

如果你动态地链接(如你所做),这个dll应该在每次你运行这个应用程序时都在PATH或者在同一个文件夹中,你的exe。

如果你不喜欢这个,你应该链接静态.lib文件,这样你不需要dll。

1)find libufun.dll, put it in same folder with your .exe
2)My Computer - Properties - Advanced - Environment Variables, edit PATH variable, add directory containing libufun.dll to PATH
3) set PATH with directory containing libufun.dll inside IDE
If you linked dynamically(as you did), this dll should be in PATH or near (in same folder) your exe everytime you run this application.
If you dont like this, you should link statically with appropriate .lib files, this way you wont need dll.

这篇关于错误:“此应用程序启动失败,因为未找到libufun.dll”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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