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

How can I use mingw to build mkspiffs?

I'm trying to build mkspiffs for windows. It's a c/c++ project. I installed mingw, and added it to my path. The README.md says to run $ git submodule update --init$ make distThe make dist command gives...

View Article


How to make Make generates headers before compiling?

I struggle to compile my CPP files because a header file is missing. I know it is missing because I want to generate it. How ?Here what I have so far. Problem is : when "the_header.hpp" is used in...

View Article


Error while running c code in terminal, though compiler has been installed...

I have installed command line tools using xcode-select --install in macOS Catalina.I checked manually no header file is missing. Also i tried installing gcc using homebrew but whenever i tried running...

View Article

CMake toolchain file error while cross compiling using arm-none-eabi--gcc

I'm trying to write my own CMake build system for the STM32F407 on Windows. Below is my CMakeLists.txt:cmake_minimum_required(VERSION 3.0)project(test_1 LANGUAGES C)#Set the path if arm-none-eabi's bin...

View Article

GCC flags to get LTO bitcode

I have been using LLVM/Clang and its Intermediate Representation(IR) for a while now. I have recently started working with GCC. I want to dump IR bitcode to a file, similar to (-flto -save-temps flag)...

View Article


How does gcc `-shared` option affect the output?

Technically, in terms of file content, what is the difference between the output of gcc -fPIC -shared src.c and gcc -fPIC src.c?Assume that int main(int, char**) is defined in src.c so that both...

View Article

Is it possible to avoid copying from another section in stack initialisation...

for examplevoid f(){ wchar_t s[]=L"aaaaaaaaa";}is compiled into something like.section .rdataLC0:.ascii "a\0a\0a\0a\0a\0a\0\0".section .textmovl LC0,%eaxmovl %eax,0x888(%esp)...Is it possible to avoid...

View Article

.exe is 500kb big when compiled on Windows. How can I reduce its size?">GCC C++"Hello World" program -> .exe is 500kb big when compiled on Windows....

I just recently started learning C++ - I am using nuwen's version of MingW on Windows, using NetBeans as an IDE (I have also MSDN AA Version of MSVC 2008, though I don't use it very often).When...

View Article


How to use ld to link compiled .o files [duplicate]

I have a simple program with 2 files:test.c:#include "head.h"int main(){ print(); return 0;}func.c:#include "head.h"void print(void){ printf("hello, world!\n");}and the head file "head.h":#include...

View Article


gc/c++ omit main from compilation, provide main in separate file

I'd like to do a compilation of two files which contain main methods by excluding or omitting the main method defined in one.To give some background:I'm trying to automate testing student-submitted...

View Article

xcode installed but cannot find macOS_SDK_headers_for_macOS_10.14.pkg

I have an issue with compiling gcc which can be traced back to Catalina having issues with xcode, so I referred to the link here "macOS_SDK_headers_for_macOS_10.14.pkg is incompatible with this version...

View Article

after upgrade to gcc9.3 linking segfaults in lto-wrapper but LTO is disabled

I just upgraded gcc form 7.5 to 9.3 and started to have gcc linker segfaults - but only on armv7 target (the same all sources are building/linking OK for aarch64/x86_64 targets).Segfault is in...

View Article

Please help me with make errors [closed]

Upload CMakeLists and makefiles.I want to build allegeo. I want to build allegro itself. I get an error when I run make. What is the problem? Here is the CMakeLists.txt file : # Distributed under the...

View Article


link ocilib using mingw g++ on windows

i'm trying to use ocilib.h that i downloaded from the internet. It work just find went i using visual studio 2017. But because of my machine i have to use mingw.Windows 10 - OSVSCode - Text EditorMingw...

View Article

Image may be NSFW.
Clik here to view.

How to remove 'bloat' from a compiled shared object?

I have a gcc C application which compiles to a shared object using the -fpicoption. The intent is to create a 'executable' which allows running the code anywhere in the memory.This is how a sample C...

View Article


How to link MinGW (gcc) and TBB

I am trying to compile my TBB program using MinGW. I know that TBB is installed on my machine correctly because it compiles just fine in Visual Studio. Do I have to do something more to tell MinGW...

View Article

macOS Catalina - error: command 'gcc' failed with exit status 1

I'm trying to pip install gdal and struggling. Have spent hours trawling through SO, Guthub and other posts to try and resolve this one but nothing I've tried works. I've tried:xcode-select...

View Article


Trying to Install PyAudio on live server running on linux Centos 7

i am trying to build an app with python i have done it offline and it's working now trying to push it online i need to install pyaudio but i am getting this error anytime i try to install pyaudio.this...

View Article

What is the difference between __i686.get_pc_thunk and __x86.get_pc_thunk?

These helper functions are used by GCC and Clang in 32-bit x86 position-independent code to get the current execution address into a register, for example:call __i686.get_pc_thunk.bxaddl...

View Article

libpthread.so.0: error adding symbols: DSO missing from command line

When I'm compiling openvswitch-1.5.0, I've encountered the following compile error: gcc -Wstrict-prototypes -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security...

View Article
Browsing all 22037 articles
Browse latest View live


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