Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dll error #159

Open
ghost opened this issue Aug 13, 2024 · 3 comments
Open

Dll error #159

ghost opened this issue Aug 13, 2024 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 13, 2024

I installed it on my test PC and it works perfectly, but when I try to install it on the target PC it gives me dll errors -> urctbased.dll ; VCRUNTIME140D.dll ; VCRUNTIME140_1D.dll ; MSVCP140D.dll "

I have already installed the Visual Studio runtime several times, including several times and all versions, but the error persists, it only worked once, but when I restarted the PC it stopped working, tryed execute in admin without sucess too

already tested in few folders, no sucess

sry my english not my language, thanks

any solution?

@ghost
Copy link
Author

ghost commented Aug 14, 2024

anyone?

@mydarkthawts
Copy link
Contributor

I installed it on my test PC and it works perfectly, but when I try to install it on the target PC it gives me dll errors -> urctbased.dll ; VCRUNTIME140D.dll ; VCRUNTIME140_1D.dll ; MSVCP140D.dll "

I have already installed the Visual Studio runtime several times, including several times and all versions, but the error persists, it only worked once, but when I restarted the PC it stopped working, tryed execute in admin without sucess too

already tested in few folders, no sucess

sry my english not my language, thanks

any solution?

ghost, those are asking for the debug .dll files, which are not included in the runtime install setup.
When compiling, you need to choose Release in the drop down, not Debug. See if that works.

@mydarkthawts
Copy link
Contributor

I installed it on my test PC and it works perfectly, but when I try to install it on the target PC it gives me dll errors -> urctbased.dll ; VCRUNTIME140D.dll ; VCRUNTIME140_1D.dll ; MSVCP140D.dll "

I have already installed the Visual Studio runtime several times, including several times and all versions, but the error persists, it only worked once, but when I restarted the PC it stopped working, tryed execute in admin without sucess too

already tested in few folders, no sucess

sry my english not my language, thanks

any solution?

You can also statically link your libraries into the compiled executable. I've shared a video and instructions below.

statically.linking.mp4
  1. Launch Visual Studio and open the solution or project you want to configure.
  2. In Solution Explorer, right-click on your project and select Properties.
  3. Under the Configuration Properties section, expand the C/C++ node.
  • Select Code Generation.
  • Find the option labeled Runtime Library.
  • Change the setting to Multi-threaded (/MT).
  1. This change will statically link the C runtime library instead of using the DLL version.
  2. After making the changes, rebuild your project by selecting Build > Rebuild Solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant