C++에서 간단한 hello world 앱을 만들지 만 컴파일되지 않습니다. 파일 main.cpp
과 Makefile
이있는 C:\WiiGames\e3\
폴더가 있습니다. 내 메이크 파일은 다음과 같습니다MinGW가 컴파일되지 않습니다. 오류 1
build: main.cpp
C:/MinGW/bin/g++.exe main.cpp -o e3.exe
내 오류는 다음과 같습니다
C:\WiiGames\e3>make build
C:/MinGW/bin/g++.exe main.cpp -o e3.exe
make: *** [build] Error 1
C:\WiiGames\e3>
어떤 도움을 크게 감상 할 수있다.
내 코드 :
#include <iostream>
#include <stdio.h>
#include <string>
#include <cmath>
#include <cstdlib>
#include <time.h>
int main() {
printf("Hello World!");
}
g ++ -v : 당신이 직접 명령 줄에서 g++.exe main.cpp -o e3.exe
를 실행하면 어떻게됩니까
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.6.2/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.6.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.6.2 (GCC)
코드를 입력하면 대답하기가 훨씬 쉬울 것입니다. – iehrlich
코드를 추가했습니다. –