简体   繁体   English

Visual C ++ wxWidgets应用只能在我的PC上运行

[英]Visual C++ wxWidgets app does only work on my PC

I developed an app in visual studio using wxWidgets everything works fine on my machine. 我使用wxWidgets在Visual Studio中开发了一个应用程序,在我的机器上一切正常。 I tried to run my app on a different pc and i got errors like "ucrtbase.dll missing" etc. Then i tried to change to Multithreaded(/MT) mode and to changed debug to release mode but then i cant run the app on my pc because everything from wxWidgets gets red underline. 我尝试在另一台PC上运行我的应用程序,但出现诸如“ ucrtbase.dll丢失”之类的错误。然后,我尝试更改为多线程(/ MT)模式,并将调试更改为发布模式,但随后我无法在我的电脑,因为wxWidgets中的所有内容都带有红色下划线。

You need to ship the Visual Studio runtime libraries (aka Visual Studio redistributables) with your application. 您需要在应用程序中附带Visual Studio运行时库(又名Visual Studio可再发行文件)。 They are needed by all applications built by Visual Studio. Visual Studio构建的所有应用程序都需要它们。 You also (of course) need to include any other libraries you may be using (like wxWidgets). 您(当然)还需要包括您可能正在使用的任何其他库(例如wxWidgets)。

You can simplify your life greatly ( and the life of your users! ) by statically linking to your libraries. 通过静态链接到库,可以极大地简化您的生活(以及用户的生活!)。

This is a big topic, but the first thing to do is to read up on how to build and link to the static wxWidgets libraries. 这是一个很大的主题,但是要做的第一件事是阅读如何构建并链接到静态wxWidgets库的信息。

Give it a try and then ask individual questions when you hit problems. 尝试一下,然后在遇到问题时提出个别问题。

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

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