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

GCC Exclude User-Defined Warnings from -Werror

I want to pass the -Werror argument to gcc during compilation. The issue is that the code I am compiling has pragma statements such as:#pragma GCC warning "Custom warning message"I should be able to...

View Article


gcc compiler flag to suppress template expansion for template errors during...

I'm wondering if there is a flag or modification for the gcc compiler that will return a line number and sentence explaining the type of error when it encounters an error involving templates, but will...

View Article


What style assembly is this (intel, att...etc?) and how can I produce it?

I'm trying to produce assembly code like this (so that it works with nasm);hello.asm[SECTION .text]global _start_start: jmp short ender starter: xor eax, eax ;clean up the registers xor ebx, ebx xor...

View Article

Where can I get gcc.exe (compiled) version 4.7.0? [closed]

At gcc website compiled file (.exe) of gcc version 4.7.0 is not available. MinGW has upto 4.6.2 version. Where can I get compiled gcc.exe version 4.7.0 ?

View Article

Why is this reordering of sub and mul instructions helpful?

This is an example code from Computer Systems: A Programmer's Perspective.short foo(short a, short b) { short result; result = b; while(b > 0) { result *= a; b -= a; } return result;}Compiling this...

View Article


py-bcrypt installing on win 7 64bit python

Trying to install py-bcrypt on win7. Python is 64bit. First error unable to find vcvarsall.bat. Googled a bit learned that i needed to install mingw. installed it now this...

View Article

configuring gcc compiler options in netbeans

I am using minixml library in my gcc base project. I can successfully compile the files using the following command line optiongcc -o <output file> <c file path> -L. -lem_log -lmxml...

View Article

How to test if your Linux Support SSE2

Actually I have 2 questions:Is SSE2 Compatibility a CPU issue or Compiler issue?How to check if your CPU or Compiler support SSE2?I am using GCC Version:gcc (GCC) 4.5.1When I tried to compile a code it...

View Article


How can gcc optimize separate call of sin(x) and cos(x) into single sincos?

This c++ code is#include<cmath>double f1(double a){ return std::cos(a);}double f2(double a){ return std::cos(a) + std::sin(a);}is compiled into the following assembly...

View Article


Define the default int to unsigned int

How can I (if I can) set the default int variable (in a specific program) to be unsigned int?I mean that if int is written in the program, the compiler treats it like unsigned int.My compiler is gcc...

View Article

Objective C with some C++ code won't compile

I have an Objective C project with some C++ code, and sure enough the C++ code won't compileI understand that the compiler makes assumptions about which language to compile, but I have seen this app...

View Article

How to change the target directory of GCC compiler?

It always puts the .exe file into the same directory as the source file. I'm not about to use any IDEs, just the command line tool.

View Article

Why do I get linker error instead of no input error

I get linker error on clang command even if I did not provide any source codes.$ clang/usr/bin/x86_64-pc-linux-gnu-ld.bfd: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../lib64/Scrt1.o: in function...

View Article


Can not run/build XV6 in Ubuntu

I'm building the XV6 system according to the instructions on the MIT 6.828 course page, but I'm stuck in the build process. After showing this in Terminalballoc: first 772 blocks have been allocated...

View Article

Find near duplicate binary files (.lib,.bin)

Scenario is:Though the source-code doesn't change, I'm seeing that the the compiled lib/bin files are having difference though It's compiled by same compiler and with same dependencies.Since it's not a...

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

Unable to import pjsua2 - Undefined symbol: pj_log_5

I'm trying to compile pjsua2 from source, but receive this error when I to import the library in python 3.12 after building it:Python 3.12.1 (main, Dec 18 2023, 00:00:00) [GCC 13.2.1 20231205 (Red Hat...

View Article


How to step through C++ code with structured binding in GDB without jumping...

Given a program:[]$ cat a.cpp#include <iostream>int main(){ auto [a, b] = std::make_pair(1, 2); for(int x = 0; x < 2; ++x) { a += b; b += x; }}If I compile it and step through it line by line...

View Article

What Fortran compiler supports these features?

I've got some legacy code I'm trying to compile, and my available compilers are choking. Here are the lines causing the problems:line 5:DIMENSION MMO(12)/31,28,31,30,31,30,31,31,30,31,30,31/lines 7,...

View Article

Creating a DLL in GCC or Cygwin?

I need help to compile a script ("iterator.c") into a DLL. I can't use VS2010 since it does not support the features added to C in the C99 standard (I'm using "complex.h" but VB doesn't support...

View Article
Browsing all 22113 articles
Browse latest View live


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