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.........
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top