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

UCRT vs. MSVCRT for GCC 14.x

I am using MinGW64 together with Codelite and have just downloaded the latest GNU GCC version packages 14.1 and 14.2. For 14.1 I found 2 packages (UCRT and MSVCRT), for 14.2 I got only the UCRT version...

View Article


Is this unstable behavior of execve after vfork a gcc bug?

So the object of this question is to determine, if possible, whether or not I'm looking at the signature of a compiler bug from oddball code brokenness. I have done as much as possible to eliminate...

View Article


Why does gcc keep failing to build within MXE for Apple Silicon?

I used this command to initiate the build after cloning the mxe git:make gcc MXE_TARGETS=x86_64-w64-mingw32.staticIt ran smoothly, until it hit this error:[build] gcc x86_64-w64-mingw32.staticFailed to...

View Article

Any ideas on how to resolve this conflicts error below?

I'm trying to install gcc4-4.1.2-44.EL4_8.1.i386.rpm on my redhat 5.x system but need a lot of dependencies.dependency - kernel-headers-2.2.19-1.0.291.i386.rpm, installed okaydependency -...

View Article

How to enforce the struct bit order with the GCC compiler?

I was wondering if there is a GCC C Compiler directive that allows me to determine the bit order for packing of a structure? Something to the likes of:#pragma bit_order leftThe rationale for such a...

View Article


How do I compile the asm generated by GCC?

I'm playing around with some asm code, and something is bothering me.I compile this:#include <stdio.h>int main(int argc, char** argv){ printf("Hello World\n"); return 0;}with gcc file.c -S -o...

View Article

Why is Premake5 producing incorrect file separator on Windows?

I am trying to use premake5 to build a simple C project using Visual Studio Code on Windows and I'm getting the below error:$ make config=release_win64"==== Building calc (release_win64) ===="Creating...

View Article

Compiling Sundance-4.73

I am compiling Sundance-4.37 using gcc 3.4.6. SUNDANCE (Sentence UNDerstanding ANd Concept Extraction) and autoannotate are software developed by the NLP laboratory at the University of Utah. Sundance...

View Article


Installing f2c on Mac OSX 10.6.8

I used f2c builds from http://hpc.sourceforge.net/buildf2c and http://hamishrickerby.com/2009/02/20/installing-f2c-on-a-mac/#disqus_thread, but none of them worked.I followed the installation...

View Article


Dealing with "C compiler cannot create executables" in Cygwin

Whatever I try to compile in Cygwin I get the following output:checking for mingw32 environment... nochecking for EMX OS/2 environment... nochecking how to run the C preprocessor... gcc -Echecking for...

View Article

How did MinGW port GCC to Windows?

I'm trying to understand how MinGW ported GCC to Windows. I know that GCC originates from the Unix world and, for myriad reasons, cannot simply be copied across to Windows as an executable nor built...

View Article

Update GCC on OSX

So I am a new programmer and I just installed XCode on my Macbook to get the GCC. I think Xcode is the only way for getting GCC on OSX. Now when I run my Hello World application, in C++, g++ comes up...

View Article

likely/unlikely equivalent for MSVC

GCC compiler supports __builtin_expect statement that is used to define likely and unlikely macros.eg.#define likely(expr) (__builtin_expect(!!(expr), 1))#define unlikely(expr)...

View Article


libcurl compile fail, OpenSSL could not be detected

I compiled openssl using static mode using commandexport CC="gcc -O3 -fomit-frame-pointer -fno-unwind-tables -fdata-sections -ffunction-sections -fno-math-errno -fPIC"; ./config no-err shared...

View Article

Image may be NSFW.
Clik here to view.

msys mingw64 compiled library: A dynamic link library (DLL) initialization...

I compiled native library using msys with compile flags -s -fomit-frame-pointer -fno-unwind-tables -fdata-sections -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -fstack-protector...

View Article


Invalid operands to binary

I have a method to check weather a number is even or odd: -(BOOL)numberIsEven:(unsigned int *)x { if (x & 1) { return TRUE; } else{ return FALSE; }}however whenever I compile it I get the...

View Article

Structure of SSE vectorization calls for summing vector of floats

This question was brought up by the recent question Why won't simple code get auto-vectorized with SSE and AVX in modern compilers?. Not having delved into SSE intrinsic, the question arose, "How best...

View Article


Forward-declaration of enum member of template-specialization - fails with GCC

I know that, generally, we can forward-declare enums in C++11.So, why does this:enum kind_t { kind1, kind2 };template <kind_t Kind> struct foo {};template <> struct foo<kind1> { enum...

View Article

C++ Program Not Outputting Text in Windows Terminal Even After Successful...

So recently I've downloaded MinGW for my Windows laptop so I can use g++ to compile my personal C++ code, as I'm a CS student learning GNU utilities because long story short, it's what the curriculum...

View Article

Best way to strip off symbols

Last week I released the Linux and windows version of an application.And after the release we realized that the symbols were not stripped off, and my manager thinks (and I disagree) that it might allow...

View Article
Browsing all 22040 articles
Browse latest View live


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