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

How to include __emutls_get_address symbol in arm64 shared library?

I just compiled a shared library on Windows with clang++ to arm64 but, I got runtime error:09-25 17:59:40.601 11149 11175 E C03F00/MUSL-LDSO: relocating failed: symbol not found....

View Article


Code analysys shows an error, but the code compiles

In the following C code the code analysys (the one from C/C++ vscode extension) highlights an error on DEFINE_INDEXING_FUNCTION macro, but when I compile the code with GCC (gcc -Wall -Wextra...

View Article


modify GCC ".md" machine definition template

I'm now modifying the gcc's md file, for a mips(el) target. gcc src's version is 4.6.0.I want to modify the sign-extend insn generation.originally, mips use "lb"/"lh" instruction to sign-extend a...

View Article

Variable name 'xor' results in internal compiler error 'segmentation fault'!

Compiling this code int main(int argc, char **argv){ int xor = 0;}viag++ main.cpp results in:internal compiler error: Segmentation faultwithi686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build...

View Article

Creating linux cross compiler running on mac 10.6

I have mac snowleopard 10.6 but i develop lots of programs (in C & C++) for linux hosts.I've tried compiling them under a ubuntu linux vm in virtualbox but the VM isn't the same performance as my...

View Article


Image may be NSFW.
Clik here to view.

Adding compiler to code::blocks

From here I've downloaded newest release of GCC, namely 4.6.How can I add this compiler to my code::blocks?

View Article

Error: Junk character at end of line, first unrecognized character valued 0x7F

I am a newbie to Android NDK, I am using android-ndk-r5 to build the Gearoid source code. After several warning of the following typewarning: null characters ignoredthe assembler terminates with the...

View Article

GBA C programming compiler gcc

I am trying to get started in programming for the GBA in Windows. Could somebody point me to a a good reference where they have been able to follow a complete set of directions?I want the directions to...

View Article


how to implement AES128 encryption/decryption using AES-NI instructions and GCC

I would like to accelerate my application by using AES-NI, by I am struggling to find any example that works with GCC or the assembler that comes with it. I am not interested in using SSL or any other...

View Article


reordering question about __ATOMIC_RELAXED with if statement

int flag = 0;int threadA(){ if(__atomic_load_n(&flag, __ATOMIC_RELAXED)) { return -1; } // do something A return 0;}int threadB(){ __atomic_store_n(&flag, 1, __ATOMIC_RELEASE); // do something...

View Article

Alternative to sscanf that makes both Linux and Windows happy

I have a truly ancient punch-card format and a C++ code that reads it using sscanf as follows, sscanf(longstr1,"%2d %5ld %1c %10s %2d %12lf %11lf %7lf %2d %7lf %2d %2d %6ld...

View Article

What is _GLIBCXX_USE_NANOSLEEP all about?

A preprocessor macro called _GLIBCXX_USE_NANOSLEEP appears in two standard header files:c++/4.7.1/x86_64-unknown-linux-gnu/bits/c++config.hc++/4.7.1/threadIn a default build of GCC 4.7.1 (Linux,...

View Article

Compile time complexity (i.e run time complexity of the compiler) of...

Suppose in my code I have the line:using T = std::tuple_element<N,TupleType>where TupleType is the type of a very large tuple and N is a very large number (think like 1,000,000)I understand that...

View Article


What is the difference between make and gcc?

The last sentence in the article caught my eye[F]or C/C++ developers and students interested in learning to program in C/C++ rather than users of Linux. This is because the compiling of source code is...

View Article

What does it mean by "Dwarf Error: DW_FORM_line_strp used without required...

I built an ordinary "Hello World" C program with gcc 14.2.0 on macOS Sequoia 15.0, and I ran perfectly. However, when I tried debugging it with gdb, it showed the error message Dwarf Error:...

View Article


error: unknown type name ‘max_align_t’ when building GCC 14.2 for centos7

I am building gcc 14.2.0 from source for centos7 and ran into the following issue with gettext during the make process. I plan to use the recent C++ compilers that comes with gcc 14.gcc -std=gnu99...

View Article

GCC complaining about a duplicate definition (where only one exists)

I just seem to hit one error after another when dealing with larger projects in Xcode. This time, GCC is complaining of a duplicate definition for a struct-printing function - one where it is actually...

View Article


swprintf removed from newlib-nano since gcc13

I came across this issue while working on updating our toolchain which uses newlib-nano. The new toolchain version i use is arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.When i use arm-none-eabi-nm...

View Article

-static option for gcc?

I'm wondering what the -static option on gcc does. I need this option when compiling a certain application, however when I do I get the following error:gcc -static -O3 -o prog prog.c/usr/bin/ld: cannot...

View Article

gcc build stage 1 failing

When trying to compile gcc 14.2.0, I run into the following error message:/volume1/dev/gcc_build/./gcc/xgcc -shared-libgcc -B/volume1/dev/gcc_build/./gcc -nostdinc++...

View Article
Browsing all 22042 articles
Browse latest View live


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