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

How to solve "undefined reference to `main'" error in gitbash terminal...

I am getting to know C and I have encountered an issue I am not sure how to solve. I have tried to look at other questions on here, but I do not think that my issue is the same, as I do have an int...

View Article


Compile a .c programs in CMD like gcc in Terminal Linux?

What is the preferred way to compile .c/.cpp files similar to gcc (Linux) in cmd (Windows)? What are the most common compilers?

View Article


Linking .elf file to object files from a previous executable to reuse flashed...

I'm developing a C/C++ project targeting an embedded device based on ARM Cortex-M.Initial specifications of the project foresaw the possibility of OTA, but due to time constraints the implementation is...

View Article

What are useful options for gcc/g++?

It is almost common knowledge that one should always compile with -Wall.What other useful options are you using when compiling with gcc/g++?

View Article

Undefined reference to fork() in Code::Blocks editor in Windows OS

When I am running below code in Code::Blocks in Windows OS.I used to get an error called undefined reference to fork().I did set/choose GCC compiler as my default compiler.#include<stdio.h>...

View Article


Conda installed gfortran and gcc cannot compile executables

On Linux 64, after creating an environment, I installed gfortran with conda install conda-forge::gfortran. I see that it installed gfortran 14 and gcc 14. Then I installed openmpi with conda install...

View Article

How to use 2 different versions of GCC on Linux Ubuntu and force MAKE to use...

I'm using the last version of Ubuntu which come with the gcc 4.4.5 version. I need to recompile a program that was not written by me and that can be only compiled with an older version of gcc like the...

View Article

libstdc++.so.6: version GLIBCXX_3.4.20 not found

I have a program that I am trying to compile using GCC (my version is gcc 4.8.4) by using a makefile.The problem is that the executable file is created under a directory it works, but when its copied...

View Article


Using GCC through Xcode to compile basic programs

So, I'm a brand new CS student, on a Mac, and I'm learning C++ for one of my classes. And I have a dumb question about how to compile my super basic C++ program. I installed Xcode, and I'm looking...

View Article


Bare metal cross compilers input

What are the input limitations of a bare metal cross compiler...as in does it not compile programs with pointers or mallocs......or anything that would require more than the underlying hardware....also...

View Article

From where can I download gcc compiler for Windows?

From where can I download the GCC compiler for C++? I'm using Windows Vista as OS

View Article

Use gcc 4.2 in Xcode 4.2 and iOS SDK 5.0

I just upgraded to Xcode 4.2 and iOS SDK 5 earlier today. But everything seems different with new compilers.There are two "Compiler for C/C++/Objective-C" options now, "Apple LLVM compiler 3.0" and...

View Article

Using GCC 4.2 in Xcode 4.2 iOS SDK 5.0

I found this post about using GCC 4.2 in Xcode 4.2 StackOverflow Post.Did anyone else receive the error "Error writing -: Broken pipe" after following the steps in the above post?After following the...

View Article


Creating Command Line Args with gcc?

I have the following code:gcc test.c -o test -D ARGUMENT 2and I want it to define ARGUMENT with a value of 2 but it says cannot find file 2 or something. How do I do this?

View Article

How to build and Install compiler g++-4.8.5 on ubuntu 24.04 from source code?

I am getting error while building gcc-4.8.5 on ubuntu 24.04I had followed the below steps as mentioned in the page How to Install compiler g++-4.8.5 in ubuntu 20.04sudo dpkg --add-architecture i386sudo...

View Article


How to use C++ libs in C that provide the bindings? [duplicate]

I'm new to C. I want to use the imgui library that was written in C++ with it's base+internal+glfw+opengl3 extensions in my C project that uses glfw and opengl3 libraries. I'm aware of two projects...

View Article

Confusion in regards to purpose/behavior of -Waggregate-return?

While looking at the GCC's warning options, I came across -Waggregate-return.-Waggregate-return Warn if any functions that return structures or unions are defined or called. (In languages where you can...

View Article


Cross Compiler Binary Execute Error

I just built a cross compiler using crosstools "mips-unknown-linux-gnu-gcc" and I compiled a hello world program. The compilation went fine using the command: "mips-unknown-linux-gnu-g++ hello.cpp -o...

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

How to turn off specific optimization flags in gcc

I want to compile with optimization -O1, but there is a certain flag that it turns on that I do not want to use. How do I turn it off?

View Article
Browsing all 22145 articles
Browse latest View live


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