LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-15-2001, 08:22 AM   #1
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
C++ libraries for Linux...


Just bought a really old book on C++ programming (it was only 50p). Got me thinking, since this is all aimed at Borland C++ for Windows (3.1):

a) Would I be able to compile any of my programs nicely for WinME with GCC?

b) Since it calls on a fair-few Windows libraries, are there any places on-line which do a good comparison of Windows libraries and the Linux equivalents?

Basically I have only ever used BBC Basic, QBasic, VB (see a common thread here) and I did a little on Pascal. I am trying to teach myself C++ in my spare time (in between presentations, courseworks, boring lab work with viruses, really boring lectures on viruses, etc) and would prefer to be able to run my nice 'hello-world' type programs under Linux.
 
Old 11-15-2001, 11:23 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well, many of the fancy / low-level libraries are different, and have different names. I guess they have different names because they work differently, and blindly beign able to cross compile ain't a good thing if the program might end up doing something didgy under a different os... i think that the unix stdio.h is called somethign different under windows, can't remember tho. It's worth tryign tho, the theory should all be there, and the genreal code should be,. id' guess, 98% similar, a fwe minor hacks would probably benefit you to find out which libs actaulyl do what...

incidentally, printf is (according to my SAMS C++ book) officially obselete now, and cout should be used instead, but on the default installation on MD80 iostream is hidden away somewhere nasty... g++/iostream.h i think. anyone got any views on this?
 
  


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
Libraries on 'Other' Linux Machines moetman Linux - Software 1 09-13-2005 11:19 PM
Linux Libraries... DarthSabbath Linux - Software 1 10-25-2004 12:47 AM
Linux Dynamicly Linked Libraries sikil_nuru Programming 3 03-16-2004 07:51 AM
using linux compat libraries acid_kewpie *BSD 4 12-24-2002 02:55 PM
linux dynamic libraries aizkorri Programming 4 10-09-2002 03:26 AM

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

All times are GMT -5. The time now is 12:56 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