klimi
^
Mat
Hi :D Where's Kernighan?
BinaryByter
Hi :D Where's Kernighan?
tell him to die, C is dead
Dima
tell him to die, C is dead
One more time and you’ll be dead too
Dima
C is forever
BinaryByter
BinaryByter
i mean
BinaryByter
sure you can use it
Dima
BinaryByter
But you shouldnt
Dima
Lol you will say otherwise when you’ll get a bit older
Dima
BinaryByter
Lol you will say otherwise when you’ll get a bit older
@QNeko @OxFFFFFFFF can you agree with his statement?
klimi
what is the best way to compile c++ project?
BinaryByter
what is the best way to compile c++ project?
compile all the source files to object files and link them together
klimi
MakeFile? CMake? ninja?
klimi
hm?
BinaryByter
use a makefile
klimi
and why?
BinaryByter
mainly because its the simples one that doesnt require hour long dependency catching
klimi
ok
klimi
and
klimi
do i have to put all files into it?
BinaryByter
into what?
klimi
eg make file change everytime i add new class?
BinaryByter
no
klimi
how?
BinaryByter
./destination/of/folder/*.cpp
klimi
eh
klimi
i dont know how to create makefile
BinaryByter
all: g++ ./*.cpp -o output
klimi
hmmm
klimi
ok
klimi
all: g++ ./*.cpp -o output
and is it better to have headers separated?
BinaryByter
BinaryByter
CLINL has the headers separated
BinaryByter
but we use a compiler flag that sets a standard include path
klimi
hm
klimi
src/main.cpp~: file not recognized: File format not recognized
klimi
hmmm
Илья
hi
klimi
hi
olli
MakeFile? CMake? ninja?
I would prefer cmake, it's platform, compiler and even build tool independent. From cmake you can generate makefiles, ninja build files, visual studio projects and so on. Furthermore it can assist with dependencies
klimi
so not makefile?
olli
If you use cmake you can generate your makefiles if you want to. But you are not limited to using them. As mentioned you can use multiple build tools such as ninja , msbuild
klimi
mhm ok
klimi
ill do cmake
BinaryByter
CLINL has the headers separated
zeneural is header only but has a unit test folder
klimi
CXX = g++ BIN = bin SRC = src INC = include LIBS = -lsfml-graphics -lsfml-window -lsfml-system FLAGS = -std=c++14 -Wall TARGET = BlueNeko all: $(CXX) $(SRC)/* -o $(BIN)/$(TARGET)
Илья
Do you advise books C#? Sorry, my English bad
klimi
no
Dima
admin asks how to compile a project -.-
olli
You can use cmake even to clone a repository, download and extract files and many more things. A single cmake can be enough for your whole build process including automatic documentation generation
Dima
nah I thought admins there are like 50years old devs
Dima
lol
klimi
lol
Илья
?
klimi
NO WE DONT
Илья
Someome is using the programm Screenpresso?
John
No
klimi
i don't think so
BinaryByter
Someome is using the programm Screenpresso?
shutter is good enough for me
klimi
ffmpeg here
Dima
cmd + shift + 5 (only the chosen ones will understand)
klimi
xD
Dima
the best tool
Avezy
ShareX
Avezy
ffmpeg
Yoi
Ok
MᏫᎻᎯᎷᎷᎬᎠ
Hi
MᏫᎻᎯᎷᎷᎬᎠ
I just did And i respect it
klimi
yeah. no problem c:
MᏫᎻᎯᎷᎷᎬᎠ
Got that?
MᏫᎻᎯᎷᎷᎬᎠ
So