olli
yes globals, why would you forward declare local variables?
olli
screenshot for mobile users, flags:
msvc: /Wall
gcc/clang: -std=c11 -pedantic -Wall -O3
Vlad
it's because it's defaulted to extern in the global scope in C
Alex
a is defined two times
Aj
When we write cout<<string[-1] . Is it any kinda error ?
Aj
It's just variable of type string
Vlad
All globals are zero initialized if isn't set otherwise
Vlad
statics, etc
Talula
It shouldn't... your compiler is crazy.
Talula
if you declare int a; (globally)
then do int a = 10; in main or function, you're simply redeclaring the variable.
Vlad
C standard shenanigans
Wisenky
https://github.com/pipd0un/vcar_cpp_logic
/include/c++/bits/basic_string.h:182: multiple definition of `Map::Laby'
src/main.o:C:\Users\...\workspace\vcar_cpp_logic/inc/map.h:57: first defined here
collect2.exe: error: ld returned 1 exit status I cant get rid of this lub :(
Wisenky
cant implement same arg twicce ?
Wisenky
variable I mean
Wisenky
what should I do now
Engineer
We are talking about zero again
🤓https://www.bruceeckel.com/2020/07/30/we-havent-invented-zero-yet/
Wisenky
in map.h doesnt include car.h now but still multiple definiton error comes
Wisenky
thanks a lot sir : https://github.com/pipd0un/vcar_cpp_logic
Sachin
/get
Wisenky
Wisenky
Wisenky
Wisenky
Pavel
Wisenky
Anonymous
???
warrior404
Hello my friends. This question is me too.? Thanks
Dima
Read the rules
V01D
I need to use SOIL2 for my openGL stuff.
My os is manjaro linux, and I have issues installing and linking it.
Meaning the header file is not in /usr/include (which is fine I just copied it into my local directory) and I cannot link it.
I don't know what to input for the linker (-l???
V01D
Idk what else to do
V01D
The documentation is really lacking.
It is based off of SOIL if that helps 🤷♂️
V01D
You mean use the -I flag in my makefike
V01D
I just want it to work right now.
That's all I care about
V01D
V01D
No.
I cloned it from the repo, and followed the steps.
premake gmake
CD make/linux
make
V01D
Ammar
V01D
github.com/SpartanJ/soil2 is the repo name
V01D
Undefine reference to SOIL_load_OGL_texture
Ammar
What to do in this case:
1. What is the undefined reference?
2. Find the library.
3. Make sure the reference symbol exists on that library (objdump may help + less).
V01D
I just copy and pasted an example snippet from the repo
V01D
V01D
I am pretty sure.
But it can't be missing, I followed the instructions and got no errors..
V01D
What does that mean?
Ammar
V01D
So I have to compile the source files
Ammar
Yes, compile them to objects and link them together.
V01D
And then I can just link soil?
V01D
Did that
Just with premake5
V01D
Didn't work
V01D
Still no idea what to link.
I mean the make file ran and all but idk what linker command
V01D
I tried to compile the test_SOIL.cpp file from the repo
V01D
Yes
V01D
I did that
V01D
Same error.
It seems that the .a and .so files are unusable
V01D
Lemme try that
V01D
Yeah I know that
V01D
Still won't work.
-static breaks all other linkages
V01D
Okay, lemme try
V01D
No still undefined reference
V01D
Screw it, I will use a different library.
Any recommendations for an OpenGL image loading library that isn't SOIL2?
Anonymous
Hi
V01D
@sajjad_rmg No DM without asking for permission
Anonymous
Hi
V01D
Dunno.
I just used SOIL instead of SOIL2.
V01D
Thanks for the help though
Raj Kumar
Raj Kumar:
Any body knows about intent redirection vurnability
In android
During uploading in play console
Anonymous
hello. Can anyone help me? I'm really confused. I've been asked to write a C++ program for this algorithm, but I can't because I'm new 😔
V01D
I will try that another day.
I need to get some work done now