Stephanos
g++ has its own infrastructure, so does msvc
Anonymous
clang
Clang use LLVM
Anonymous
Stephanos
No sir
awww,.. maaaan
Anonymous
I just used code blocks
Anonymous
Just that
g++ doesn't
Anonymous
Did you ever use command line program?
Anonymous
I added gdi32 opengl32 And glfw3
Stephanos
I added gdi32 opengl32 And glfw3
where did you add this?
Anonymous
Just that
Clang uses LLVM for its intermediate represention
Anonymous
Anonymous
Project --> Build options --> Linker settings
Anonymous
And it makes it very flexible
Anyone can write a program to check some on given input code
Anonymous
Code blocks
Anonymous
We don't know how to use code blocks, man
Anonymous
No one uses it, you know
Anonymous
Why sir
Anonymous
Because...
Anonymous
There are better options for writing code
Anonymous
Ok
Anonymous
For example, visual studio
Anonymous
Is there anything such as Cmake compiler
n1coc4cola
I need some help ;| I have some libraries but the libraries use cmake to be build... In some files there is some gpgme++ depends. I'm extracting data, files and re-using library but when I compile my project I have the following error:
n1coc4cola
In file included from Cryptography/GpgMe++.cpp:31:0: /usr/include/qgpgme/dataprovider.h:27:37: fatal error: interfaces/dataprovider.h: No such file or directory #include <interfaces/dataprovider.h>
n1coc4cola
but the file is here...
Anonymous
Because your file should be in "interfaces" directory
Anonymous
And it's not
n1coc4cola
no, it's here
n1coc4cola
every files are here
n1coc4cola
but the files includes itself with <...>
Anonymous
It includes with a file which has the same name in the directory "interfaces"
n1coc4cola
I'll test if it works
n1coc4cola
if no, I'll give up
n1coc4cola
I changed library for another which is more simple and fast and which don't include the library which include the library which do the error
Gradus
n1coc4cola
👌
Shubham
I need little help The size of my array should be the number of character user gives If user gave input as 'aeroplane' in which characters are taken one at a time, then array size should become 9 because 'aeroplane' has 9 characters in it How to do it?
Pavel
I need little help The size of my array should be the number of character user gives If user gave input as 'aeroplane' in which characters are taken one at a time, then array size should become 9 because 'aeroplane' has 9 characters in it How to do it?
You can use std::vector if you're using C++ and call resize on it. https://en.cppreference.com/w/cpp/container/vector Or you can dynamically allocate the array if you're using C. Don't forget to delete it manually at the end. http://www.cplusplus.com/doc/tutorial/dynamic/
Pavel
C++
Well, std::vector is a template-based wrapper on dynamically allocated arrays, that you can resize dynamically, and use lots of things like alghorithms from STL. Also it has nice optimizations that go out of the box. To use it you basically create an std::vector object giving it your type. Like std::vector<int> is something like a dynamic array of int elements. Then you can work with it as with any array via square brackets. Or use other things like iterators. You can get the current size of array calling size function on it. What else is not clear?
Pavel
I saw this on stackoverflow but i dont have any idea of this concept IS there any other way
Other way would be to have a very big array and use only part of it (store the size that you're actually using in another variable).
Pavel
But that comes with wasting memory and size limitations.
Pavel
how would i access it? array[vector<int>] ??
You could open the second link I gave you. It contains working examples
Shubham
But that comes with wasting memory and size limitations.
YEs I know but I am solving a small problem for hackerrank
Shubham
Thanks!
Pavel
Okay I will see
Ops, I meant the first link
Shubham
👍
Pavel
YEs I know but I am solving a small problem for hackerrank
Vector is the easiest way to do such thing, I highly recommend to have a look at it. As you anyway will find this type in almost every non trivial C++ program.
Baur
/notes best-book
Baur
#cbook
Vaibhav
can someone provide me book or link or website to learn c
professor
does anyone know asm?
Artöm
It's C chat
Artöm
Just ask if the question is related
GECKO
#cppbook
GECKO
#findporjects
GECKO
#findprojects
Dima
Noobs.
GECKO
True.
Mihail
does anyone know asm?
not much, but ask. there are people here who do
professor
is this correct? why the second field is giving -62 while I request -60 , but the last one it contains the right value nasm > jmp short $-60 00000000 EBC2 jmp short 0xffffffc4
professor
I like risky life 😂😂
Mihail
is this correct? why the second field is giving -62 while I request -60 , but the last one it contains the right value nasm > jmp short $-60 00000000 EBC2 jmp short 0xffffffc4
probably the instruction pointed to by $-60 isn't one byte only and it goes to the start of it which turns out to be $-62
Mihail
just a guess
professor
It is counting $ and - as bytes too. It’s weird
professor
It’s adding jmp “$” and “-“ as bytes