Questions tagged as 'gcc'

1
answer

Template error returning value

I'm implementing a class that represents an array using template and dynamic allocation. However, when I did overload the + operator (addition) the following compilation error occurred (only when I try to add the objects does the error occur)....
asked by 07.05.2015 / 21:20
1
answer

Header files in C ++ using more than once

I'm developing a multiplatform project (Windows - Linux - MacOS). During its development and when generating documentation (via Doxygen) I realized that there are many *.h files to be called by several *.cpp files. My questions are...
asked by 04.07.2018 / 17:57
1
answer

Convert C code to MIPS assembly?

How can I generate the Assembly code corresponding to the code below: #include <stdio.h> #define LINHA 4 #define COLUNA 5 int tab [LINHA][COLUNA] = { 2016,2012,2008,2004,2000, 1916,1911,1908,1904,1900, 1861,1857,1852,1846,...
asked by 03.10.2017 / 21:54
1
answer

How to compile .cpp codes that have separate interfaces and implementations in g ++?

I am studying C ++ for the book of Deitel , and I am trying to compile a program where we have a file gradebook.h which is the interface, gradebook.cpp which is the implementation and test_gradebook_header_file.cpp which i...
asked by 13.09.2016 / 05:55
1
answer

'itoa' is not recognized

I'm trying to compile the code below with GCC 4.7.4, but I always get the error    error: 'itoa' was not declared in this scope #include "otpch.h" #include <iomanip> #include <stdlib.h> #include <boost/config.hpp> #includ...
asked by 26.03.2015 / 19:42
1
answer

Code does not compile in C ++ 11

I have a common code, more specifically the following: #include <iostream> #include <SFML/System.hpp> #include <SFML/Window/Keyboard.hpp> namespace thread { void check_key(sf::Keyboard::Key key) { while(true)...
asked by 08.11.2014 / 02:46
1
answer

Error compiling C in gcc: No such file or directory

I'm trying to compile a .c file but I'm not getting it. I type the following command: gcc main.c -o HELLO and the following error appears: gcc: error: main.c: No such file or directory gcc:fatal error: no input files compilation terminate...
asked by 17.09.2015 / 21:37
1
answer

Problem installing gcc on ubuntu [closed]

I'm trying to install GCC on ubuntu. When I type sudo apt-get instal gcc asks for a password, but I can not type the password. What could be the problem?     
asked by 22.01.2017 / 13:21
1
answer

undefined reference to 'dlopen'

I'm trying to load a .so file, but this title error is showing up. Can anyone help me? #include <iostream> #include <dlfcn.h> #include <stdio.h> using namespace std; int main() { void *a...
asked by 18.09.2017 / 22:07
2
answers

Error while compiling Cmake project

I'm having the following problem when trying to build a project using CMake: -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:2 (project): I'm running the following:...
asked by 11.03.2017 / 17:21