Does anyone know of a linux clone? I want to compile some code that was written using Ms Visual C++, on my linux machine. Is this possible or am I barking up the wrong tree? Thanks for any advice. Eddie
On Tuesday 14 May 2002 11.09, Eddie Howson wrote:
Does anyone know of a linux clone? I want to compile some code that was written using Ms Visual C++, on my linux machine. Is this possible or am I barking up the wrong tree?
It depends on what the code looks like. If it was written using MFC you're in for some porting work. If it's C++ à la Soustroup it should probably compile as is. There are a few articles on porting MFC programs using various toolkits http://www-106.ibm.com/developerworks/linux/library/l-mfc/ is one from IBM. It might also be possible using a combination of ingenuity and wine (possibly both kinds :). I know you get the source for the MFC wrapper classes along with MSVC++, it just might be possible to compile against wine using them, but I haven't tried it. It is one of the stated goals of the wine project (www.winehq.com) though. regards Anders
Alle 11:17, martedì 14 maggio 2002, Anders Johansson ha scritto:
On Tuesday 14 May 2002 11.09, Eddie Howson wrote:
Does anyone know of a linux clone? I want to compile some code that was written using Ms Visual C++, on my linux machine. Is this possible or am I barking up the wrong tree?
It depends on what the code looks like. If it was written using MFC you're in for some porting work. If it's C++ à la Soustroup it should probably compile as is.
I was running on the opposite path today. I was porting some simple program of
mine to Visual C++. The program was written "a la stroustrup", but while it
was compiling with gcc, it did not with Visual C++. At first I got only one
error: Visual C++ does not know anything about
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 14 May 2002 05:07 pm, Praise wrote:
Alle 11:17, martedì 14 maggio 2002, Anders Johansson ha scritto:
On Tuesday 14 May 2002 11.09, Eddie Howson wrote:
Does anyone know of a linux clone? I want to compile some code that was written using Ms Visual C++, on my linux machine. Is this possible or am I barking up the wrong tree?
It depends on what the code looks like. If it was written using MFC you're in for some porting work. If it's C++ à la Soustroup it should probably compile as is.
Could you port it with MFC's and all if you used Winelib? -Tim - -- - ---------------------------------------------------------------- Timothy R. Butler tbutler@uninetsolutions.com Universal Networks http://www.uninet.info Christian Portal and Search Tool: http://www.faithtree.com Open Source Migration Guide: http://www.ofb.biz ============= "Christian Web Services Since 1996" ============== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE84YzqK37Cns9gJ0gRAt/WAJ9CpUrJ6nDMEo03yCqfJDhGI6YhNwCfatSL KpLVEsOzeL8FU2up3IXmeXw= =HyAO -----END PGP SIGNATURE-----
On Wednesday 15 May 2002 00.07, Praise wrote:
one error: Visual C++ does not know anything about
, I had to
As I've said before my feelings about c++ would be censored in Playboy :)
However, I was under the impression that the
Alle 15:36, mercoledì 15 maggio 2002, Anders Johansson ha scritto:
On Wednesday 15 May 2002 00.07, Praise wrote:
one error: Visual C++ does not know anything about
, I had to As I've said before my feelings about c++ would be censored in Playboy :)
Why?
However, I was under the impression that the
syntax is C/C++, not pure c++. i.e. it works in a compiler that accepts mixed c and c++ but not one that requires pure c++. Is that wrong? //Anders
No, you are not, AFAIK. Maybe, my example was not very good... but porting between such different compilers (Gcc and VC++) is a big challenge. Praise
Praise
... . At first I got only one error: Visual C++ does not know anything about
, I had to revert to <vector>, then I had a growing up number of errors from everywhere.
The original STL from SGI used
On 15 May 2002, Praise wrote:
[....] Visual C++ does not know anything about
, I had to revert to <vector>, then I had a growing up number of errors from everywhere.
This is a _good_ thing. C++ headers should not end with ".h".
e.g.,
<iostream>, not
Visual C++ is very different from gcc and, as usual, it is not fully standard compliant: so even if you are close to the standard you need a HUGE amount of luck to work it out!
yes, Visual C++ is not very standards compliant. Supposedly Visual .NET is more so. For example, calling the function std::max() fails, because max() is already defined in some Windows library. I, however, have started using STLport (http://www.stlport.com), and have never been happier. It strives for complete ISO C++ conformance and speed. I have never had any problems with them. -- Karol Pietrzak PGP KeyID: 3A1446A0
On Tuesday 14 May 2002 02:09, Eddie Howson wrote:
Does anyone know of a linux clone? I want to compile some code that was written using Ms Visual C++, on my linux machine. Is this possible or am I barking up the wrong tree?
Thanks for any advice.
Eddie A few of the problems may be dealt with by adapting the cygwin headers, regardless of which C++ you choose. -- Tim Prince
If it is MFC based you might want to take a look at:
http://www.wxwindows.org
It will take some cleanup but a MFC programmer should be able to
follow the wxWindows classes.
On Tue, 14 May 2002 10:09:19 +0100, Eddie Howson
Does anyone know of a linux clone? I want to compile some code that was written using Ms Visual C++, on my linux machine. Is this possible or am I barking up the wrong tree?
Thanks for any advice.
Eddie
participants (8)
-
Alexandr Malusek
-
Anders Johansson
-
Eddie Howson
-
Karol Pietrzak
-
Paul Benjamin
-
Praise
-
Tim Prince
-
Timothy R. Butler