LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-11-2008, 07:57 AM   #1
sridhar_dct3
Member
 
Registered: May 2007
Location: india,chennai
Distribution: debian,ubuntu linux
Posts: 30

Rep: Reputation: 15
Thumbs down Windows to Linux porting


Hi,

I am trying to port a application written in windows visual C++ to linux g++. Before I started this job, I was thinking everything is possible in linux than windows atleast on the developer point of view.

But, after started this job, I am quite unhappy that some of the libraries provided by msdn is not available in linux. I don't find equivalent or better than windows library . But, I am fairly confident that linux is more reliable and everything is open(though).

Some example problems I faced while porting the application are :

1) uptime - there is no system call available in linux(need to find out from /proc/uptime)

2) timesetEvent - There is no equivalent function or utility available in linux c++.

3) getUDPTable - No library available. Need to parse /proc/net/udp

4) There is a "Microsoft Developer Network" site which provides all the required library details and complete reference,documentations.

I am very much pity that there is no for linux. but, I don't lose my fire or interest on linux for all these small problems. If possible I will contribute some open source library. If you can give some help, it would be helpful for me.

When I will like linux completely is that when I started developing some application there should be a site which should give help of complete library and routines for all the languages. linux is still in progress...
 
Old 12-11-2008, 08:30 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,661

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by sridhar_dct3 View Post
Hi,

I am trying to port a application written in windows visual C++ to linux g++. Before I started this job, I was thinking everything is possible in linux than windows atleast on the developer point of view.

But, after started this job, I am quite unhappy that some of the libraries provided by msdn is not available in linux. I don't find equivalent or better than windows library . But, I am fairly confident that linux is more reliable and everything is open(though).

Some example problems I faced while porting the application are :

1) uptime - there is no system call available in linux(need to find out from /proc/uptime)

2) timesetEvent - There is no equivalent function or utility available in linux c++.

3) getUDPTable - No library available. Need to parse /proc/net/udp

4) There is a "Microsoft Developer Network" site which provides all the required library details and complete reference,documentations.

I am very much pity that there is no for linux. but, I don't lose my fire or interest on linux for all these small problems. If possible I will contribute some open source library. If you can give some help, it would be helpful for me.

When I will like linux completely is that when I started developing some application there should be a site which should give help of complete library and routines for all the languages. linux is still in progress...
Libraries provided by Microsoft, have nothing to do with Linux. Everything you've stated, has equivalents in Linux, you just haven't found them yet.

You say you're moving from "MICROSOFT VISUAL C++"....that's Microsoft's version of what they think C++ should be, not a 'standard' C++. There are hundreds of sites that have many libraries and routines, for more languages than Windows support.
 
Old 12-11-2008, 10:07 AM   #3
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
as for the uptime, there is a systemcall 'sysinfo' which can get you the uptime.
 
Old 12-11-2008, 11:48 PM   #4
sridhar_dct3
Member
 
Registered: May 2007
Location: india,chennai
Distribution: debian,ubuntu linux
Posts: 30

Original Poster
Rep: Reputation: 15
Hi mr.TB0ne,

I do accept your words, in fact I am a very good fan of linux . I used to argue if someone says windows is better.

But.. I think still I am not convinced totally..

Quote:
Libraries provided by Microsoft, have nothing to do with Linux. Everything you've stated, has equivalents in Linux, you just haven't found them yet.
-> You are true. I did not find the answer. My problem is I am not able to find it out very easily. Incase of windows they have a single site and they have complete reference. Incase of linux there are so many sites which gives reference for different different libraries, but not all at once.

Quote:
You say you're moving from "MICROSOFT VISUAL C++"....that's Microsoft's version of what they think C++ should be, not a 'standard' C++. There are hundreds of sites that have many libraries and routines, for more languages than Windows support.
-> There are hundreds of libraries but when I did google it's confusing. No place I found the answer for the above three doubts.

For uptime I got the answer. For others I still don't have answers .
If you know some developer resource, kindly give me the urls of those sites.

On the whole what I am trying to say is that though windows has limited environment it helps the developer to use their libraries irrespective of whether they follow standard or not. Definitely it has it's own limitations.

On the linux side, it has a versatile environment and powerful, reliable, stable libraries and kernel . But the problem I see here is unavailability of those to the developers.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux to windows porting Atrocity Linux - Software 5 02-19-2013 08:36 AM
Porting of a Windows App to Linux gnraghu Programming 1 09-09-2006 10:10 AM
Porting of a Windows App to Linux gnraghu Programming 1 09-08-2006 02:57 AM
porting files from Linux to Windows? Hosiah Linux - General 2 02-23-2006 05:11 PM
porting windows ce code to linux rainmann Programming 7 06-12-2003 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration