install and use GCC in windows 7 x64
I am new to GCC, don't know much about it. I want to install it on my Windows 7 64bit PC and use it for C, C++ and Java. The latest version is GCC-4.8.0. In their mirror links, I am getting option to...
View ArticleIs there a compiler flag to make newer gcc versions build like old ones did?
I am using MSys2/MinGW on Windows 7 to build an old project. MSys2 only uses the latest version of gcc and building the project with gcc v9.1.0 fails because it can't find an overloaded "<<"...
View ArticleHow to get GCC9.x or latest gcc with Go compiler on a windows 2000 machine
I need to build a tool written in Go. Go doesn't support windows 2000 so I want to fall back on latest GCC compilers with built in support for Go (gccgo). I have cygwin 1.7 on windows 2000 machine...
View Articlearm-none-eabi-gcc: error: unrecognized command line option '--cref'; did you...
I am using arm-none-eabi-gcc for STM32 I am trying to generate cross-reference table by passing option '--cref' to the linker, but I get this error arm-none-eabi-gcc: error: unrecognized command line...
View Articlestatic function with no prototype (AIX compiler allowed, gcc doesn't)
I'm attempting to port a large set of modules from AIX to Linux. Unfortunately, the AIX xlc compiler allowed you to define a static function and use it prior to the definition with no prototype. Not...
View ArticleCopying/moving an object in gcc breaks its member lambdas
Let's say, there is a simple polymorphic relationship:class base {public: void update() const { updater(); } void accept(visitor const &visitor) { visitor_acceptor(visitor); }protected:...
View Articlearm-none-eabi-gcc very slow but time report say that is fast on windows
I m using gcc for arm on windows but it is very slow :compiled file:#include "stdint.h"int main ( int argc, char **argv ) { // code return 0; // Indicates that everything went well.}Command...
View ArticleLink errors when using -flto and -g3 (arm-none-eabi)
I'm trying to compile some code for an Cortex M4 using LTO and -g3$ arm-none-eabi-gcc --versionarm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release)...
View ArticleInstalling gcc on s390x
I need a C compiler on my s390, which runs RHEL 7.6. When I do "yum list | grep gcc", I have the following:libgcc.s390x 4.8.5-36.el7 compat-gcc-44.s390x 4.4.7-8.el7 compat-gcc-44-c++.s390x 4.4.7-8.el7...
View ArticleHow to change the start/main entrypoint of x86-64 assembly with NASM?
I have this:$ make buildread.o: In function `_start':read.asm:(.text+0x0): multiple definition of `_start'/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o:(.text+0x0): first defined...
View ArticleVariably modified at file scope [closed]
How can I fix this error? It is caused by initializing my arrays pgAccess, pgArray, and pgRequest to variable sizes that are all global variables used throughout the program. I know there may be some...
View Articlewhile compiling inline assembly in c using gcc with -g flag compiler is...
calling fucntions from main global declarations int A=0, B=0, C=0;void load(){ system("clear"); printf("Enter 2 values: "); scanf("%d %d",&B,&C); __asm__ __volatile__("movl %1,%%ebx;""movl...
View ArticleCompiling LIBSVM for Matlab R2016a
I want to use LiBSVM with Matlab R2016a under Windows 7 64 Bit with the MinGW64 compiler and the precompiled mex files didn't work for me.When I tried to run the standard make file that comes with...
View ArticleBuilding GCC make: *** [all] Error 2
I am trying to set up a cross-compiler for i686-elf on Ubuntu following the OSDev GCC Cross-Compiler Tutuorial. However, the code to set up GCC fails to build every time. I know my sources are not out...
View ArticleCompiling with MinGW gcc Makes windows defender suspect of virus
This never happened to me before, but today I compiled a program with MinGW gcc and windows defender thought that the executable was a torjan, more specifically...
View ArticleError compiling tensorflow from source
After configuring tensorflow i run :$ bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package and I get :WARNING: /home/f390/tensorflow/tensorflow/core/BUILD:1634:1: in...
View ArticleGCC -l option across specified in case of a high number of libraries
Maybe i'm missing something but when i compile my program with shared libraries *.so i always have to use -llib for each and every library im using.Now i've a project that links against 40 of them...
View Articlegcc compilation flags when targeting linux from Visual Studio
I'm developing c++ code on Visual Studio 2019 (Version 16.5.4), and for the build i'm targeting Linux Ubuntu 18.04 with gcc 7.5 - both on a remote machine via ssh, and on my local machine via WSL2. In...
View ArticleImplementation of __builtin_clz
What is the implementation of GCC's (4.6+) __builtin_clz? Does it correspond to some CPU instruction on Intel x86_64 (AVX)?
View ArticleLinking Intel MKL under cygwin
I have to use intel mkl in some optimazation problems, thus test the following standard code with cygwin under Win7 64bit make sure I have set it up correctly: #define min(x,y) (((x) < (y)) ? (x) :...
View Article