Can't compile against asm-generic/cmpxchg-local.h
Question: what do i need to link to get /asm-generic/cmpxchg-local.h accessible?Info:I know I'm missing a link some where, but I can't figure out the right command. I'm not very good when it comes to...
View Articlewhat is meanging of gcc option "-fmessage-length"?
I am using CDT(eclipse for c language). I found that default gcc compiler options are -O0 -g3 -Wall -c -fmessage-length=0. what's the meaning of -fmessage-length? that should be -fflag, but what about...
View ArticleMoving away from XCode to GCC on OS X
I have a code base that I build on Snow Leopard, XCode 3.2.6 and targeting the 10.5 SDK 32/64bit, INTEL only. Works fine. I do this in a virtual machine.Now I have GCC 4.7.1 compiled and working on...
View ArticleMacOs Default compilers not able to compile correct C and C++ Code
I was attempting to compile C and C++ code using the default clang/clang++ and using the default gcc that is installed and it's no longer compiling. I have attached screenshots of what it looks like. I...
View Articleriscv cross compiler error: invalid -march= option: `rv64imafdc_zicsr'
I'm new to the world of gcc.I don't know if this is the right place to post, but I'm having some issues that are really annoying.I've created a Unix-like system, and although it's not very complete...
View Articleglibc compiling error with: error: '__EI___errno_location' specifies less...
help me figure out the errori try to compiling glibc 2.24 and i have following error: ./../include/libc-symbols.h:413:26: error: '__EI___errno_location' specifies less restrictive attributes than its...
View ArticleWhy Long double data type is working strange in my C code?
I'm using Windows 10 and MinGW GCC compiler(not the mingw64 one), but when I try this code,This is my GCC version,C:\Users\94768>gcc -vUsing built-in...
View ArticleGCC compiler error: "redefinition...previously defined"
I'm getting a lot of " redefinition of x....x previously defined here". Please what does this error means?
View ArticleMiniFMOD compilation
I'm starting development, and yet having lots of problems coming out from the moment I 'm trying to go a little bit out of bounds.I usually work with CodeBlocks and just tried once to compile using...
View ArticleHow to install GCC for Go on Windows 10?
I want to use external library on Go programming language and i am using this command for instance :go get github.com/alecthomas/gozmqfrom command line, but it gives such an...
View ArticleIntel x86 0x2E/0x3E Prefix Branch Prediction actually used?
In the latest Intel software dev manual it describes two opcode prefixes:Group 2 > Branch Hints 0x2E: Branch Not Taken 0x3E: Branch TakenThese allow for explicit branch prediction of Jump...
View ArticleObjective-C #import loop
I have the following code:#import <Foundation/Foundation.h>#import "ServerRequest.h" // works even though this line is included#import "ServerResponseRecord.h"@protocol...
View ArticleCalling gcc with shell_exec in php
<?php$output=shell_exec('gcc prog.c');echo "$output";?>I'm trying execute a c program using php and have used shell_exec to call gcc to execute the program but it is giving no output but there is...
View Articleundefined reference to mbind
I did upgrade my Ubuntu from 11.04 to 11.10. In 11.04 all this worked fine: gcc -fopenmp -g -c -o test.o test.c -I../include gcc -fopenmp -g -o test test.o -lnuma -lm -L../myLib -lmyLbut now, in 11.10,...
View ArticleProblems linking to multiple libraries with same symbols
I have 2 shared object libraries, e.g. libA.so and libB.so. I have an executable that calls functions from both of these libraries, e.g. funcA() from libA and funcB() from libB.Unfortunately, both libA...
View ArticleHow to make gcc warn about implicit conversions from floating point to int,...
I would like to be warned about implicit conversions from any floating point type to any integer type, but not about the narrowing conversion from double to float. E.g for this codeint main() { float f...
View ArticleWhy aren't fixed-point types included in C99?
Thankfully, the complex type modifier was introduced into C99 standard. What I don't understand is why it was decided to omit support for fixed point arithmetic (specifically, support fractional types...
View ArticleHow to add a section with variables using the linker, and modifying...
I have declared this section in my linker, the memory definition is this:POSTBUILD (rx) : ORIGIN = 0x08003E00, LENGTH = 512and the section is this: .Postbuild : { . = ALIGN(4); KEEP(*(.PN)) /* Product...
View ArticleWhy is gcc failing with 'unrecognized command line option...
My sysadmin recently installed a new version of GCC, in /lusr/opt/gcc-4.4.3. I tested it as follows:mike@canon:~$ cat test.cint main(){ return 0;}mike@canon:~$ gcc...
View ArticleHow can I easily install arm-elf-gcc on OS X?
I've got some code I want to compile which requires arm-elf-gcc. I'm not an embedded programmer, so all this is new to me. My development machine is a Mac and I use fink pretty often, so I'd love to be...
View Article