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

A specific Boost regex works fine, but if I use it inside a Boost unit test...

Everything worked fine with my project when using Boost 1.58 and GCC4.9, after deciding to upgrade it to Boost 1.72 and GCC9 I have started to have this problem.I've been looking into this for a while...

View Article


Compiling .asm and .c files gives "i386 incompatibility" problem when trying...

I'm trying to accomplish an exercise, which goal is to print a message without C standard library, using own nasm code instead. I've successfully compiled two .asm and one .c file with following...

View Article


cmake mingw ignoring -Wl,--gc-sections

I have a problem with this code in C++:void f(); void g() { f(); } f() is not defined anywhere in the project and g() is not called anywhere. I use the following cmake...

View Article

Dumping information about where macros have been used during preprocessing?

Both GCC and Clang allow you to dump all defined macros during preprocessing. However, I have not found an option to also dump information about where these macros are used in the code.Does either of...

View Article

How to resolve gcc compiler optimization-induced segmentation fault on centos...

I have a large C++ software project build with gcc. After adding some new code into the repository, one of the binary started to get Segmentation Fault on larger test data (no segfault on a few smaller...

View Article


How to install clik on ubunto

i trying to compile my code and i got this error:fatal error: cilk.h: No such file or directory 8 | #include <cilk.h> then i tried to install click like what they mentioned in step 4...

View Article

NS3 log Time precision

I am using NS3.20 to find the time stamps of packet being sent from a node to another node in a FAT-TREE topology using the commandNS_LOG= "*=level_info|prefix_func|prefix_time|prefix_node" ./waf --run...

View Article

Install gccgo for testing Protocol Buffers 3 along with Go

I'm trying to install gccgo for testing Protocol Buffers 3 with Golang...I have to confess that I'm back to dev after 8 years off (and I'm not a native speaker) so, thank you for your indulgence. Thank...

View Article


How to cross-compile an application with library dependencies for Yocto Linux?

I wrote an application on my laptop (Ubuntu 14.04) that depends on GStreamer and would like to cross-compile it for my Yocto Linux target (iMX6S-Wandboard). How do I cross-compile the application so...

View Article


C code doesn't do anything on linux, but works perfectly on windows? [closed]

I have a homework, which I have to present on Linux with gcc. But I wrote the code on windows in codeblocks (gcc here as well). It works perfectly on windows.On linux however, it doesn't. It compiles...

View Article

CMake and custom sdk (yocto+arm) for building target applications

I have received an SDK that is used to build c++/c applications for an embedded linux device. This is all new to me so some of my terminology may be wrong. I followed their instructions and the SDK...

View Article

Compiling clang from source with custom gcc - set default target

ProblemWhen I compile gcc I am setting --target=x86_64-mytoolchain-linux-gnu. Adjust for arm64 accordingly.I compile clang from source like so:mkdir build cd build cmake .. \...

View Article

Do all functions from a static library get linked into the final executable?

I am new to static libraries and just want to make 100% sure that what i'm doing is right. To make it short, i'll try to explain my question with this simple example:If in mylib.a i have defined the...

View Article


Difference between ebp based addressing and esp addressing

I have written some code to learn about the call stack. I've done this with some inline assembly for passing parameters on stack. I've compiled it with gcc 4.1.2(on CentOS5.4) and it works well, then I...

View Article

Using float, double arithmeetic causes warnings on arm

I have a device driver which was compiling fine using arm-linux-gnueabi- I added a few double and float operations into the code and I have been getting the following warnings at compilation:WARNING:...

View Article


cannot compile using gcc's same_type_p()

Based on this gcc doc [https://gcc.gnu.org/onlinedocs/gcc-7.1.0/gccint/Types.html#Types], I'm tring to use same_type_p() to compare the type of 2 variables:#include <stdio.h> int main (void) {...

View Article

Image may be NSFW.
Clik here to view.

cc1plus.exe libmpfr-6.dll. i just upgraded my mingw from 8.0.2 to 9.2 and...

I just upgraded MinGW to the new version for c++ 17 version, because in the old version I did have string_view. I did it for tutorial purposes, but now I getting this error.I attached a picture here:

View Article


gcc generates .h.gch files even though there's no .h files in compiler

We are making a makefile for a class project, and we are having problems with gcc generating .h.gch files. Looked around on stack overflow and apparently it is normally caused by either including .h...

View Article

Unable to compile FileZilla on MSys2: undefined reference errors

I am trying to compile FileZilla3 in my Windows system by following this.In the MSys2 terminal, the steps to be done are:cd ~/filezilla autoreconf -i ./configure --with-pugixml=builtin make make...

View Article

How can I tell the compiler/CPU to execute instructions back to back in...

How can I tell the compiler not to optimize and not to add any other instructions in between, and force the CPU to execute them back to back?For example I'd like the kernel module to execute write (or...

View Article
Browsing all 21994 articles
Browse latest View live


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