Fedora Linux Support Community & Resources Center
Old 14th June 2005, 12:02 AM
Gav Offline
Registered User
Join Date: Jun 2005
Posts: 5
C++ Windows console to Linux Console porting


I was wondering if anyone could point me in the direction of an 'excellent' faq or even book that covers the finer details of C++ development on Linux, especially in relation to an advanced windows coder making the change over.

I have a couple of fairly complex console screen management librarys written in 'Borland' C++ that I think that porting them would make an excellent learning exercise to better understand the methods of linux development.

I am looking more for a guide on linux devlopment specifics and methods, than a guide to C++.

Also any good information on ASM development for the linux platform such as assemblers and interupt lists would be very helpful.

I have only in the past used linux for hosting and testing web projects but feel it is time to jump in to some more serious and useful linux devlopment.

Any document recommendations would be greatly appreciated.

Thanks in advance
Reply With Quote
Old 14th June 2005, 08:05 AM
Daverz Offline
Registered User
Join Date: May 2004
Posts: 128
I see a few things on freshmeat.net:


You might want to use ncurses or the slang screen handling library instead so that your code works in a terminal emulator as well as the console. I've written slang programs that work in a windows DOS box as well as an xterm. This topic has come up here before, BTW.

For the other things google is your friend.

I should point out that the unix API is a C API. You can find C++ wrappers for various things, though. Try looking around on freshmeat. Also frameworks like Qt or wxPython insulate you somewhat from OS differences.
Reply With Quote
Old 14th June 2005, 09:55 AM
Gav Offline
Registered User
Join Date: Jun 2005
Posts: 5
Thanks for the link and the info

Great stuff.

If C is native I shall concentrate on C.


Last edited by Gav; 14th June 2005 at 10:01 AM.
Reply With Quote
Old 14th June 2005, 10:09 AM
bitrain Offline
Registered User
Join Date: Nov 2004
Location: Netherlands
Age: 27
Posts: 1,426
C++ will work too, I program in it (not very complex things though) on Linux and never had any problems.
Registered Linux user number 389291

Laptop: Nec Versa p550, Pentium M 1.86GHz, 1024MB ram, x300, 80 GB HD, bluetooth, 2915BG Wlan card
Desktop: Amd Athlon x2 4200+, 2GB ram, Geforce 7300GT 512MB silent, 160GB HD in a nice centurion 534 case :cool:
Reply With Quote
Old 14th June 2005, 06:11 PM
Daverz Offline
Registered User
Join Date: May 2004
Posts: 128
Originally Posted by Gav
Thanks for the link and the info

Great stuff.

If C is native I shall concentrate on C.

By all means use C++ if it makes your life easier (e.g. by using STL). C probably seems pretty austere after using modern C++, and g++ is a good C++ compiler. But most of the online and paper docs specifc to Linux programming (as opposed to more general frameworks that happen to run on Linux, like Qt) use C.
Reply With Quote

console, linux, porting, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting a serial console on bootup (but keep KVM console) ocgltd Hardware & Laptops 0 7th September 2008 05:38 PM
Trying to use my Linux box to connect to router via console rbooth Servers & Networking 2 29th August 2006 02:54 AM
How to get the tomcat console window using linux Ramesh Using Fedora 1 22nd April 2005 09:42 AM
Create a Framebuffer Console like on SuSE Linux? creiter Using Fedora 0 13th March 2005 08:33 PM

Current GMT-time: 21:36 (Friday, 30-01-2015)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Wattamolla Beach Instagram Photos - Rataskaevu 16 Travel Photos - Yugo-Zapadnaya Photos - Cerveja Azul Photos - Marina Porto Carras Instagram Photos