Jump to content
Fórum Script Brasil
  • 0

Erro Compilação


Danilo Nascimento

Question

Olá galera,

estou tentando rodar o meu primeiro programa em C mas está dando um erro. Eu uso o wxDev C++ como compilador. Tento executar o seguinte programa:

---------------------------------------

#include <cstdlib>

#include <iostream>

#include <stdio.h>

using namespace std;

int main(int argc, char *argv[])

{

printf("Hello everybody");

}

--------------------------------------------------------------

Ou seja, simplesmente exibir a mensagem Hello Everybody na tela.

dá o seguinte erro:

---------------------------------------------------

Compiler: Default GCC compiler

Building Makefile: "C:\Users\Owner\Desktop\c\Makefile.win"

Executing make...

mingw32-make.exe -f "Makefile.win" all

g++.exe -c main.cpp -o Objects/MingW/main.o -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"C:/Program Files (x86)/Dev-Cpp/" -I"C:/Program Files (x86)/Dev-Cpp/include/common" -g3

g++.exe: error: CreateProcess: No such file or directory

mingw32-make.exe: *** [Objects/MingW/main.o] Error 1

Execution terminated

Compilation Failed. Make returned 2

----------------------------------------------

Alguém sabe o que pode ser?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
#include <stdlib.h>//biblioteca para system("pause");
#include <stdio.h>//biblioteca para printf("");
int main()//não é necessario declarar variaveis somente para uma impressão na tela
{
printf("Hello everybody");
system ("pause");//pausa o programa e espera uma entrada do teclado 
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...