Questions tagged as 'gcc'

2
answers

Matrix segmentation failure

I'm getting the segmentation fault error in the code below: #include <stdio.h> #include <stdlib.h> #define linha 1000 #define coluna 1000 int main() { long double M1[1000][1000]; long double M2[1000][1000]; long double ma...
asked by 24.09.2016 / 22:26
1
answer

Why does the code generate garbage at the beginning of the vector?

The following code generates an unexpected result, at the end of the loop the first positions of the vector are with garbage stored, does anyone know why this is happening, and where is the error? OBS. The code has the same behavior in both C...
asked by 29.09.2016 / 18:13
1
answer

Profiling deposited in the Versioning Repository (GitHub)

I'm doing some tests with an experimental code that counts cyclists in the cycle range, for these tests I'm using gprof and gcov that generate several analysis files, one of these files generated by gprof I'm sending to the...
asked by 04.10.2016 / 03:25
1
answer

Using the getline () function in C with MinGW

I've created a code for a bookstore library using Linux / GNU, and it works fine there. However, I need the code compile in Windows using GCC, and I was wondering if there is a method to use this function or if there is a simple way to override...
asked by 18.11.2018 / 01:28
1
answer

Error [INSTALL_FAILED_INVALID_URI] in GCC

I already did everything, I installed GCC C4droid by the Google Store, I already installed the Android Terminal Emulator and also already root and I released the access to $su . But when I try to install GCC using the command PM install...
asked by 21.01.2016 / 21:35
0
answers

Problems in the makefile when switching from debian to freebsd (ifeq and endif)

I am using netbeans to compile some programs in C / C ++ it compiles remotely the codes on a debian (GNU) machine, everything works without problems problems, however I tried to compile the same project in a freebsd that uses CLANG, I am having...
asked by 07.12.2018 / 15:16
0
answers

Message "undefined reference to 'itoa'" when trying to use itoia function

I found in some sites people talked about using the itoa function to convert an integer into a string containing the number in binary format. Code example that should do this: #include<stdio.h> #include<stdlib.h> int main(){...
asked by 15.09.2018 / 21:11
0
answers

printf and sacnf on asembly on linux, shared lib, -fPIC

I'm trying to make a task work, but even the example I'm not able to run, the code is as follows: section .data SYS_exit equ 60 EXIT_SUCCESS equ 0 yourage db "How old are you: ",0 willbe db "You will be %d years old in ten yea...
asked by 22.06.2018 / 01:57
0
answers

open62541: 'NO_ERROR' undeclared - OPC server - C

I am trying to create an OPC server via open62541 following the example of this link, page 15: link When trying to compile with: gcc -std=c99 open62541.c myServer.c -lws2_32 -o myServer.exe I get the following error messages: open625...
asked by 18.04.2018 / 23:16
1
answer

Error Compile C in Gcc - Accentuation

Compiling the C code in GCC, and then executing it. An accent error occurs: PROGRAM: #include <stdio.h> int main() { printf ("Bem Vindo ao Nosso Jogo de Adivinhação"); } Command Terminal: gcc adivinhacao.c -o adivinhacao....
asked by 08.08.2017 / 02:34