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

Disabling the "did you mean..." suggestions in GCC

Newer versions of GCC come with what I consider to be an irritating misfeature: they try to second-guess me, emitting useless "did you mean?" suggestions that drown out other warnings.For example:$ gcc...

View Article


C++ support of _Float16 [duplicate]

I want to do half-precision floating-point computations on Jetson AGX Xavier(with armv8.2 architecture) which supports half-precision floating-point natively. As _Float16 data type is an arithmetic...

View Article


Command cc not found : /bin/sh: 1: cc: not found

which gcc : o/p : /usr/bin/gccwhich g++ o/p : /usr/bin/g++which cc: o/p : nothingI have installed the build essential and gcc. But cc is somehow missing.Can anyone help me to install cc in this scenar

View Article

Cannot compile programs using TagLib

I was trying to compile my own program using TagLib (installed via instructions in their readme from the github repo). For sanity, I tried compiling one of their included examples, which gave me the...

View Article

Problem with installing/compilling Apache Lucy, C Bindings

Lucy search has sadly gone attic, and I can't make it work with the C bindings...# IMPORTANT: change variables FOLDER and PREFIX according to your system FOLDER=`pwd`/lucy_dist # must be absolute !...

View Article


Order of local variable allocation on the stack

Take a look at these two functions:void function1() { int x; int y; int z; int *ret; } void function2() { char buffer1[4]; char buffer2[4]; char buffer3[4]; int *ret; } If I break at function1() in...

View Article

'Compiler proper' command for C program

This is regarding the compilation steps mentioned in the Linux Journal article.The C program was compiled using cpp, cc1, as and ld commands in that article. I am able to execute the steps with cpp, as...

View Article

Why does gcc by default link crtbegin.o and crtend.o to every compiled...

In an effort to understand the in's and out's of a POSIX libc implementation I have been making my own for the past year or so now by nibbling at the edges of the Single Unix Specification implementing...

View Article


Integer cube root

I'm looking for fast code for 64-bit (unsigned) cube roots. (I'm using C and compiling with gcc, but I imagine most of the work required will be language- and compiler-agnostic.) I will denote by ulong...

View Article


Is there any GCC binary file for centOS I can get? [closed]

I am trying to download GCC binary file for Linux(centOS) and just unzip it to use without any installation process. I found GFortran here http://gfortran.meteodat.ch/download/x86_64/releases/ but it...

View Article

Unresolved overloaded function type in gcc

I am trying to pass a function template as an argument to another function as seen in the example below. #include <iostream> template <typename T> decltype(auto) foo(T t) { return t; }...

View Article

Is it possible to get clang or gcc to generate a list of global variables,...

I have seen in the past output from a compiler where it would "unzip" nested global structs and variables into a file, along with their variable types and size - this allowed us to give human readable...

View Article

Data still available after using free function

I have some problem. I need to write function (ft_list_clear), that delete all elements from selected element in linked list. The function is work correctly: after using this function, data not in the...

View Article


long long int vs. long int vs. int64_t in C++

I experienced some odd behavior while using C++ type traits and have narrowed my problem down to this quirky little problem for which I will give a ton of explanation since I do not want to leave...

View Article

Image may be NSFW.
Clik here to view.

MinGW Installation Manager shows wrong repository version

MinGW Installation Manager incorrectly shows the repository version as 6.3.0-1. The most recent version is 9.2, as you can see in https://gcc.gnu.org/releases.html. How can I obtain the correct version?

View Article


why must gnu binutils be configured for a spefic target. What's going on...

I am messing around with creating my own custom gcc toolchain for an arm Cortex-A5 cpu, and I am trying to dive as deeply as possible into each step. I have deliberately avoided using crosstool-ng or...

View Article

How to implement std::accumulate in C [closed]

I need the functionality of the std::accumulate function from the C++ "numeric" library but I am working in C. I still have a rudimentary understanding of the differences in the c/c++ compilers, so I...

View Article


Libcap filter is not filtering the right packets

I am trying to do 'rst hijacking' by using a c script with libcap and libnet included. I use libcap to sniff all packets coming from and going to a host given as input to the program via the...

View Article

Build error "ISO C++ forbids zero-size array ‘f_handle’ [-Wpedantic]" only...

I'm using the catkin command line tools to build benchmark_catkin, which is a catkin wrapper for Google's benchmark. The build uses a CMakeLists file and always worked fine so far on Ubuntu 18.04. I'm...

View Article

GCC dump preprocessor defines

Is there a way for gcc/g++ to dump its preprocessor defines from the command line? I mean things like __GNUC__, __STDC__, and so on.

View Article
Browsing all 21994 articles
Browse latest View live


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