Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > converting windows vc++ code into linux kdevelop code

Reply
Thread Tools

converting windows vc++ code into linux kdevelop code

 
 
gitasoumya@gmail.com
Guest
Posts: n/a
 
      03-08-2009
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.........
 
Reply With Quote
 
 
 
 
James Kanze
Guest
Posts: n/a
 
      03-08-2009
On Mar 8, 12:26 pm, gitasou...@gmail.com wrote:

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

--
James Kanze (GABI Software) email:
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

 
Reply With Quote
 
 
 
 
Ivan
Guest
Posts: n/a
 
      03-09-2009
On Mar 8, 7:26*pm, gitasou...@gmail.com wrote:
> 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.
 
Reply With Quote
 
robertwessel2@yahoo.com
Guest
Posts: n/a
 
      03-10-2009
On Mar 8, 7:48*am, Jeff Schwab <j...@schwabcenter.com> wrote:
> gitasou...@gmail.com wrote:
> > 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 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).
 
Reply With Quote
 
Bo Persson
Guest
Posts: n/a
 
      03-10-2009
Jeff Schwab wrote:
> wrote:
>> On Mar 8, 7:48 am, Jeff Schwab <j...@schwabcenter.com> wrote:
>>> gitasou...@gmail.com wrote:
>>>> 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 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).

>
> Thanks; I had heard something like that, and forgotten it.
>
> http://software.intel.com/en-us/arti...rnel-building/
>
> Intel must really have jumped through some hoops for this.


They claim that their compiler is a drop in replacement for gcc. How
else would they prove that?


The other compiler manufacturers seem a lot less interested in
compiling Linux kernels anyway.


Bo Persson


 
Reply With Quote
 
gitasoumya@gmail.com
Guest
Posts: n/a
 
      03-10-2009
On Mar 9, 7:06*pm, Ivan <linyongt...@gmail.com> wrote:
> On Mar 8, 7:26*pm, gitasou...@gmail.com wrote:
>
> > 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.


ya,my vc++ code is using socket programming..we can change ...
pls help me any one
 
Reply With Quote
 
tharinda.gl@gmail.com
Guest
Posts: n/a
 
      03-11-2009
On Mar 8, 4:26*pm, gitasou...@gmail.com wrote:
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting windows vc++ code into linux kdevelop code gitasoumya@gmail.com C++ 1 03-08-2009 12:41 PM
problems with linking a dynamic shared library using kdevelop 2.1 and linux fedora(1) Lior Sapir C++ 1 03-30-2005 11:39 PM
Shifting to KDevelop Roy Schestowitz C++ 4 01-21-2005 05:10 PM
Need help!! (Compiling in KDevelop) Mike Wahler C++ 3 06-24-2004 05:30 AM
Kdevelop c/c++ mix Peter Tawdross C++ 2 07-23-2003 05:24 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57