O
O
okhramkov2021-03-31 22:00:07
C++ / C#
okhramkov, 2021-03-31 22:00:07

How to compile a C project into a program that does not require recompilation (something like an .exe) on ubuntu?

I wrote an online chat in C (the final task in Unit Factory), I also used GTK.
How to assemble a finished project so that without recompilation you can simply open it as an exe file on another computer with the same OS.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2021-04-01
@okhramkov

Collect the binary of course. Moreover (as I understand it, do you want to demonstrate to the teacher?) - if you are not sure that there are all the files in that place - you need to collect it statically - this will greatly increase its size, but will make it possible to run it on almost any linux

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question