klimi
klimi
yz
thank you guys
ᴅᴀᴠɪᴅ 𝚁. | ᴘʀᴏ 𓅃
Hello, I am a new C/CPP programmer and I have some questions that I need answered now. After learning C/Cpp, will I be able to create programs like wine and proton used in Steam Deck?
I also have a question: How is wine built? What is its idea?
I also have a question. People say that if you learn C, CPP, and the basics of computer science, you will be able to program anything, whatever, after learning and mastering them, and you will understand every 0 and 1 in front of you. Is this correct? If so, then I hope someone can help me as I enter the field of computer science.
harmony5 🇺🇳 ⌤
Hello, I am a new C/CPP programmer and I have some questions that I need answered now. After learning C/Cpp, will I be able to create programs like wine and proton used in Steam Deck?
I also have a question: How is wine built? What is its idea?
I also have a question. People say that if you learn C, CPP, and the basics of computer science, you will be able to program anything, whatever, after learning and mastering them, and you will understand every 0 and 1 in front of you. Is this correct? If so, then I hope someone can help me as I enter the field of computer science.
For 1, you'll need to learn a lot of other things other than c/cpp.
For 2, check wine docs and source
For 3, no, that's just romanticizing stuff, you'll need to learn a lot, and even then you won't understand everything.
John
There are reasons why we need advanced programming language, and one of them is to avoid looking directly into 01010101😜
ᴅᴀᴠɪᴅ 𝚁. | ᴘʀᴏ 𓅃
harmony5 🇺🇳 ⌤
harmony5 🇺🇳 ⌤
yz
what is the default value of int in struct data ? is it 0 ? i would usually do something like "int a=0", but in struct i cant do that, so is the default value of int in struct is 0 ? in c btw
Doraemon
?
Michael
I was about to answer, but I found that you answered faster and better than me.😂
yz
Michael
in c, you can also use struct A a1 = {0, 0} to explicitly initialize the local struct variables
Michael
And I strongly recommend this method, unless you have to make it globally
yz
woww thank you this is what im looking for
yz
dontu
Rose
Not enough arguments!
Thomas
How do I cross compile for windows on Linux?
Viacheslav
Thomas
Cmake?
Does that make windows compatible binaries?
Viacheslav
Does that make windows compatible binaries?
Also it is common for unix to install packages, so you include it like find_package(package_name), but for windows you need to include path include_directories("path")
Steve
make it for linux and use it on windows with wsl
dontu
dontu
Simple Sorcerer
Cmake?
No. This is just a constructor for convenience
klimi
please read the group name, then group rules and then delete your offtopic messages, thank you
Rose
User biochem has 1/2 warnings; be careful!
Reason:
offtop
Simple Sorcerer
Thomas
Simple Sorcerer
gcc
on linux there's a package called something like mingw-gcc.
Simple Sorcerer
do a search in your package manager
Juan
hi everyone,im using msys2 to run g++ on windows10
but when i use g++ to compile c++ file, i got this
C:\Users\Jose\Documents\GitHub\casualcode\cpp\hello>g++ hello.cpp -Wl,--verbose
Supported emulations:
i386pep
i386pe
collect2.exe: error: ld returned 116 exit status
version info
mingw-w64-ucrt-x86_64-gcc 13.2.0-5
mingw-w64-ucrt-x86_64-binutils 2.42-1
how could i gather more debug information?
Ziky
I looks like your linker support i386 only
Brooklyn
Simple Sorcerer
Simple Sorcerer
The translator seems to be broken 😅
Simple Sorcerer
I also collect x32 attachments. they will run everywhere
Brooklyn
yes
Don’t 64 bit processors have the capability to run 32 bit programs
Brooklyn
/report
Rose
/report
Reported to admins.
Rose
Reported to admins.
Danya🔥
Brooklyn
Read the rules no hello
Brooklyn
It is mentioned in the 2nd paragraph
Viacheslav
Read the rules no hello
Wrong rule i guess. It is hard to imagine any networking event, where people do not greet each other
Danya🔥
Juan
some more info: if static-libstdc++ is passed, it works
im tryna learn to use something like strace, wish me luck
Someone
SUPER AGENT
Leovan
Danya🔥
Leovan
Danya🔥
Danya🔥
MSVC is a bug in itself
Danya🔥
I'm hoping someday Microsoft gonna bury this thing and use clang, as Intel did
D
Are there any advantages of using msvc over clang, though? Except ergonomics
Danya🔥
MSVC has better support of newer standards
Leovan
Artur
Even Apple clang is ahead of MSVC in terms of compiler features … 😅
Dima
clang one love
Artur
Ludovic 'Archivist'
The implementation of concepts is also a bit weird at times, with some unhandled cases I can't remember
Ludovic 'Archivist'
MSVC are not catching up on the compiler side of c++23, but have almost all library items including a bunch missing from both clang and gcc
Danya🔥
Ludovic 'Archivist'
Look at the library items now