www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/11/23:02:43

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: OOP and ALLEGRO
Date: 11 May 1997 19:55:37 GMT
Organization: Oxford University, England
Lines: 15
Message-ID: <5l587p$7pa@news.ox.ac.uk>
References: <3370A52D DOT 5372 AT mailbox DOT swipnet DOT se>
NNTP-Posting-Host: sable.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Krystyna de Heras (krystyna DOT de DOT heras AT mailbox DOT swipnet DOT se) wrote:

: Allegro is C and OOP is CC/C++. Is it possible to just include OOP in
: C-files and compile?

You can write C++ files which use Allegro; that shouldn't be a problem at
all. Just end your filenames with `.cc' instead of `.c' and you'll be
writing C++ programs. Use gxx as the linker, still put `-lalleg' on the
end of the command line. #include <allegro.h> as normal.

FYI the setup program that comes with Allegro is C++.

-- 
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019