delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/17/14:12:59

From: "Al Amzeen (Alexandr Amzin)" <amzeen AT mtu-net DOT ru>
Newsgroups: comp.os.msdos.djgpp
Subject: C++, fonts and Allegro
Date: Mon, 17 Apr 2000 22:53:24 +0400
Organization: Fidolook Express page http://fidolook.da.ru
Lines: 28
Message-ID: <8dfmoo$1ga6$1@gavrilo.mtu.ru>
NNTP-Posting-Host: ppp108-112.dialup.mtu-net.ru
X-Trace: gavrilo.mtu.ru 955997784 49478 212.188.108.112 (17 Apr 2000 18:56:24 GMT)
X-Complaints-To: usenet-abuse AT mtu DOT ru
NNTP-Posting-Date: 17 Apr 2000 18:56:24 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Fidolook Express V1.51rus for MS OE 5.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I got a problem. Not very big, but annoyin'.

I cannot compile Allegro ex12.c as C++ source (it contains simple code for
changing font from grabber datafile).

What I got on exit:
D:\DJGPP\bta\beta>gcc -c -O -Wall ex12.cc -lalleg
ex12.cc: In function `int main(int, char **)':
ex12.cc:41: warning: ANSI C++ forbids implicit conversion from `void *' in
argum
ent passing
ex12.cc:45: warning: ANSI C++ forbids implicit conversion from `void *' in
argum
ent passing
ex12.cc:48: bad argument 2 for function `void textout(struct BITMAP *,
struct FO
NT *, unsigned char *, int, int, int)' (type was void *)
ex12.cc:23: warning: unused parameter `int argc'


I'm using Allegro 3.11 (I know that it is old, but it seems to me that there
is another bug, because ex12 compiles as C code perfectly).

That's it.

Any suggestions?


- Raw text -


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