I have installed the Bloodshed Dev-C++ compiler on my Windows 7 machine. Now how can I compile from the command line?
我在Windows 7机器上安装了Bloodshed Dev-C ++编译器。现在我如何从命令行编译?
1 个解决方案
#1
4
File main.cpp:
int main()
{
return 0;
}
Compiling:
g++ -Wall main.cpp -o main
The bin
folder from MinGW has to be in the path environment variables, and for g++ there are lots of documentation on how to use it. As far as I know, there is not a difference from g++/MinGW and g++ from Linux, so any Linux tutorial will also work on Windows.
MinGW中的bin文件夹必须位于路径环境变量中,而对于g ++,有很多关于如何使用它的文档。据我所知,与Linux中的g ++ / MinGW和g ++没有区别,因此任何Linux教程也适用于Windows。
#1
4
File main.cpp:
int main()
{
return 0;
}
Compiling:
g++ -Wall main.cpp -o main
The bin
folder from MinGW has to be in the path environment variables, and for g++ there are lots of documentation on how to use it. As far as I know, there is not a difference from g++/MinGW and g++ from Linux, so any Linux tutorial will also work on Windows.
MinGW中的bin文件夹必须位于路径环境变量中,而对于g ++,有很多关于如何使用它的文档。据我所知,与Linux中的g ++ / MinGW和g ++没有区别,因此任何Linux教程也适用于Windows。