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

How to include "matlabengine.hpp" and "MatlabDataArray.hpp" files in gcc's...

I have a file named call_mat.cpp with two statements at its beginning:\#include "MatlabDataArray.hpp" and \#include "MatlabEngine.hpp"These headers files are not on "gcc" default search path. They are...

View Article


Newly built gcc not being used even after setting $PATH

My server has GCC4 and I need newer version, so I built GCC7.3.0 and added the path to the $PATH variable. After this, gcc -v and g++ -v points to the correct version:Using built-in...

View Article


What does mean the label generated from compiler?

compiler generates a gas, which has some strange labels (weird name) used for symbols:.file "a.c" .text .section .rodata.LC0: .string "string" .text .globl main .type main, @functionmain: pushq %rbp...

View Article

How do I force gcc to call a function directly in PIC code?

Consider the following function:extern void test1(void);extern void test2(void) { test1();}This is the code gcc generates without -fpic on amd64 Linux:test2: jmp test1When I compile with -fpic , gcc...

View Article

How to vectorize C loop, using arrays

Ahoy friends.Currently i'm working with an custom implementation of the Mersenne Twister, and i'd like to improve my understanding of vector operations.I got the following code:#define N 624#define M...

View Article


Gnome/msitools build failure with "No package 'libgsf-1' found" error

I have cloned "https://gitlab.gnome.org/GNOME/msitools/-/tree/v0.100" in my Centos7 host and trying to build, but facing following error and even though required package is already installed, it still...

View Article

pyqt5 download without apt and gcc

I am working on goembed sbcx-b3 board.i don't have my apt-get and gcc. I want to download the pyqt5 library. First of all, I had to install sip to download pyqt5. I had to install gcc in sip. I...

View Article

Riscv32-unknown-elf Linker Error after reading linker script : undefined...

I'm trying to compile and link a custom made c code to risc v project but I'm getting these error in the making:I'm new to this field so please excuse any...

View Article


Structured binding initializer form { assignment-expression } fails for array...

[dcl.dcl]/1 (final C++17 draft, N4659) describe the grammar of a simple-declaration as:[...]simple-declaration: - [...] - attribute-specifier-seq(opt) decl-specifier-seq ref-qualifier(opt) [...

View Article


How to use the __attribute__((visibility("default")))?

Reading Visibility in the GNU wiki, it is clear. Taking this example from C++ Tutorials// classes example#include <iostream>using namespace std;class Rectangle { int width, height; public: void...

View Article

Gcc 64 bits para C y cmpl [closed]

tendrán alguna referencia sobre como instalar el gcc de C para 64 bits en Windows 10?, Ya que solo encuentro referencias para el x86.Y otra preguntaLa operación cmpl puede operar registros de 64 bits?...

View Article

Does a compiler always produce an assembly code?

From Thinking in C++ - Vol 1:In the second pass, the code generator walks through the parse tree and generates either assembly language code or machine code for the nodes of the tree.Well at least in...

View Article

converting .c file to .o using processes

I have to make a project which asks me to create a program that will compile a C project by recursively descending into directories and launching processes which compile a file of code by calling GCC...

View Article


Compile all .c files in a directory using GCC compiler in CMD

Is there a way to compile all .c files in a given folder by using the command line with GCC compiler ?I've seen this page for Linux :...

View Article

"Array index in initialiser exceeds array bounds"

I would like to make use of C99 designated array initialisers to help make my code more self-documenting but I'm running into the problem described below.Suppose I have a enumeration and an array...

View Article


Image may be NSFW.
Clik here to view.

How to Install gcc 5.3 with yum on CentOS 7.2?

I am using CentOS 7.2When I use yum groupinstall "Development Tools", gcc version is 4.8.5, like this: I would like to install gcc 5.3How to approach this with yum?

View Article

What does the compiler error "missing binary operator before token" mean?

I recently got the following error when trying to compile with gcc:error: missing binary operator before token "("Web and SO searches came up with several specific examples of this error, with specific...

View Article


Overriding HIDDEN symbol-visibility with a gnu ld linker script

TL;DR: Can I use a GNU ld linker --version-script or some other method to promote selected symbols with hidden visibility (due to -fvisibility=hidden or an explicit __attribute__) back to default...

View Article

Q. FFMPEG - linux (Rasberry pi 4- Raspbian)- FFMPEG av_read_frame error

User environment-Raspberry Pi 4B 4G x2-arm32 & arm64-OS: Raspbian-gcc (Raspbian 8.3.0-6+rpi1) 8.3.0-ffmpeg version 4.1.4-1+rpt7~deb10u1 built with gcc 8 (Raspbian 8.3.0-6+rpi1)-IDE-visual studio...

View Article

Cannot read from /dev/parport by timeout

Please help with a question.I'm trying to resolve programm example for parport loopback wtire/read.While reading program skip first 6 symbols due to select timeoutand I can't understand what to do in...

View Article
Browsing all 21994 articles
Browse latest View live


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