LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-26-2003, 01:30 AM   #1
lory
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
c++ difference between linux and windows


How to porting from windows to linux?

I am on a porting project, porting from windows to linux.

Can anybody told me what difference from vc++ to gcc in linux .
 
Old 09-26-2003, 02:13 AM   #2
Mohsen
Member
 
Registered: Feb 2003
Location: Iran
Distribution: Solaris 10
Posts: 201

Rep: Reputation: 30
That depends on libraries you have used in VC++.
If you just wrote an ANSI C++ code then there is no problem with porting it to any ANSI compiler, such as GCC. But that's of very low probablity that some one write a big code wich can be port for the first time to any platform.

So tell us wich libraries you have used? Is it a MFC app? .NET? etc.
 
Old 09-26-2003, 02:27 AM   #3
lory
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
We didn't used MFC or .net, only windows api.
But used some windows special character, like thread.

I never programming on Linux, so want to know where can I find a developing guid document which describe difference between c++ in windows and linux.

Thanks a lot.
 
Old 09-26-2003, 06:18 AM   #4
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
Go here and you will know about programming in Linux ...

http://www.advancedlinuxprogramming.com/alp-folder
 
Old 09-26-2003, 06:45 AM   #5
dakensta
Member
 
Registered: Jun 2003
Location: SEUK
Distribution: Debian & OS X
Posts: 194

Rep: Reputation: 35
Which VC and which gcc?

For example (and these are off the top of my head as issues that have affected me) VC6 has the for-scope problem, VC7 must have inner template classes defined inline, numeric_limits didn't appear until gcc3 ...

And how much of the windows api? Lots of windows and COM objects or are you just using structures like BITMAP?

Maybe you should consider running the application through wine http://www.winehq.com/ or more specifically using winelib, seeing as you skipped the MFC (I don't blame you) - http://www.winehq.org/site/docs/winelib-user/index ?

I think that you can find a portable thread library at http://www.boost.org - I haven't used this library myself but their other stuff has been pretty useful.
 
Old 09-26-2003, 08:40 AM   #6
lory
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
thanks a lot, you are really good man, dakensta.
 
  


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
Difference b/w linux BIND & windows DNS kami146 Linux - Networking 2 10-16-2009 05:33 AM
encoding speed difference linux and windows shanenin Linux - Software 6 08-09-2004 07:40 AM
A question about the difference between Linux and Windows Kernels ludwig W General 29 04-16-2004 03:44 AM
CD-ROM file format difference between windows and linux kas5058 Linux - Software 1 03-21-2004 04:13 AM
difference between c++ in windows and linux gtgoku Slackware 4 10-26-2003 09:23 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:31 AM.

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