Victor D.
Have you tried compiling it without -lgdi32 or with -lgdi32.lib?
Victor D.
Honestly i've never tried to compile OpenGL apps with Mingw32, i've done so with VS C++
Victor D.
Have you tried compiling it without -lgdi32 or with -lgdi32.lib?
I think it is 😅, but i don't remember
Ghoul
how to print "water melon" in cpp using thread "water" from one function and "melon" from another
Nikolas
wtf
I_Interface
What is water melon
mb some kind of juice ? :D
MᏫᎻᎯᎷᎷᎬᎠ
Anonymous
Get c ++ book
Anonymous
#cpp
Afees
I suppose you can use condition_variable.
👍Or shall we pass the index in a structure as argument
Александр
👍Or shall we pass the index in a structure as argument
As I understand we should print "mellon" strictly after another thread will print "water". And this question about threads syncing. But I'm not sure. Author was too laconcy.
Anonymous
This exe file is programmed in C++ (Yes/No)?
Anonymous
😁
Dima
thanks
Anonymous
I can suppose this guy was waiting for someone to run that executable... huh
I_Interface
I can suppose this guy was waiting for someone to run that executable... huh
i don't know how need to be stupid to do this :D
Anonymous
He probably doesn't even care, he just wanted to feel like a h4x0r, spreading malicious executable around
MᏫᎻᎯᎷᎷᎬᎠ
This shit can be deleted from the group
Victor D.
I added gdi32 opengl32 And glfw3
Turbo were you able to compile your app?
Anonymous
I can now compile I used cmake
Anonymous
My problem is solved
Victor D.
That's good, but just for you to know what the cause of the error was, i'll explain it for you: -First of all It was a Linking error. -Since you are using glfw to create windows (which uses gdi32 functions under the hood), you have to tell the compiler to link it the program as if it were a Windowed App, and this is done by adding the -mwindows option in gcc or g++ Hope this help
Anonymous
#googleit
Anonymous
Thank you for warm welcome
Azer Abishov
Hi everybody. İ try to write a program to input 2 d array elements and print them by using pointer. But when i run program, i get this output. How can i fix this?
Azer Abishov
Dima
Here’s your link.
Azer Abishov
Thanks
L0kzy
how to print "water melon" in cpp using thread "water" from one function and "melon" from another
Thread synchronization is what are looking for just fire up two threads with different priorities in such a way the "water" func start first followed by "melon" func.
Anonymous
i post this in other chat http://www.fuckinggoogleit.com/
Anonymous
then i get booted lol
Vladimir
Hi everybody. İ try to write a program to input 2 d array elements and print them by using pointer. But when i run program, i get this output. How can i fix this?
Algo correct. What is not correct - creation of array. I got segfault, then I just force it to be size of 10 max, result:
Vladimir
May be it's legit - I know there is VLA, but it doesn't work on my machine.
Victor D.
Are ideone links allowed?
Victor D.
I corrected it in ideone
Mihail
May be it's legit - I know there is VLA, but it doesn't work on my machine.
VLAs are actually a GNU extension, so that's probably why
Mihail
they were allowed in one of the ISO C version, but removed in the next iirc
Artöm
Removed I mean. Added in C99 or 11
Wim
Vla's are difficult to securely generate code for and pose a risk of overflowing at runtime
Artöm
> risk of overflow Essence of C
Anonymous
Guys any resources for learning Chinese Reminder theorm
Anonymous
???
Mihail
Were they?
Just checked, they weren't removed, but were made optional
Mihail
In C11
Mihail
So C99 has them and C11 might not
Mihail
"If the compiler defines the macro constant __STDC_NO_VLA__ to integer constant 1, then VLA and VM types are not supported. "
Anonymous
Hi
Hakeem
Thank you
Dima
Welcome!
Anonymous
Am Samuel from Nigeria. I enrolled for Programming and web design class. I need someone that can help me to be learning faster.
Anonymous
Hi
Anonymous
/saved
Anonymous
#cppbook
The Curious Cat
/saved
The Curious Cat
#cbook
progmatic99
#callingfunction
The Curious Cat
#awesomeness
The Curious Cat
#bingo
Aiman
hi, how to declare string to null?
Nitesh
/saved
Nitesh
/saved
Cyshall
/get meta
Mihail
hi, how to declare string to null?
std::string? Just don't initialize it.
Hakeem
Admin please can you post apps used to create apps and games using c++
Hakeem
Sorry
Hakeem
Anyone
I_Interface
Hakeem
Computer and even phone apps
klimi
Admin please can you post apps used to create apps and games using c++
Unreal engine, many others..... Libs Glfw, glew, sfml, SDL, allegro
klimi
Admin please can you post apps used to create apps and games using c++
https://www.gamefromscratch.com/post/2018/08/30/Cpp_Game_Engines.aspx
Hakeem
Put it in the group for us to download or?