Answer the question
In order to leave comments, you need to log in
How to build an executable file for Linux?
I need to build a Linux executable. the project itself consists of two files, these are:
CMakeLists.txt and main.cpp
I would like to know how I can build the finished file through gcc, if the cpr.h library is included in CMakeLists.txt
gcc -o file -c main.cpp -c CMakeLists.txt or something like that...
Answer the question
In order to leave comments, you need to log in
call:
1. cmake - the Makefile generator
2. make - the assembly itself according to the created Makefile
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question