Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
So I#m totally stuck on
compiling this kernel https://github.com/Tetris-Duel-Team/Tetris-Duel for Raspberry Pi.
The Assemble Script seems not to work under Ubuntu 12.04 and I have no clue how compiling with
gcc arm is working.
Any Guides or Answers?
I was part of the Tetris Duel Team.
We have just uploaded binaries for linux so that you can compile it on Ubuntu.
If you have any further questions, you can email us directly - all our emails are on github.
Thanks for noticing our project!;)
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I know there have been similar questions but none of them seem to solve my problem. After successfully compiling my code, I got an "Access is denied." message from my command prompt after trying to run it (picture below).
The code I'm trying to run in a file named dummyC.c is:
#include <stdio.h>
int main (void) {
printf("Hello");
}
For context, I'm using Windows 10 64-bit. The GCC version (GCC -v) is MinGW 9.2.0, also in the attached picture. Is there any way I could solve this?
EDIT: The problem was my Avast antivirus flagging the output file a.exe as a Trojan or a virus. The problem was solved after I temporarily disabled all Avast shields.
I believe that your project is not in the correct place for the compiler to execute it, if it is on the desktop try to transfer it to a folder created in c:
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
Recently we have moved our gcc version from 4.1.x to 4.8.3.
Some of my team mates are working on RH5.X and others are working on RH6.5 Versioned machines.
I notice that, on RH 5.X machine. when we try to build the code we are facing following issue while creating dynamic library.
PS:- We are not hitting this issue on RH6.X machines.
Log:-
codec_main.c.text+0x0): multiple definition of vprintf'
/local/workspace/first/branch/dsc/cmd_parse.o:cmd_parse.c.text+0x510): first defined here
/local/workspace/first/branch/dsc/codec_main.o: In functiongetchar':
codec_main.c.text+0x40): multiple definition of getchar'
/local/workspace/first/dsc/cmd_parse.o:cmd_parse.c.text+0x550): first defined here
/local/workspace/first/branch/lpddr5_branch/src/main/cvip/build/Linux/Release/lib/extlibs/dsc/codec_main.o: In functionfgetc_unlocked':
codec_main.c.text+0x70): multiple definition of `fgetc_unlocked'
Can you please help?
Could be object files from a build on another system. Try doing a clean build.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
Me and my friend used GCC to convert the same .c file to .s for our assignment. But we both got different assembly language code.
Me
OS :- Windows 10 using GCC 4.7.2
Friend
OS:- Ubuntu using GCC 4.7.2
The program you have written is compiled to run on two different OS. Both has its own set of syscalls and calling conventions. The compiled code will have different way of passing parameter, registers used for passing the values around and selected optimisation level.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm completely new on the whole cross compiling scene, but I'm willing to learn. My objective right now is to compile a simple program (written in C) for an Arm M0 processor. I would like to do it as much as possible with free tools (open source or official, it does not matter). My PC runs a Debian Testing x64 operating system. My specific questions are:
1) What tools should I download? (can be console or IDE, whichever works best in your opinion)
2) Could you point me to a good tutorial that can teach me the basics? I know this is far from trivial and something hard to accomplish if you have little experience, but I want to try and I'd appreaciate a hand getting started.
Just to clarify, my objective is a program for an M0 that is not in any specific board or build. Which means I'm going to have to define where the memory is and configure the communication with the PC. So the tools need me to allowed to do that.
In Linux machine first of all you need to install arm toolchain.
sudo apt-get install gcc-arm-linux-gnueabi
Second step compile your program let say hello.c by
arm-linux-gnueabi-gcc -o hello hello.c
you can find how to cross compile toolchain,programs and library for ARM platform.
You can also check GNU Tools for ARM Embedded Processors
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have installed codeblocks in windows 8 first time and try to run a simple C program but I get this error?
"can't find compiler executable in your search path (GNU GCC compiler)"
I tried many things to solve it but unable to compile.
I kind of encountered this problems long before.. when I was still using Windows and the Air-Quality in Beijing was still good at that time.
A problem code-blocks have, is that it might not find the proper C code compiler for you automatically. One think you can do.. is to go to the options(or something like that), and look for the compiler option, and it have some settings for you to set the compiler.
If you cannot find a proper compiler, I usually go install wxDev and use the wxDev's gcc in Code::Blocks.
Hope that helps :)