neb
What's wrong with vim or emacs?
Sourabh
?
Telegram not allowing to send rapid messages.
Sourabh
Anonymous
Sourabh
Yeah, that's true.
Anonymous
Anonymous
Define an IDE
I think it's more subjective to the feature one needs.
You can automate the compilation, debug through gdb, and a lot more. Vim is a lot extensible with Linters, autocompletions. I don't see why it "lacks" according to you.
Anonymous
Anonymous
Anonymous
I'm talking about custom keybindings. And things such as compile on save
I haven't had a need of a profiler yet.
Anonymous
Anonymous
I don't lack any space in my SSD or RAM, I have enough CPU power
Why would I sacrifice a gigabyte of SSD to get a console text editor which is useless if I do not configure it instead of having full-featured IDE which works right out of the box?
Anonymous
As I said, it's subjective.
If you don't like it, doesn't means it's not worthy for the others.
Morden IDE have all, even vim shortcuts but the vimscript ;)
Anonymous
Anonymous
I can't call any large company that uses code editor like Vim instead of IDE with C/C++
Anonymous
Indolent
Need help debug a 20 line code for a test case.
Anonymous
Anonymous
The hard thing about vim is, it's a pain to teach someone who isn't familiar with it.
Why teach them when you can give em an easy to use editor? Saves money, yeah.
Anonymous
Well, it is offtopic rn
Anonymous
The topic is closed
Anonymous
Sourabh
Chernykh
#свободуНавальному
Mar!o
#свободуНавальному
Dima
why
Dima
repositories are boring
Mar!o
I can use c keywords like auto?
auto has a other meaning in C++: it is no storage class it is used for automatic types like var in C# or Java. Also register is not available
Mar!o
auto in C++ is more useful than C's auto lol
#свободуНавальному
Understod. Hence, i can't extern pure c. Only subset "c" for c++
Mar!o
Kinda. Why would you like to use C in C++?
Mar!o
But you can use .c files with extern "C" linkage from C++
#свободуНавальному
And i can use pure c? For example keyword "auto" of c
#свободуНавальному
Kinda. Why would you like to use C in C++?
I wanna use c, but i need OO sometime. Wanna use c++ like helper lang. But seems that i can't use pure c with c++. Not sure. Maybe it is possible?
Mar!o
Mar!o
Parra
#свободуНавальному
Only in .c files
Of course. I mean, u sure that i can use pure c in c++ if will do extern "C"?
Parra
Parra
removes the name mangling and follows the c abi specification
Parra
even using extern "C" you can mix c/c++ inside of the function
Parra
if you want pure c compile with std=c99 or c11
#свободуНавальному
if you want pure c compile with std=c99 or c11
And i can use pure c99 inside modern c++ (for example c++20)?
I hope you understand what i mean under "pure c".
If yes - how? With help "extern", right?
Mar!o
😡
Parra
Parra
you can also do the opposite meanwhile you expose a wrapper around c++ files with extern "C"
#свободуНавальному
Mar!o
#свободуНавальному
😡
Don't be angry. I just find info
Parra
Parra
or build it as a library, i.e .so or .a, and link against it
Parra
for example, nodejs is mostly written in c++ and it uses libuv which is coded in c
#свободуНавальному
you could use the .o files directly
How? I was try compile c file in .o file and include it in .cpp file. But i got infinite loop of include (i don't know how it work)
Parra
#свободуНавальному
man gcc
I mean, how i can include .o file in .cpp file
Parra
you don't include it
#свободуНавальному
Just #include is not work
Mar!o
Parra
https://www3.ntu.edu.sg/home/ehchua/programming/cpp/images/GCC_CompilationProcess.png
Parra
https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html
Parra
you see, .o and .a depend on linker, not compilation step
#свободуНавальному
How link it? With help gcc, as you told?
Parra
Parra
gcc -c file1.c
g++ -c file2.cpp
g++ -o myprog.exe file1.o file2.o
#свободуНавальному
read this
Ok. Now i have 100 tabs and vscode. After 20 min will read it. Forwarded it in faves
Parra
#свободуНавальному
Mb i should specify .h files?
Parra
#свободуНавальному
Oh. If it's true - i'm bad
Parra
and include it in both (c,cpp) files
Hermann
are there tools that allow you to draw protocols?