# Cpp Complier

**URL:** <https://www.ruby-forum.com/t/cpp-complier/191590>\
**Category:** Ruby\
**Created:** [July 14, 2010, 9:55pm UTC](https://www.ruby-forum.com/t/cpp-complier/191590 "2010-07-14T21:55:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [July 14, 2010, 9:55pm UTC](https://www.ruby-forum.com/t/cpp-complier/191590/1 "2010-07-14T21:55:54Z")

</div>

I am trying to figure out which would be the best C++ compiler to  
install on  
my system. I am forced to develop on windows for my job, and I wanted  
to  
look into developing a ruby extension and apache mod.

I was debating between cygwin, mingw or ms cpp express. Can someone  
give me  
a best recomendation?

## Thanks,

Allan D.  
Member of NetBeans Dream Team  
[http://wiki.netbeans.org/NetBeansDreamTeam](http://wiki.netbeans.org/NetBeansDreamTeam)  
Lead Developer, nbPython  
[http://wiki.netbeans.org/Python](http://wiki.netbeans.org/Python)  
[http://codesnakes.blogspot.com](http://codesnakes.blogspot.com) (my blog)  
[http://www.linkedin.com/in/javaalley](http://www.linkedin.com/in/javaalley)

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [July 14, 2010, 10:03pm UTC](https://www.ruby-forum.com/t/cpp-complier/191590/2 "2010-07-14T22:03:31Z")

</div>

On Wed, Jul 14, 2010 at 2:55 PM, Allan D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I am trying to figure out which would be the best C++ compiler to install on  
> my system. I am forced to develop on windows for my job, and I wanted to  
> look into developing a ruby extension and apache mod.

Passenger is already a good enough apache mod.  
What would this ruby extension do? Your best looking at ffi.  
Best is a very ambiguous term.

> I was debating between cygwin, mingw or ms cpp express. Can someone give me  
> a best recomendation?

Surely there has to be an llvm compiler for windows.  
It depends on what you are using it for.

Also, IronRuby might be of interest to you.

Andrew McElroy

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [July 14, 2010, 10:16pm UTC](https://www.ruby-forum.com/t/cpp-complier/191590/3 "2010-07-14T22:16:24Z")

</div>

Passenger currently does not have a windows version. I was thinking of  
trying to work on that. See if that would improve our environment.

## thanks,

Allan D.  
Member of NetBeans Dream Team  
[http://wiki.netbeans.org/NetBeansDreamTeam](http://wiki.netbeans.org/NetBeansDreamTeam)  
Lead Developer, nbPython  
[http://wiki.netbeans.org/Python](http://wiki.netbeans.org/Python)  
[http://codesnakes.blogspot.com](http://codesnakes.blogspot.com) (my blog)  
[http://www.linkedin.com/in/javaalley](http://www.linkedin.com/in/javaalley)

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [July 14, 2010, 10:43pm UTC](https://www.ruby-forum.com/t/cpp-complier/191590/4 "2010-07-14T22:43:20Z")

</div>

On Wed, Jul 14, 2010 at 2:13 PM, Allan D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Passenger currently does not have a windows version. I was thinking of  
> trying to work on that. See if that would improve our environment.

Hey member of the NetBeans Dream Team guy, you considered using JRuby on  
Windows? 🙂

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [July 14, 2010, 10:55pm UTC](https://www.ruby-forum.com/t/cpp-complier/191590/5 "2010-07-14T22:55:37Z")

</div>

On Wed, Jul 14, 2010 at 11:03 PM, andrew mcelroy  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> Surely there has to be an llvm compiler for windows.  
> It depends on what you are using it for.

Interesting. The last time I tried to pass ruby’s code through clang it  
choked on the **asm** keywords in vm.c. I admit that it was a half  
hearted  
effort and I didn’t try to figure out if there were options that would  
make  
it work. I hope to give it another try soon. Do you know of any  
documented  
successful compilations on linux?

Thanks,  
Ammar

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [July 14, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/cpp-complier/191590/6 "2010-07-14T22:58:33Z")

</div>

On Wed, Jul 14, 2010 at 11:54 PM, Ammar A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> it work. I hope to give it another try soon. Do you know of any documented  
> successful compilations on linux?
> 
> Thanks,  
> Ammar

That should have been vm\_exec.c, not vm.c

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [July 14, 2010, 11:05pm UTC](https://www.ruby-forum.com/t/cpp-complier/191590/7 "2010-07-14T23:05:35Z")

</div>

On Wed, Jul 14, 2010 at 3:57 PM, Ammar A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > choked on the **asm** keywords in vm.c. I admit that it was a half hearted  
> > effort and I didn’t try to figure out if there were options that would make  
> > it work. I hope to give it another try soon. Do you know of any documented  
> > successful compilations on linux?

It’s not Linux, but it might work.  
[http://joneslee85.wordpress.com/2010/04/23/howto-compile-ruby-1-9-2-head-with-clang-svn-head-on-mac-os-x-10-6-3/](http://joneslee85.wordpress.com/2010/04/23/howto-compile-ruby-1-9-2-head-with-clang-svn-head-on-mac-os-x-10-6-3/)

Andrew McElroy  
[tryruby.org](http://tryruby.org)

---

<div class="post-metadata">

**Author:** ![internet2cash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/5fc32e/32.png) [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Post date:** [July 15, 2010, 6:45am UTC](https://www.ruby-forum.com/t/cpp-complier/191590/8 "2010-07-15T06:45:36Z")

</div>

On Wednesday, July 14, 2010 02:55:11 pm Allan D. wrote:

> I am trying to figure out which would be the best C++ compiler to install  
> on my system. I am forced to develop on windows for my job, and I wanted  
> to look into developing a ruby extension and apache mod.

I’m sure you know, but in case you don’t, Ruby runs well enough on  
Windows  
without Apache, and there are dozens of other webservers you could use.  
If  
Apache is a requirement, you could still stick Ruby server(s) behind it.

> I was debating between cygwin, mingw or ms cpp express. Can someone give  
> me a best recomendation?

Visual C++, according to this page:

[http://httpd.apache.org/docs/2.0/platform/win\_compiling.html](http://httpd.apache.org/docs/2.0/platform/win_compiling.html)

More generally, it depends how portable the code you’re working with is,  
and  
how much work you’re willing to do to make it “native”. MS CPP produces  
the  
most native, probably best and fastest binaries with the fewest  
third-party  
dependencies, while Cygwin installs an entire third-party Unix  
subsystem.

Where I’ve seen mingw used, it’s a nice, happy medium – a beautiful  
example  
is Git for Windows, which packs everything you need to get a Bash prompt  
with  
a functional Git (and git-gui, and gitk) into under 12 megs. That’s  
including  
all kinds of stuff like less, grep, vim, tar/bzip2, OpenSSH… It  
basically  
feels like Cygwin lite.

But if you can make it work with Visual C++, go with that.
