delorie.com/archives/browse.cgi | search |
From: | "SimonK" <simonkeogh AT hotmail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Allegro and MFC problem |
Date: | Mon, 10 Jan 2000 21:50:57 +1100 |
Organization: | Zip World/Pacific Internet |
Lines: | 40 |
Message-ID: | <85cd80$5n4$1@the-fly.zip.com.au> |
References: | <85a38i$n0u$1 AT news DOT cc DOT ucf DOT edu> |
NNTP-Posting-Host: | kenny109.zip.com.au |
X-Trace: | the-fly.zip.com.au 947501120 5860 61.8.18.237 (10 Jan 2000 10:45:20 GMT) |
X-Complaints-To: | news AT zipworld DOT com DOT au |
NNTP-Posting-Date: | 10 Jan 2000 10:45:20 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.1 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
It looks from the error message that MFC, or something in your code defines something as 'BITMAP' wich will obviously render it incompatible with 'Allegro' which typedefs BITMAP to something of it's own. same with the other error messges. they prolly won't work together, can't see why you'd want to use them together, maybe you should drop MFC or use DirectX instead of allegro?? Ryan M Gumbs wrote in message <85a38i$n0u$1 AT news DOT cc DOT ucf DOT edu>... >I'm trying to compile and application using the MFC AppWizard under >MSVC 6.0 and no matter where I place the ---#include <allegro.h>--- I keep >getting the following error below. This isn't a djgpp question but this >seems to be THE site for allegro discussion. > >How do I make it so that it compiles smoothly. >Thanks to all who reply. >Ryan. > >--------------------Configuration: mymfc - Win32 Release------------------- >Compiling... >StdAfx.cpp >c:\allegro\include\allegro.h(69) : error C2371: 'BITMAP' : redefinition; >different basic types > C:\Program Files\Microsoft Visual >Studio\VC98\INCLUDE\wingdi.h(486) : see declaration of 'BITMAP' >c:\allegro\include\allegro.h(130) : warning C4005: 'ASSERT' : macro >redefinition > C:\Program Files\Microsoft Visual >Studio\VC98\MFC\INCLUDE\afx.h(245) : see previous definition of 'ASSERT' >c:\allegro\include\allegro.h(131) : warning C4005: 'TRACE' : macro >redefinition > C:\Program Files\Microsoft Visual >Studio\VC98\MFC\INCLUDE\afx.h(250) : see previous definition of 'TRACE' >Error executing cl.exe. > >mymfc.exe - 1 error(s), 2 warning(s) >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |