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

/usr/bin/ld: build-debug/obj/gpsitem.o: file not recognized: file truncated

I'm using QT to build/run and i'm getting the error: /usr/bin/ld: build-debug/obj/gpsitem.o: file not recognized: file truncated /usr/bin/ld: build-debug/obj/gpsitem.o: file not recognized: file...

View Article


Is there any interlocked list (SLIST_HEADER) in Linux?

We, in Windows, have an interlocked list (s-list / SLIST_HEADER) which is extremely useful in many useful scenarios. But I cannot find the equivalent in Linux. In Linux, I need to use a spinlock or...

View Article


arm-none-eabi-binutils and arm-none-eabi-gcc versus binutils and gcc

I find the arm-none-eabi-binutils and arm-none-eabi-gcc in the folder of /opt/local/var/macports/software whereas normal binutils and gcc are found in the /usr/bin folder what are the differences...

View Article

How to solve dyld: Symbol not found - Expected in: /usr/lib/libSystem.B.dylib...

I searched for it, could not find much references. I guess: dyld: Symbol not found: _fdopendir$INODE64 Referenced from: /Users/gg4u/Sites/miniconda3/envs/meteo/bin/python Expected in:...

View Article

Printf argument order being ignored

I am running the following code snippet: #include <stdio.h> int main() { printf("%f %d\n", 42, 3.14); } Which, to my astonishment, displays: 3.140000 42 Compiler (gcc 8.3.0 on a Debian-based...

View Article


Why is this code 6.5x slower with optimizations enabled?

I wanted to benchmark glibc's strlen function for some reason and found out it apparently performs much slower with optimizations enabled in GCC and I have no idea why. Here's my code: #include...

View Article

Difference between arm-eabi arm-gnueabi and gnueabi-hf compilers [on hold]

What is the difference between arm-eabi, gnueabi and gnueabi-hf cross compilers. I am kind of finding it difficult to choose the compilers. Is there a native compiler for arm?

View Article

How to update GCC from 4.8 to 8.2 on RHEL7

I am looking to update my GCC to the newest version (8.2 as of today) but when I attempt to use yum update gcc it doesn't have any new packages to update. I am also not having any help looking at the...

View Article


Gcc error: gcc: error trying to exec 'cc1': execvp: No such file or directory

I have been successfully using gcc on Linux Mint 12. Now I am getting an error. I have recently been doing some .so builds and installed Clang not to long ago, but have successfully compiled since...

View Article


Code working as C-File but not as C++-File, Error:...

I coded a macro, where I can use any amount of values. If these are floats, they are casted in uint_32 and later all values are used in the method examplefff, where I use varargs to get all values. If...

View Article

POSIX sigevent not compiling with c11

I have simple app in C that is using POSIX struct sigevent. #include <signal.h> int main(int argc, char *argv[]) { struct sigevent sig_event; return 0; } When I compile it like this: gcc test.c...

View Article

glGetFloatv causes stack smash

This causes a stack smash when compiled with GCC. void MyOpenGLLineClass::set_width (float x) { float max = 1; glGetFloatv (GL_ALIASED_LINE_WIDTH_RANGE, &max); if (false == (x > 0 && x...

View Article

Enable Thread Local Storage when building a mingw-w64 cross-compiler

I've been trying for days to build a mingw-w64 toolchain, I'm stuck at building the cross-compiler, GCC 8.1.0. The problem is that I must have Thread Local Storage (TLS) enabled, therefore I pass...

View Article


Makefile -o, why need .o

when we want to compile a multi file together. Why we need to convert .c file to .o in the makefile instead of just gcc file1.c file2.c -o newfile For example \\ in make file file: file1.c file2.c gcc...

View Article

Which function is used when loading two shared libraries with same statically...

I been reading and trying to understand how symbols get resolved within a shared library in Linux. So here is a description of what I am faced with. I am using an application (APP) that can load user...

View Article


C++ Perfomance Per Compiler, 200 times slower than C#

I was dealing with some performance issues which I discussed in this question: Super Slow C++ For Loop I have a simple program I wrote to parse binary data. I tested it locally on 2 computers. 1. Dual...

View Article

linux convert time(for different timezones) to UTC

Is there a way, in linux, to programmatically get UTC time for a given time string like Tue Dec 14 10:30:23 PST 2012 Tue Jan 4 11:30:23 EST 2013 to a UTC time, irrespective of( and without changing)...

View Article


Retrieve list of VESA video modes from Int 10/AX=4F00h

I am trying to develop a proof-of-concept os. Howsoever in the process one of the problems I encounter is the vesa video modes. It seems there is a lack of hardcoded video modes numbers after vesa...

View Article

gcc compiling with -pg doesn't produce binary needed for gprof

I'm running into a little problem and require some assistance. I would like to run gprof on some OpenMP and MPI hybrid code as a part of my testing. I understand that gprof relies on a binary file...

View Article

Rename a function without changing its references

I have an object file compiled using gcc with -ffunction-sections option. I have access to the source file but iam not allowed to modify it. file.c void foo(void) { bar(); } void bar(void) { abc(); }...

View Article
Browsing all 21994 articles
Browse latest View live


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