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

Mixed static and dynamic link on Mac OS

I want to use gcc to produce a shared library, but i want to link some other libraries it depends on statically. Now to produce the "standard" dynamically linked output file i usegcc -dynamiclib *.o...

View Article


gcc: error: unrecognized command line option

I'm trying create an u-boot image file. But have i have some error.gcc version: 7.3.0make PATH=/opt/CodeSourcery/Sourcery_G++_Lite/arm-2011.03-41-arm-none-linux-gnueabi:$PATHexport...

View Article


Using libpng for Ubuntu

I can't compile an open-source project that uses libpng under Ubuntu using gcc.I've installed with apt-get libpng3 and libpng12-dev, but autoconf says that 'libpng' isn't installed yet.How to make...

View Article

How to make traits to accept a parameter pack?

I define some type traits like this:template <typename T>struct has_something{ static constexpr bool value = false;};template <> struct has_something<int>{ static constexpr bool value...

View Article

Why are gcc and clang not hoisting strlen out of this loop?

Consider the following code:#include <string.h>void bar(char c);void foo(const char* restrict ss) { for (int i = 0; i < strlen(ss); ++i) { bar(*ss); }} I would expect the strlen(ss) to be...

View Article


What is the effect of --start-group --end-group for dynamic libraries?

Let's say I have a dynamic library (.so).What happens if I link to it using --start-group--end-group?Is it treated as an archive, so that all necessary symbols are "physically" included in my output...

View Article

GCC behaves differently on Arch Linux

I'm a newbie in Arch Linux. I've tried to compile IRAF package from github and I've got multiple definition error./usr/bin/ld: xppcode.o:/home/nastya/iraf/unix/boot/spp/xpp/xppcode.c:109: multiple...

View Article

Image may be NSFW.
Clik here to view.

Inifinite reload in GCC [closed]

I am doing the instruction extension of riscv in GCC,I have a problem of reload. The compiler just keep reloading during the compilation. Can anyone help me with that?

View Article


This piece of code is giving segmentation fault [closed]

Why is this code giving segmentation fault after printf("9\n"). Basically the code crashes as soon as the while loop starts. Can anyone tell me how to fix it? Consider I called the...

View Article


Gfortran: Non-backwards compatibility

I have some legacy Fortran code (Several hundreds of lines long). The code works fine in older versions of GCC (6.3) at the uni, but on newer versions it returns NaN.What options can I add to modern...

View Article

How to visualize the pointers in the code snippet?

I am finding it difficult to visualize this piece of code. I cannot seem to find the ans to this.I did get the ans forprintf("**r = %d\n",**r);printf("**s = %d\n",**s);but other variables are not...

View Article

Export C function name to DLL/SO with special chars using Gcc

Is there any way to export a function to a shared library using special characters with Gcc in a native manner without ad hoc data structure? For example, I need to export "LibraryExportFunc" with the...

View Article

OSX Catalina - GCC/PIP compilation issue

I'm trying to install a tool on my computer via pip on my Mac and have been having issues. I've seen suggestions on StackOveflow to install the Command Line Tools, to run variants of xcode-select...

View Article


GCC issue with -Ofast?

I have a question about the latest GCC compilers (version >= 5) with this code:#include <math.h>void test_nan ( const float * const __restrict__ in, const int n, char * const __restrict__ out...

View Article

Building gcc 8.3 [Makefile:955: all] Error 2

I've been trying to build a specific version of GCC (8.3.0) on a new Ubuntu 20.04 machine. However, when I follow the steps at the following link: https://gcc.gnu.org/wiki/InstallingGCC I run into a...

View Article


Why can't GCC compile assembly produced by CLANG?

So, I noticed that CLANG produces assembly that can't be compiled with GCC. For instance, for a simple "Hello world!" program in C, CLANG produces the following assembly: .text .file "hello.c" .globl...

View Article

Meteor Application Fails to Find Fibers Binary; Yet NPM Built a Different One

I am deploying my Meteor bundle to a similar Ubuntu 18.04 system as development. After running meteor (starting the application), I get the following error:## There is an issue with `node-fibers`...

View Article


C compiler cannot create executables (installing Cocoapods)

While installing RNPermissions and its dependencies I run into an error. Seems to be a problem with my compiler or the package that is being installed.The error: checking whether the C compiler...

View Article

I emuator the d-link camera firmware fail and how to archive the firmware...

1.I use the version of fimware is the v1.15.122.I emulator the firmware fail, then i create the folder3.But i also failed! Then i compiler the...

View Article

Packaging and Shipping GCC Compiler with all dependencies to AWS Lambda

I want to take the GCC Compiler that is on my machine and all its dependencies and zip them up in a deployment package that I can send off to AWS Lambda (That way I can use a Lambda to compile C code)....

View Article
Browsing all 21994 articles
Browse latest View live


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