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

std::bind issue in gcc4.8.5

I am running same project on gcc 4.7.7 its running fine but when I try to run it on gcc 4.8.5 it's giving error: no known conversion for argument 2 from‘std::_Bind_helper::*)(unsigned int, void...

View Article


preserve preprocessor directives as comments with `gcc -E`

Is it possible to achive something like this with gcc -E?src.c:z #define FOO bar z actual preprocess result:# 1 "src.c" # 1 "<built-in>" # 1 "<command-line>" # 1 "src.c" z z desired...

View Article


Invalid argument error compiling stdio.h / iostream

[Solved] Switched from the Ubuntu app to the Kali app, and that compiler works fine.I'm suddenly having trouble compiling anything that includes these header files because of some error from inside the...

View Article

can't compile OpenFOAM v1912 with intel icc and intelmpi

! UPDATE on 28 Feb, 2020: The problem is solved. please refer to :https://develop.openfoam.com/Development/openfoam/issues/1608SummaryI'm new to OpenFOAM and I'm trying to compile OpenFOAM-v1912 using...

View Article

Can I detect and change the current data alignment setting for structures in...

My question is based off a part of this wiki answer to the question of Why isn't sizeof for a struct equal to the sum of sizeof of each member? (emphasize mine):"IMPORTANT NOTE: Both the C and C++...

View Article


Is it possible to define _Generic's association-list dynamically?

I have a template like this:template.h ---------- // Declare a function "func_type()" void JOIN(func_, T)(T t) { return; } #undef T which I use like this in order to generate the same function for...

View Article

Range-based for loop without specifying variable type

I just discovered that this compiles fine with no error (gcc 5.3):std::vector<whatever> vec; for( e: vec ) // do something All the compiler does is issue this warning:warning: range-based for...

View Article

Problem of converting byte order for unsigned 64-bit number in C

I am playing with little endian/big endian conversion and found something that a is a bit confusing but also interesting.In first example, there is no problem using bit shift to convert byte order for...

View Article


Is it safe to compile programs using cryptography with -Ofast?

I'm building a toy cracking program for self teaching purposes in C. I want the brute forcing to run as fast as possible, and one of the considerations there is naturally compiler optimizations....

View Article


How to prevent Atmel Studio gcc 6.3.1 from optimizing 4-byte memcmp() to a...

Running Atmel Studio with its provided gcc 6.3.1 to build firmware for an Atmel/Microchip SAMV70 (ARM Cortex-M7) chip. I have code that compares a 4-byte input array to a 4-byte local array using...

View Article

configure CXXFLAGS refuses to accept more than one include path

I am trying to build a project that requires two include paths. My command is: ./autogen.sh --prefix /usr/ --libdir /usr/lib/x86_64-linux-gnu/ CXXFLAGS="-I${TensorflowPath}...

View Article

How to use pip install where one requirement has dependency on version on...

I am installing an egg packaged for pip, inside my virtualenv, under Python 2.7.2. The egg has 16 requirements, one of which (pycryptopp 0.5.29) is known to fail with gcc-4.6 and hence must be compiled...

View Article

how to dump the .dynsym section of an ELF file? [duplicate]

As far as I know the .dynsym section is a bunch of ElfN_Sym structs arranged sequentially, so I'm trying to dump the st_name of all symbols but apparently there's something wrong with the way I'm...

View Article


How to build a static nft with autotools

I'm trying to build a static nft, these are the ways I have tried, but to no avail. In all cases, ldd shows libmnl and libnftnl are still dynamically linked (I'd like libc still be dynamically...

View Article

Prevent GCC from optimizing away a looped write to memory mapped address

I've got an address which points to a control port like so (for context I'm working on a Sega/Megadrive game):volatile u32 * vdp_ctrl = (u32 *) 0x00C00004; And an array of initial values I want to...

View Article


Why does GCC only complain about an unsigned int argument being used with %i...

sscanf(3) says (emphasis mine):i Matches an optionally signed integer; the next pointer must be a pointer to int. The integer is read in base 16 if it begins with 0x or 0X, in base 8 if it begins with...

View Article

Where is the header file on Linux? Why can't I find ? [duplicate]

Possible Duplicate:How to implement getch() function of C in Linux?What is the equivalent Linux version of the conio.h header file from MS-DOS?Is there a way to replace its functionality? e.g....

View Article


Why does this code take so long to compile with g++?

Consider the following code:template<int i> class A { typedef A<i-1> B; B x, y; }; template<> class A<0> { char m; }; int main() { A<LEVEL> a; } When benchmarking its...

View Article

Unable to install build-essential in ubantu 16 [closed]

When I do, which gcc, terminal says, gcc not found. After some searches, this page suggests to install build-essentialbut running sudo apt install build-essential gives me,Reading package lists... Done...

View Article

libs building serious errors under macOS (ld, arch, ...)

Since I restored my macOS machine, I had to reinstall everything (gcc, autoconf, ...)I've been attempting to build several projects like libimobiledevice or anything else that build a .a file but every...

View Article
Browsing all 22024 articles
Browse latest View live


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