I need someone to outline how to pass command line arguments to CLion. What I've found so far hasn't worked for me. Specifically I need to know how to pass mult
In x86-64 target Debian, most of the programs are link against shared objects with the /lib64/ld-linux-x86-64.so.2. And there is also one in /lib/x86_64-linux-g
I am trying to define a union struct with some struct and primitive members overlapping in memory with a simple array. This works perfectly in Clang and MSVC, b
I'm trying to compile this simple GMP program on Cygwin: #include <gmp.h> int main(){ mpz_t i; mpz_init(i); } This is the command: gcc -lgmp t
So, I just installed Eclipse for C/C++ and whenever I make a new project, I get two errors saying that the programs g++ and gcc are not in my PATH. All of the a
I am having immense difficulty trying to use std::string. The program compiles absolutely fine, but when I run the program, I receive this error: error I have
I am running my program on linux server and it was compiling and running fine then i made another directory and tried to compile it in that directory and it w
I'm new in C and have some problems compiling my code in OS X. I code Java a lot both in Eclipse and use terminal to compile my code. However now I'm learning
The gcc (or g++) compiler has a -std option to specify the language standard to use for compiling C or C++. At the top level one can see that this option exists
A linux build of any flutter application with linux enabled, results in the following error: flutter run -d linux Launching lib/main.dart on Linux in debug mode
I have read from a codeforces blog that if we add #include <bits/stdc++.h> in a C++ program then there is no need to include any other h
Is there a way to get gcc to output the available -march=arch options? I'm getting build errors (tried -march=x86_64) and I don't know what my options are. The
Note: I know that reading an uninitialized string is undefined behaviour. This question is specifically about the GCC implementation. I am using GCC version 6.2
When I try to compile my eek.cpp file with g++ eek.cpp -o eek -fsanitize=undefined flag, it shows: ld: library not found for -lubsan collect2: error: ld returne
I want to inspect the assembly output of applying boost::variant in my code in order to see which intermediate calls are optimized away. When I compile the fol
I'm learning ARM inline assembly, and is confused about a very simple function: assign the value of x to y (both are int type), on arm32 and arm64 why different
I am trying to build a C ELF binary on linux and try to execute it directly on another machine. (Sent via scp linux command) The problem is that even when I bui
I have installed MinGW-w64 and MSYS2. But how do I change the HOME directory in MSYS2? So that when I type cd $home or cd ~ it goes to another directory that I
I have started programming practice on codechef and have been confused by the difference between C and C99. What does C mean here? Is it C89? Check the language
I have a shared library that I implemented and want the .so to call a function that's implemented in the main program which loads the library. Let's say I have