如何使c ++ builder使用g ++运行? [英] How to make c++builder run with g++?

查看:257
本文介绍了如何使c ++ builder使用g ++运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习如何做套接字编程,我的教程是为Unix,所以我需要使用cygwin,但它不是很方便运行代码从提示bash为我,所以如果有人知道,请告诉我如何使Embarcadero RAD Studio XE3 for Windows使用g ++运行

I am learning how to do socket programming, my tutorial is for Unix, so I need to use cygwin, but it's not handy to run code from prompt bash for me, so if anyone knows, please tell me how to make Embarcadero RAD Studio XE3 for Windows run with g++

推荐答案

C ++ builder XE3生成可执行文件:

You cannot. C++builder XE3 generates executables for:


  • Windows使用VCL

  • Windows使用firemonkey框架

  • Windows控制台应用程序

  • OSX使用firemonkey框架

  • Windows using the VCL
  • Windows using the firemonkey framework
  • Windows console applications
  • OSX using the firemonkey framework

XE4也会为iOS生成可执行文件。

XE4 will generate executables for iOS as well.

但是XE3不会生成在Unix上运行的控制台应用程序。

However XE3 will not generate console applications that run on Unix.

Cygwin是一个允许unix控制台应用程序在Windows下运行的框架。

它只接受Unix应用程序在其中运行。

Cygwin is a framework that allows unix console applications to run under Windows.
It only accepts Unix applications to run inside it.

如果要编写一个unix控制台应用程序,则必须在支持它的编译器中编译c ++代码,如gcc。

If you want to write a unix console app, you'll have to compile your c++ code in a compiler that supports it, like gcc.

这篇关于如何使c ++ builder使用g ++运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆