Compilation error

2014-02-26
2014-02-26
  • Andre Pires
    Andre Pires
    2014-02-26

    I am running Dev-C++ Version 5.6.1 on a Windows XP system. Every time I try to compile a program I get the following error:

    General: MinGW GCC 4.8.1 32-bit Release
    Executing g++.exe...
    g++.exe "C:\Documents and Settings\andre.pires\Desktop\Untitled1.cpp"
    -o "C:\Documents and Settings\andre.pires\Desktop\Untitled1.exe"
    -I"C:\Dev-Cpp\MinGW32\include"
    -I"C:\Dev-Cpp\MinGW32\mingw32\include"
    -I"C:\Dev-Cpp\MinGW32\lib\gcc\mingw32\4.8.1\include"
    -I"C:\Dev-Cpp\MinGW32\lib\gcc\mingw32\4.8.1\include\c++"
    -L"C:\Dev-Cpp\MinGW32\lib"
    -L"C:\Dev-Cpp\MinGW32\mingw32\lib"
    -static-libstdc++ -static-libgcc

    cc1plus: Invalid option -I' cc1plus: Invalid option-I'
    cc1plus: Invalid option -I' cc1plus: Invalid option-I'
    cc1plus: Invalid option -iprefix' cc1plus: Invalid optiontune=generic'
    cc1plus: Invalid option arch=pentiumpro' cc1plus: Invalid option-auxbase'
    cc1plus: Untitled1: No such file or directory

    Compilation succeeded in 0,67 seconds

    I tried change the paths for the TDM-GCC32,MINGW, but the error its always teh same.
    The code it´s below:

    include <stdio.h>

    include <stdlib.h>

    int main ()
    {
    printf("TESTE");
    system("PAUSE");
    return 0;
    }

    What´s happen ?