|
From: Carlos d. M. <cg...@wo...> - 2002-09-27 11:55:29
|
the matter is that some things are defined in both headers, like
color{BLACK, RED, etc}, so when the compiler finds them it either conside=
r
redefinition or doesn't know what to use. I don't know how you can solve
this including both files.
I propose delete the inclusion of conio and see what happens, or make a
tedious work: edit conio and everything that's defined in both, change it=
s
name, and then save it in another file (eg, from conio.h and conio.c to
myconio.h and myconio.c), and then substitute conio with myconio in the
includes.
Jorge Alzate escribi=F3:
> Vin=EDcius Andre Pinto escribi=F3::
>
> > Hi my name is Vinny.
> > I'm Beginner in Dev C++.
> > Who can help me??
> > I tried to use graphics funtions in a Dev C++ 5 using the
> > "winbgim.h" but i had a lot of problems
> > My Dev C++ show message like this:
> > 23 C:\Dev-Cpp\BGI\bgidemo0.cpp In file included from
> > C:\Dev-Cpp\BGI\bgidemo0.cpp
> > 59 C:\DEV-CPP\include\winbgim.h conflicting types for `enum
> > colors BLACK'
> > 25 C:\DEV-CPP\include\conio.h previous declaration
> > as `enum COLORS BLACK'
> > 59 C:\DEV-CPP\include\winbgim.h conflicting types for
> > `enum colors BLUE'
> > 26 C:\DEV-CPP\include\conio.h previous declaration
> > as `enum COLORS BLUE'
> > I was compiling a demo code from BGI functions
> > I need to use graphics functions in a console application, if
> > someone Know how can do this in a Dev C++, please send me
> > answer.
> >
> > I would like to know where can find a good documentation
> > about Dev C++.
> > Thanks
> > Vinny
> >
> Hmmm... I guess it is a wrong definition in either conio.h or winbgim.h=
,
> try open both and edit'em.
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|