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

CUDA incompatible with my gcc version

I have troubles compiling some of the examples shipped with CUDA SDK.I have installed the developers driver (version 270.41.19) and the CUDA toolkit,then finally the SDK (both the 4.0.17...

View Article


Why is gfortran able to optimize recursive functions by "diving deeper" into...

While exploring this collection of "language benchmarks" (I know that these kinds of benchmarks have severe limitations. That is not the point of this question), I noticed that the Fortran...

View Article


How to get CMake find_package to find and use PkgConfig for cross-compilation

I am trying to cross-compile an application for a Beaglebone black.I've successfully compiled the application directly on the Beaglebone while commenting out the cross-compile related section in my...

View Article

Link the OpenMP library statically in C/C++

I have a simple C++ program that does nothing:int main() { return 0; }I am trying to build this program completely statically using the following command:g++ -o c c.cc -staticEverything works fine....

View Article

Do I need to compile the header files in a C program?

Sometimes I see someone compile a C program like this:gcc -o hello hello.c hello.hAs I know, we just need to put the header files into the C program like:#include "somefile"and compile the C program:...

View Article


Official arm-gcc generates register_tm_clones/links __TMC_END__

I've upgraded my arm-gcc toolchain to the latest one provided by ARM. I've been using older versions in a freestanding (baremetal) environment mainly on STM32F1xx for quite a while.My linker script is...

View Article

Are locale specific white-spaces skipped with `strtod()` compliant?

Is my C library compliant?In testing strtod(), my code reported an interesting inconsistency:strtod("\240" "123", ...) --> 0.0.In locales that identified character 160 '\240' as a white-space,...

View Article

How to resolve gcc bootstrap error "Where has __float 128 gone?"

I am trying to install gcc 4.7.3 or greater. The specs of my machine are as follows.OS X 10.8.4Darwin 12.4.0gcc 4.2.1, configured...

View Article


Fail to load debug symbols from external file when debugging with gdb

I am investigating how to use gdb for debugging with symbols in external file.I build a small executable that depend og and equally small shared library.I build the executable with cmake producing the...

View Article


Image may be NSFW.
Clik here to view.

GNU RISC-V Embedded GCC throws "x ISA extension `xw' must be set with the...

I can build the c-files from my WCH CH32V003F4P6 microcontroller project with the GNU RISC-V Embedded GCC v8.2.0 toolchain shipped with the Eclipse IDE from WCH (MounRiver Studio). However, if I try to...

View Article

Questions about compilers [closed]

When a compiler compiles my code in text form, it converts the text code to a low level code, in the case of the GCC in codeblocks, assembly.Can I run this compiled program directly on my machine,...

View Article

Fake-Positive Bit-defender problem Gen:Variant.Tedy.304469

#include <stdio.h>#include <stdlib.h>int compteAppels() { printf("hey");return 0;}int main(){ int i, nbAppel; nbAppel = rand(); for (i = 0; i < nbAppel; i++ ) { compteAppels(); } return...

View Article

Getting the error `include/linux/nmi.h:94:20: error: two or more data types...

The build output from make looks like so near the termination: CC kernel/exec_domain.o CC kernel/panic.oIn file included from kernel/panic.c:25:include/linux/nmi.h:94:20: error: two or more data types...

View Article


Issue linking Assembly, main C and Makefile - /usr/bin/ld: main.c:(xxx):...

For a personal project about learning assembly, I'm trying to make two libraries (one in C, one in Assembly). Purpose is easy, write some simple functions in C then translate in assembly.The...

View Article

GCC gprof line-by-line error "somebody miscounted"

I would like to use gcc's gprof line-by-line profiling. But after compiling my program, running it and executing gprof -l binary_name I get messages like:gprof: somebody miscounted: ltab.len=9403...

View Article


GCC optimization on unpacked struct failed?

Why GCC can't optimize this code ?struct node { node() = default; node(const node &) = default; node(node&&) = default; node& operator=(const node &) = default; node& operator =...

View Article

How to produce a compile-time error when caller passes a bool type to a...

Question:What changes to the code below can be made to cause a compile-time error to occur if a bool type is passed to a function taking a float, with the following constraints:Without changing the...

View Article


gcc compiler in cygwin does not execute properly (gives up?)

The gcc compiler in cygwin does not execute properly (gives up?) from any folder but /bin. For instance, attempting to compile my code from /bin works, but from /bin/myprogram using the verbose option...

View Article

storage of bool in c under various compilers and optimization levels

trivial example program:#include <stdio.h>main(){ bool tim = true; bool rob = false; bool mike = true; printf("%d, %d, %d\n", tim, rob, mike);}Using the gcc compiler it appearers, based on...

View Article

Data dependencies using gcc dump

I have some C/C++ code.I want to get information about the data dependencies within a function e.g.If there is a variable declared in line 1 and used in line 2 then i want to know this dependency.I...

View Article
Browsing all 22421 articles
Browse latest View live


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