Pippi
For example, few days ago there was a debate here about caroutines, if you are in cybersecurity and into malware development and analysis you may never use caroutines but if you are in game development you will definitely use it, you get the point now
正伟
hello,everybody。
Never Spam Bot
正伟 邓 is now approved by the group admin and can send messages without any restrictions
I would like to ask everyone a question: Is the remote compilation feature of VS2019 reliable? Currently, I am using VS2019 to remotely compile Linux C++ code, but based on the gdb results, there seems to be a discrepancy between the compiled output and my code. Of course, this situation occurs very rarely.
See spam? Quote the spam message in the group and reply with /spam
正伟
I would like to ask everyone a question: Is the remote compilation feature of VS2019 reliable? Currently, I am using VS2019 to remotely compile Linux C++ code, but based on the gdb results, there seems to be a discrepancy between the compiled output and my code. Of course, this situation occurs very rarely.
Aurora
秀代码
Aurora
Show your code
Rose
Purge complete.
Aurora
9
Vlad
Vlad
What is "remote compilation" anyway?
Vlad
ssh'ing somewhere and git clone'ing there?
wolf
what is the feeling when u miss '\0' in your string and compiling it?
klimi
~
Does anyone has links (website or anything) that list all possible UB in C++? Both in raw pointer or C++ 11+ RAII/smart pointers, I want to learn from the mistakes, by avoiding the mistakes
Pavel
Usually correct implementations of smart pointers doesn't result in UB, but you can still do wrong things with them as with any other C++ objects
Pavel
The UB related to raw pointer math is interesting though, like [expr.add] from the list states that incrementing a pointer past the end of the array is UB by itself, even without trying to dereference it.
Vlad
Vlad
It has examples of ub throughout it
~
I have a confusion ;( does any segfault is UB? Or some segfault can not be UB and some can be UB?
~
~
Vlad
~
Pavel
Can you give example code of wrong thing in smart pointer?
Here are two examples:
first one is a somewhat typical issue of passing ownership to a smart pointer in a bad way
second one is a silly example of a generic wrong thing you can do with an object (any object, not only a smart pointer)
https://wandbox.org/permlink/ZMCmsuyEmMqMe3DJ
Pavel
The compiler detected that stuff easily, had to obfuscate it a bit and downgrade the compiler
Mohammed
I am an Egyptian programmer in the College of Artificial Intelligence. I am in the first year and I am 18 years old.
I want a basic course in software that lasts from one and a half to two years, and that is useful and reasonably priced. If it is free, it would be good.
Is there anyone who can guide me or provide me with guidance, because I am still a beginner and I do not know anything. I have a very superficial knowledge of Python.
klimi
Mohammed
C++
Ujjawal
Ujjawal
Why not any other language?
正伟
Show your code
The real problem I'm encountering is that dynamic library A loads dynamic library B, and both dynamic libraries depend on static library C, but the versions are different. Dynamic library B calls function F from static library C, which has been modified in the newer version of static library C. The current behavior is that function F called from dynamic library B still uses the version that dynamic library A depends on.
I believe this is due to an error in g++'s search for the function symbol table. My usage is certainly incorrect; I should ensure that the global static library versions are consistent.
正伟
but in almost time,the problem is disappear。
正伟
正伟
you can edit code in windows,and compile in Linux
wolf
just carefully see through the differences in new version lib and modify the pointers of lib for dll you are using.
wolf
I can't think another way to do it
Pippi
Jarkartar
Hi sir i am from myanmar
I am 17 year students i want to do
System programming. Like modified os, kernal, and devices system and Andori system, i have been java basic . Recommand me for systen programming.
klimi
wolf
could someone share some keyboard remapping advices for rookie? like ctrl(left)=end?
wolf
just some time saving advices
Vlad
Learn your basic editor shortcuts and just do actual programming instead
onz
any reverse engineer?
klimi
Rose
any reverse engineer?
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is.
These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot?
If you have a question ask it directly. You are more likely to get a response that way.
onz
how can i recursively search subfolders by their names in c? Not cpp, pure C, PIC..
onz
windows
Vlad
Vlad
https://stackoverflow.com/questions/25639874/recursively-searching-for-files-in-the-computer
onz
nearly impossible without any winapi s right? i wanted to design in memory filesystem, but not like unix, windows looks hard
Vlad
onz
yes, saw that one
来财@阿里云充值就送
Hi everyone , Good Morning
来财@阿里云充值就送
Just want to ask if anyone need a server or vps ?
klimi
potato
ot
wolf
how to pronounce “Bjarne Stroustrup” ‖/bdʒʌnɪ stʃaʊstʃʌp/ or /Bjʌnei stʃʌstʃʌp/ ? I heard it differently from different people
Nobita
Any beginner (who literally doesn't know anything in c ) wants to start c?
Ujjawal
Nobita
wolf
don't use c,unless u want to work for old rich people
Ziky
klimi
why?
well it is faster than to write asm
Ziky
Oh sure. I thought why not to use c++
wolf
unless u write code for rocket science or railed missile auto pilot or military shooting robot cars auto drive.that's where speed really matters,otherwise I think you aimming for reverse engineer
0100110010100010
Hi guys I'm developing own os on c and asm it is hard? What's me start?
Cayetano
Wow!! It would be a huge project, and my first task should be to look for a cross compiler that supports the target platforms. I mean, if you are planning to create a new memory management or disk file system, you must have a compiler that lets you create the "executable" that fits and can be able to used with the new memory management and the new disk file system.
On the other hand, I will look for the architecture handbook of the planned supported processors to understand how they manage the protected mode, how they paginate the physical memory, etc.
Cayetano
If you are not planning to change those aspects, you can start with Minix compatible kernel and vary the features that you want ... and will result easiest task
Jojo
0100110010100010
Jojo
Never Spam Bot
wolf big bad is now approved by the group admin and can send messages without any restrictions
but once u learned asm, everything is opensource
See spam? Quote the spam message in the group and reply with /spam