converting windows vc++ code into linux kdevelop code


G

gitasoumya

Hai,
i am newer of linux,
i have a windows vc++ code...is it possible to complie the linux
os....how can??i am search in google... but not clearly...pls help me
any one.........
 
Ad

Advertisements

J

James Kanze

i am newer of linux,
i have a windows vc++ code...is it possible to complie the linux
os....how can??i am search in google... but not clearly...pls help me
any one.........

The C++ code shouldn't cause any problems. Any system calls,
etc., and any use of Microsoft extensions will, however. If
you're aware of the problem up front, of course, these will be
well encapsulated, and you'll just have to rewrite the couple of
modules which contains them. If you didn't do this, you'll
first have to refactor the code to do it, then port the
refactored code.
 
I

Ivan

Hai,
i am newer of linux,
 i have a windows  vc++ code...is it possible to complie the linux
os....how can??i am search in google... but not clearly...pls help me
any one.........

There are some levels about platform depended and none-depended.

C++ program following standard C++ language and utilizing C++ standard
library will port to other platform very easy. But in my options, VC++
doesn't following C++ standard fully, so if you port these program to
linux platform, there will be small modification.

If your window program, using Socket, or window Thread, you can change
them to linux socket, posix thread, etc...


If your window program utilizes some operating feature, you must found
the counterpart in linux.

Porting your program from one platform to another is a requiring
knowledge job. If you first to achieve this, you need more knowledge
about this platform and keep study and will become more experienced.

You can Google "porting" for more introduction about this issue.
 
R

robertwessel2

The Linux kernel is tied to GCC.  I'm not aware of Linux ever having
been compiled by anything but gcc.


It has been compiled with ICC (Intel's compilers).
 
G

gitasoumya

There are some levels about platform depended and none-depended.

C++ program following standard C++ language and utilizing C++ standard
library will port to other platform very easy. But in my options, VC++
doesn't following C++ standard fully, so if you port these program to
linux platform, there will be small modification.

If your window program, using Socket, or window Thread, you can change
them to linux socket, posix thread, etc...

If your window program utilizes some operating feature, you must found
the counterpart in linux.

Porting your program from one platform to another is a requiring
knowledge job. If you first to achieve this, you need more knowledge
about this platform and keep study and will become more experienced.

You can Google "porting" for more introduction about this issue.

ya,my vc++ code is using socket programming..we can change ...
pls help me any one
 
Ad

Advertisements

T

tharinda.gl

Hai,
i am newer of linux,
 i have a windows  vc++ code...is it possible to complie the linux
os....how can??i am search in google... but not clearly...pls help me
any one.........

Hi,
If I were you I would try to change my vc++ code to run with
some library like POCO. It will abstract out the underlying platform
dependent information and if it runs on windows then there is a good
change of it running on linux (hopefully).

Best!
Tharinda
 

Top