简体   繁体   English

stlport.5.2.dll和Visual C ++有什么关系? 我需要stlport才能运行程序吗?

[英]what is the relation between stlport.5.2.dll and Visual C++?? Do I need stlport for my program to run?

I'm trying to write a simple hello world program in visual c++ using visual studio 2010 prof. 我正在尝试使用Visual Studio 2010 prof在Visual C ++中编写一个简单的hello world程序。 Im getting the following error after successful build. 我在成功构建后收到以下错误。

System Error:
Application couldn't start because stlport.5.2.dll is missing 

When I searched about it it is an open source project. 当我搜索它时,它是一个开源项目。 So what is the link between these two? 那么这两者之间有什么联系? The only thing I changed from default VS installation is importing settings from other machine which is main build machine for our company. 我从默认VS安装更改的唯一更改是从其他计算机(我们公司的主要构建计算机)导入设置。

Here is what I did: 1. Create an empty project. 这是我所做的:1.创建一个空项目。 2. Added a source file Main.cpp with hello world line. 2.添加了带有hello world line的源文件Main.cpp。 3. F7 4. Ctrl+F5 3. F7 4. Ctrl + F5

Now I'm getting above error 现在我遇到了错误

try to run devend.exe /ResetAddin 尝试运行devend.exe / ResetAddin

there shouldn't be any problem. 应该没有问题。

make sure you create a simple empty project and not some kind of pre-defind project that loads other components by default. 确保您创建的是一个简单的空项目,而不是默认情况下加载其他组件的某种预定义项目。 (win32 console application) (Win32控制台应用程序)

Also - search you project's external dependencies.. remove any h file that is there... 另外-搜索项目的外部依赖项..删除那里的任何h文件...

Our Organization uses STLPort as the standard C++ library. 我们的组织使用STLPort作为标准的C ++库。 STLPort is an open source implementation of standard library for C++. STLPort是C ++标准库的开源实现。 So my Visual studio settings are modified such that any project uses stlport as the standard library and it is dynamically linked. 因此,对我的Visual Studio设置进行了修改,以使任何项目都将stlport用作标准库,并且它是动态链接的。

So we can either: 因此,我们可以:

  1. Put StlPort.XXdll in the directory where the executable is residing. 将StlPort.XXdll放在可执行文件所在的目录中。 OR 要么
  2. Remove the settings carefully to make your project to use default standard library provided by Microssoft SDK. 仔细删除设置,以使您的项目使用Microssoft SDK提供的默认标准库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM