I've seen a lot of questions at SO asking why not all code is compiled as PIC or why we can't always use -fPIC. However all of the answers lack an ex ...
I've seen a lot of questions at SO asking why not all code is compiled as PIC or why we can't always use -fPIC. However all of the answers lack an ex ...
Consider the following code: It produces the following warnings in gcc but not in clang: Why? This may be related but the referenced gcc bug ...
my os default gcc version is 4.8.5, I compiled a program use gcc-11, so this program cannot be run for a older libstdc++.so.6, can I use libstdc++.so. ...
The declaration of strtok_s in C11, and its usage, look to be very different from the strtok_s in compilers like the latest bundled with Visual Studio ...
Currently having issues compiling programs that contain multiple files, and working on files outside of main. I suspect it has something to do with th ...
As the man page says: -ffunction-sections -fdata-sections Place each function or data item into its own section in the out ...
I've been having this issue with vscode on my mac where when I hover or call system functions it doesn't show their description, it just shows the arg ...
So I am trying to learn how to use the library check with a simple example on MacOS 11.6.1. For this I copied the code of Merlijn Sebrechts of the fol ...
Currently using VSCode on Windows for development, including C files. However, including unix header files (like <unistd.h>) results in VSCode t ...
I have this simple C code: compiled as: and executed as: prints: Why yyy is not printed? By reducing the issue I've found that: for s ...
My OS is Ubuntu Linux 20.04 I reinstalled gcc and some libraries I didn't change anything in the system, I don't know what could have happened. Erro ...
when i Compile the GTK+ code ( in C ) gcc has many error ! this code is from GTK Demo but it's Examples not work on my Fedore 37 ! Screenshot from GT ...
I need to hook into C++'s exception throwing mechanism like this: If you're wondering "Why would you do that?" I have this simple example of throw ...
I'm looking at the woothash hash function, a reiteration of wyhash - one of the best hash functions all-around according to the SMHasher project. Bot ...
I've been refactoring a codebase for an embedded chip that uses a lot of convenient overloaded functions with default parameters, like this: int stat ...
I created a singularity image for arm development. I installed a singularity in my WSL. I am going to code and debug at wsl,then move it to arm platfo ...
Let's say we have a program that is statically linked against MyLib1.0. Also there is a shared library which is linked against MyLib1.1. Now what hap ...
I have a code like this. The code is working I understand that the code prints 'm' because of demangling (https://gcc.gnu.org/onlinedocs/libstdc++/man ...
Automate the compilation of auto-generated C files with regular C files We have developed a program "cperformer" that is able to generate a C file fr ...
Somehow, my program is treating variables as big endian, even though my system is little endian. When I execute "lscpu | grep Endian", it returns ...