Why do I have a pysam gcc error when installing package? [closed]
I was trying to install a package. Step1: wget https://raw.githubusercontent.com/rraadd88/beditor/master/environment.yml Step2: conda env create -f environment.yml Step3: source activate beditorStep4:...
View ArticleLinker script - Location counter and discard sections
I am following this hello-world boot sector program, which has the following linker script :ENTRY(mystart) SECTIONS { . = 0x7c00; .text : { entry.o(.text) *(.text) *(.data) *(.rodata) __bss_start = .;...
View ArticleConst overload unexpectedly called in gcc. Compiler bug or compatibility fix?
We have a much larger application that relies on template overloading of char and const char arrays. In gcc 7.5, clang, and visual studio, the code below prints "NON-CONST" for all cases. However, for...
View ArticleChange default ARM gcc option to thumb
I want to change the behavior of the ARM toolchain arm-linux-gnueabi-gcc in my Linux machine, that the compiled code will be in Thumb mode as default - same as passing the -mthumb flag.I came across...
View ArticleCompile C for Windows with MinGW
I installed the latest version of MinGW and trying to compile the project:\MinGW\bin\gcc.exe -O3 -flto -Wall -msse src/*.c -o noname -lm -lpthread But nothing happens. No errors, no exe files,...
View ArticleHow I make app menu in C language using GTK for Mac os?
First, look at this picture(App menus): https://help.apple.com/assets/5DE56E530946226A64A4CC4A/5DE56EA30946226A64A4CC52/en_US/5cb5e363a26cb7a4569902536c793598.png I have a window that is written in...
View ArticleCompiler out of heap space (gcc and msvc)
I am trying to remove duplicate types from a type list template<typename... Types> struct STypeList. This type list is constructed from other type lists and types like this:#define...
View Articlebuild linphone-bellesip failed at beaglebone black
I tried to build a linphone from the source code at https://github.com/ua3nbw-cf/linphone_arm in beaglebone black. When starting the section to build belle-sip, it stops and raises an error:...
View ArticleCompile C for different instruction sets and different OS [closed]
I am currently working on Ubuntu and I have a console app written in C that has to be compiled both for Linux and Windows.Also different executables should be created for different instruction sets -...
View ArticleWhy is GNAT (via GCC 4.7) a prerequisite for building GCC?
In the GCC installation prerequisites page, it says:GNATIn order to build GNAT, the Ada compiler, you need a working GNAT compiler (GCC version 4.7 or later). Questions:Is it a bit strange for GCC to...
View ArticleDifferent behavior between g++ and clang++ in nested classes
I noticed a different behavior between gcc 9.2.0 and clang++ 9.0.1. My code is as follows//header.hh ... template <typename T> class Outer { ... public: template <typename S> class Inner;...
View Articlestd::basic_istream::ignore hangs if delim MSB is set
Given the following snippet:#include <iostream> #include <sstream> int main() { std::stringstream str; str.put('a'); str.put('\x80'); str.put('a'); str.ignore(32, '\x80'); // hangs...
View Articlehow to fix: /bin/ld: cannot find -lgfortran error: ld returned 1 exit status
I am trying to compile a Fortran code (package) with gfortran in a Linux server, on which I have no root access. It has a Makefile and when I run make I get this error /bin/ld: cannot find -lgfortran...
View ArticleInvalid argument error compiling stdio.h / iostream
I'm suddenly having trouble compiling anything that includes these header files because of some error from inside the headers. I have never had issues with this before, and I don't even know what the...
View ArticleCan gcc make my code parallel?
I was wondering if there is an optimization in gcc that can make some single-threaded code like the example below execute in parallel. If no, why? If yes, what kind of optimizations are...
View ArticleError when compiling static PHP 7 install with PostgreSQL 10.11.3 support on...
Hopefully someone has some insight on this one. I attempted to compile PHP 7.4.2 on RHEL with only support for PostgreSQL enabled. I only need the static CGI and SAPI (php-fpm) executables for now. I...
View ArticleC object code file shows string values in plain text
I use gcc (on Ubuntu) to compile a c program that had few string values that I don't want the end user to know. Like strings used in authentication , a passcode file path / passcode etc. but when I...
View ArticleNS3 log Time precision
I am using NS3.20 to find the time stamps of packet being sent from a node to another node in a FAT-TREE topology using the commandNS_LOG= "*=level_info|prefix_func|prefix_time|prefix_node" ./waf --run...
View ArticleFinding pointer arguments with GnuCParser?
I'm trying to parse this fragment of C code:void foo(const int *bar, int * const baz); using GnuCParser, part of pycparserext.Based on this answer I expected to see some PtrDecls, but here's what I get...
View Articledeprecated mouse wheel event with csfml
Basically I have been programming in csfml and when I try to compile my code it will give me two warnings the first one would be: 'sfMouseWheelEvent' is deprecated [-Wdeprecated-declarations]and the...
View Article