I_Interface
Pavel
/report
klimi
Okay inbox me
Roxifλsz 🇱🇹
Roxifλsz 🇱🇹
/warn cringe
Lauri
how to check if a function has terminated
Lauri
returns 0 after doing stuff
Lauri
like feof
Artöm
If function returned, it terminated
Lauri
whats the differnce between header file and a library
Lauri
i'm learning c
Lauri
char *test (void);
Lauri
and what's that
Lauri
i think ill ditch c and learn rust
Lauri
rust is easier
klimi
whats the differnce between header file and a library
header file is just a header file library is a "program" well it is some compiled stuff you can call functions from
Lauri
when do i know i need to use pointers when the i get compile eror
Lauri
?
jot.rs
and what's that
Read some C tutorial on internet, that should help
Lauri
i did
Dima
you didn’t
klimi
did it help?
Lauri
i have two questions
jot.rs
rust is easier
You can not learn Rust if you don't know C
Lauri
i swear i did
Dima
no
klimi
tell us what it was about
Dima
your questions are pupil level
Lauri
ok this question is not answered by google
klimi
TELL US WHAT YOU FOUND
Lauri
can't u answer
Lauri
i thought that group is like stackoverflow
Lauri
i dont ask people questions unless i google first
Pavel
i thought that group is like stackoverflow
well, both here and on stack overflow you need to ask correct questions that can be answered, and also do some research before asking
Pavel
when do i know i need to use pointers when the i get compile eror
for example I don't understand what you mean here
Pavel
http://www.albertgao.xyz/2016/08/13/understand-when-to-use-pointer-in-c-and-the-memory-model-in-programming/
Lauri
i did let me ask my question again : to know that i need to use pointer for a variable is when to get compile erorr?
Lauri
ok thnx
Lauri
i read this article before and i didnt understand it
Lauri
could u explain me
jot.rs
Give a concrete example with a compiler error
Lauri
segment fault
Pavel
i did let me ask my question again : to know that i need to use pointer for a variable is when to get compile erorr?
it is not related. compiler won't tell you "do it this way", he says "this thing is incorrect", but there can be many ways why it is incorrect (e.g. if the compiler sees that your types don't match it can mean that one of the types given is incorrect, and the compiler don't know in which one you made a mistake)
Pavel
segment fault
segmentation fault is not a compiler error
Lauri
i mean when i get this error at runtime
Pavel
i mean when i get this error at runtime
so your program breaks the memory somewhere, if you don't understand where, then it's better to use a debugger to find where it happens if you found where, but still don't understand why it is happening, you can break the code into parts and make sure you understand each of those and each part is working correctly if it is still unclear, you can try to give us the code (use pastebin for pasting it), and maybe we can guide you
Lauri
ok tnx
Lauri
what could someone do with memory location the adress?
Lauri
yes
Pavel
yes
it mostly depends on what it is pointing to you can check two pointers on equality you can check that a pointer is null (compare with NULL for C and with nullptr in C++) If it points to some valid data (and the type of the pointer is corresponds to the data), you can dereference the pointer to access the data If it's a pointer to a block of a contiguous memory (e.g. you have a pointer to a item of an array), you can increment and decrement it, add to it or remove from it (to move it inside this contiguous block of memory), you can compare two pointers of the same block with > >= < <=. There are also other cases.
klimi
Ups I banned him
klimi
Without rose
klimi
Ah...
Punish3r
Im trying to use crypto++ library in clion on windows but its giving the error, "No rule to make target"
Punish3r
I have tried many solutions, but nothing seems to work.
Sameer
Can anyone provide me some help on how i can contribute to open source??any help would be appreciated
NXiss7
You can use cryptopp-cmake repo on GitHuh for testing, or build lib and just link to it.
NXiss7
No can u help me with that?
I've contributed to KDE. Start by fixing bugs
NXiss7
Ping me when you have patch for the fix.
Dima
lol contributing
Dima
lol fixing bugs
jot.rs
lol contributing
For me that's meaning of life
NXiss7
lol contributing
If someone asks an OSS project to contribute while there is a whole damn GitHub there that's the first step I'd suggest.
NXiss7
For me that's meaning of life
Collaborative life baby! 😄😄😁👍
jot.rs
👍
NXiss7
You're welcome
Punish3r
Punish3r
Crypto++ is really problematic with CMake
I have used it in clion on linux, but on windows cmake is making things difficult.
NXiss7
What do you suggest then.?
Compile Crypto++, then just link to it.
Aashirwad
Hi! I have learnt C/C++ by free video lectures.Can anyone tell if there is any certification where I can give exam and get certified