What is the size and format of native representation (in hardware) of the...
I am studying numerical differentiation for my monography and, to have accuracy in my results, I need that information. I am not finding any official documentation about that.
View ArticleDebugger in C::B. Can't open cygwin.S
Hi I just discovered a quite weird behaviour of the debugger when declaring a simple two-dimensional array. It looks like it can't open a file cygwin.S in the library.Cannot open file:...
View ArticleCMake get dependent header files like gcc -M
I'm analyzing a CMake project and I want to get all the header files that a source file depends on. Is there a tool or a command like gcc -M or g++ -M to list all the dependencies of one file in the...
View Articleerror when running ./configure installing Kerberos v5
i'm trying to install kerberos on ubuntu 18.04. as the manual in this link said the steps are:cd /u1/krb5-1.3/src./configuremakewhen i run ./configuration it checks some dependencies but cant find...
View Articlehow to hide local symbol for linux static library
I'm going to ship a to static library to a customer.To maximize the privacy of the library I have restricted symbols for the static library using the technique provided by @ypsu Symbol hiding in static...
View ArticleGCC with -march : invalid switch
OS: Ubuntu 16.04 s390xGcc: Build from source v7.3.0 using steps mentioned below:mkdir gcccd gccwget https://ftpmirror.gnu.org/gcc/gcc-7.3.0/gcc-7.3.0.tar.xztar -xf gcc-7.3.0.tar.xzcd...
View ArticleWhy are so many LDR and STR instructions generated with this simple code?
I have a simple C program: int main(){ unsigned int counter = 0;++counter;++counter;++counter; return 0;}I am using the following compile flags: arm-none-eabi-gcc -c -mcpu=cortex-m4 -march=armv7e-m...
View ArticleEscaping $ORIGIN for libtool based project
For projects that don't use libtool I have successfully set RUNPATH withLDFLAGS="-Wl,-rpath='\$$ORIGIN/../lib64',--enable-new-dtags". However, for libtool based projects I get RIGIN/../lib. Is it...
View ArticleIs there a way to get gcc to output raw binary?
Is there a set of command-line options that will convince gcc to produce a flat binary file from a self-contained source file? For example, suppose the contents of foo.c arestatic int f(int x){ int y =...
View ArticleGCC compiler does not search sub-directories when looking for header files
I can't make gcc compiler recognize complex paths in "includes". Here's my toy "main.cpp" file (note the sub-directory in the include statement):#include "sub/testlib.h"int main(){ testlib(6); return...
View ArticleHow can I correctly pip install cython_bbox on Windows?
I want to pip install cython_bbox on my windows, however, an error happened!I have anaconda with python 3.7 in my computer before, and in its envs I created a new environment which has python3.6 to pip...
View ArticleWhy is it impossible to create an std::set in C++? [duplicate]
I have a class with std::set<const std::string> members which compiles fine in Clang 10.0.1 on macOS, but does not with GCC 5.4.0. MRE below#include <set>#include <string>class Foo {...
View ArticleIs "unix" restricted keyword in C?
This code does not compile for me on GCC version 4.3.2 (Debian 4.3.2-1.1) main() { int unix;}I've checked the C keywords list and "unix" is not one of them.Why am I getting the following...
View ArticleConflicting versions of GCC compiler with Python 2.7.17
I am able to run a python script on a macOS device which has the following gcc version with Python.However on a Ubuntu 18 machine, the following configuration is availableAnd on a Windows 10 machine,...
View ArticleLinux undefined reference to error with class [duplicate]
I have a undefined reference to error when i try to create class object into main function. I know it's a linker error and I'm using g++ while I try to compile my source. But when I look into common...
View Articlesetup script exited with error: command 'x86_64-linux-gnu-gcc' failed with...
When I try to install odoo-server, I got the following error: error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1Could anyone help me to solve this issue?
View ArticleError in reading input from another file to a c program
I had been trying to read input from a file to a c code, but something is going wrong. Program is able to read input but not displaying expected output. Here is my c...
View ArticleWhat causes gcc invalid option for mtune?
I use ODB Library in my programm. By compiling I get the following message:[ 1%] Generating ../odb_gen/XXX_odb.cppcc1plus: error: bad value (‘/dev/null’) for ‘-mtune=’ switchcc1plus: error: bad value...
View ArticleMAC OSX can't find gcc installed with homebrew
I installed homebrew, then gcc with homebrew. Path -bash: /opt/anaconda3/bin:/opt/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/Library/Apple/usr/bin:No gcc in...
View Articleis there clang alternative to gcc's -s flag?
I am trying to find an -s flag alternative for clang. The s strips all symbols in file, which results in extremely small files. (from 300 kb to 18 in basic hello world). the problem is, that clang...
View Article