Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Browsing all 22016 articles
Browse latest View live

How to compile GCC for android?

Is there any way to compile GCC for android? Basically, have the GCC compiler accessible in an android terminal emulator and able to compile a binary that will run on android from a C or C++ source...

View Article


how to install devtoolset-8 / GCC 8 on Amazon Linux 2

On an Amazon Linux 2 Docker image, "yum install gcc" installs gcc 7.3.1. I want to install gcc 8. It seems it normally can be installed as part of "devtoolset-8"...

View Article


When is the bloom filter in .gnu.hash used in an ELF file?

The .gnu.hash. section in elf binaries contain a bloom filter for dynamic symbol lookup. However, when I create simple binaries the bloom filter seems to be unused and empty.Why is there no bloom...

View Article

Error while installing mysqlclient in django project on cPanel

I've been trying to solve this problem for a couple of days. I am trying to put my Django project in a venv on cPanel and install mysqlclient. So after setting up my Python (version = 3.7.8) on Cpanel,...

View Article

XCode 4 - using GCC 4.0 to compile?

Code coverage for xcode 4 only works on GCC 4.0.How can I set my compiler to use GCC 4.0 instead of GCC 4.2.Do i need to download 4.0 ?

View Article


libstdc++.so.6: version GLIBCXX_3.4.20 not found

First of all, know that I'm very new to c++ and Ubuntu.I have a program that I am trying to compile using GCC (my version is gcc 4.8.4) by using a makefile.The problem is that the executable file is...

View Article

Functionally achieve --ffunction-sections from assembly [closed]

I'm linking against a static library that I don't have the original source code to, and it's absolutely critical that I produce the smallest binary. Although unused .text sections from this library get...

View Article

Is “gcc” on macOS actually “clang”? [duplicate]

Does macOS have clang and gcc at the same time, but they are actually the same thing?When I ran the following command:gcc -vI discovered that "gcc" is actually "clang", as shown in the screenshot...

View Article


How does GCC's '-pg' flag work in relation to profilers?

I'm trying to understand how the -pg (or -p) flag works when compiling C code with GCC.The official GCC documentation only states:-pgGenerate extra code to write profile information suitable for the...

View Article


error with config gcc for setting up atheros csi tool openwrt

I am currently trying to setup openwrt on ubuntu virtual box but there is an error with config the file the gcc, verison is the latest and its installed when i run make menuconfig command this is the...

View Article

Linux gcc wrap option: issue in linked library

Good morning,I have the following situation:I have a library middleware.so that provide a wrapper for a external library boughtLib.somakefile of middleware.so link dynamic library boughtLib.so and...

View Article

Does std::unique_ptr support fancy pointers?

Can std::unique_ptr manage pointers only, or fancy pointers (pointer-like types) too?I assume "fancy pointers too", because for resources like files/sockets, fancy pointers can be a great tool. And...

View Article

Speedup float128 ops

We need to use __float128 in c++ provided by gcc on Linux for some high performance code with matrices that have extremely bad condition number (so we can still have 16 non-noise digits in the solution...

View Article


Why do I get linker error instead of no input error

I get linker error on clang command even if I did not provide any source codes.$ clang/usr/bin/x86_64-pc-linux-gnu-ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../lib64/Scrt1.o: in function...

View Article

(Cortex M4) Bad section alignment in ELF file

we have a strange issue on a Cortex M4 MCU. The compiled Firmware works if the binary is loaded with ST-LINK in the correct section, but using C-Lion and OpenOcd, The FW load operation, load also the...

View Article


Qt 5.1.1 compiler setup on Ubuntu

I have a clean install of 64bit ubuntu, I downloaded Qt 5.1.1 for linux 64 bit from http://qt-project.org/downloads, ran the .run file, installed it and gcc which is included in that download, opened...

View Article

Vectorize __float128 dot product with SIMD/AVX

If I have in C++11 (on Linux, with gcc on Intel Xeon) two __float128* arrays A and B (fixed size, fits entirely in the cache), do you know of/can provide a code that makes the __float128 dot product of...

View Article


How to install cross compiler (on ubuntu 12.04 LTS) for microprocessor SA1100?

Can someone please tell me how to install the cross compiler (programming language C) for the SA1100 microprocessor? I have ubuntu 12.04 LTS. I´m a complete noob to Linux, I just installed Ubuntu...

View Article

Compile-time check for -fsingle-precision-constant

I learned from the accepted answer toMake C floating point literals float (rather than double) and it's discussion,GCC provides the compiler flag -fsingle-precision-constant to force floating point...

View Article

I found a strange phenomenon in my SPSC with lock-free

I tried to implement a SPSC with lock free tech And got a quirky Segmentation fault. the code following:#include <iostream>#include <thread>#include <vector>#include...

View Article
Browsing all 22016 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>