Can Visual C++ 2008 Express Edition Compile C++ code Written on Linux or Unix Platforms?

9 views
Skip to first unread message

David

unread,
Oct 8, 2009, 6:32:25 AM10/8/09
to Visual C++ Lovers
Hi,

I downloaded some C++ programs developed by other people. These
programs were written on linux or unix platforms. I wanted to run the
programs on Windows, I tried to compile them using Visual C++ 2008
Express Edition. However, only the small programs which consist of two
files: a .cpp file and a .h file were compiled successfully. The large
programs which consist of more than two files did not compile
successfully.

Is Visual C++ 2008 Express Edition supposed to compile C++ code
written on Linux or Unix?

Thanks,
David

Hieu Le Trung

unread,
Oct 9, 2009, 3:38:22 AM10/9/09
to visual-...@googlegroups.com
David,

The C++ programs must be developed *for* Windows platform. If it is, the
VC++ can be used to compile the source code written on Linux.

Regards,
-Hieu

Kira Qian

unread,
Oct 12, 2009, 3:26:38 AM10/12/09
to Visual C++ Lovers
All VS version officially released by Microsoft can only be run on
Windows. It can compile VC code no matter where you write. In Linux
you can use g++ to compile the source code. When you turn to VS on
Windows, please create a new project in VS and copy the code to
compile.

Hope this helps.

lindach...@gmail.com

unread,
Nov 3, 2009, 5:10:53 AM11/3/09
to Visual C++ Lovers
because 3 main reasons you can not compile linux project in vc:
1. Many of them are using c99, which is not supported by vc

2. Many of them are depending on the autoconfig technology, which is
also not supported by vc

3.Many of them are using linux system include files and libs.
Reply all
Reply to author
Forward
0 new messages