gpt-3.5-turbo-0125· OpenAI
WildChat-4.8M (AI2)
Hi, i have compile this repository: https://github.com/epistelli/xptmrt with Visual…
- User
Hi, i have compile this repository: https://github.com/epistelli/xptmrt with Visual Studio 2013. It builds the DLL xernel32.dll, but it needs the extra msvcr120.dll. What must i set in Visual Studio 2013 to compile the xernel32.dll without using the msvcr120.dll?
- Assistant
To compile the xernel32.dll without using the msvcr120.dll dependency, you need to statically link the C runtime library into your project. Here's how you can do it in Visual Studio 2013:
- Open your project in Visual Studio 2013.
- Right-click on your project in the Solution Explorer and select "Properties".
- In the project properties window, navigate to Configuration Properties -> C/C++ -> Code Generation.
- In the "Runtime Library" drop-down menu, select "Multi-threaded (/MT)" for release builds, or "Multi-threaded Debug (/MTd)" for debug builds. This will statically link the C runtime library into your project.
- Click on Apply and then OK to save your changes.
Now, when you build your project, it should no longer have a dependency on msvcr120.dll. Note that by statically linking the C runtime library, the size of your DLL may increase as all the necessary C runtime functions will be included in the DLL itself.