R
R
RoboOwl2019-06-03 20:30:09
C++ / C#
RoboOwl, 2019-06-03 20:30:09

How to create an .exe file with built-in libraries in CodeBlocks so that it can be opened on another computer?

I created a project in CodeBlocks, having previously installed the necessary libraries for correct work with GLUT.
I found the .exe file in the project library, it starts up, it works.
When you try to run it on another computer, it says that there are no corresponding libraries.
Question: What should be done to make this file run on any computer without additional installation of libraries?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Petryaev, 2019-06-03
@RoboOwl

Together with the exe, put the dlls there, or you can create a setup program that will sew the executable file and either into the executable and install it in the place you need, otherwise nothing

V
Vitaly, 2019-06-03
@vt4a2h

The easiest way is to put all the libraries in the executable directory.
You can still statically link everything into one executable file, but for beginners it is more difficult.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question