Mail Archives: djgpp/1998/11/05/08:07:34
Dear users,
when you try to compile a program that needs to include the vector and the
math.h files, you have some error.
DJGPP 2.8.1 in dos environment.
Examples.
try to compile this simple source
#include <vector>
#include <math.h>
main()
{
}
you get a lot of errors-
c:/djgpp/lib/gcc-lib/djgpp/2.81/include/exception(20) Error: previous declara
c:/djgpp/include/math.h(79) Error: conflicts with new declaration with C link
c:/djgpp/lib/gcc-lib/djgpp/2.81/include/exception(20) Error: previous declara
c:/djgpp/include/math.h(79) Error: conflicts with new declaration with C link
There were some errors
this because there's a multiple declaration in either files
in <vector>
class exception
in <math.h>
struct exception
The only workaround is to define EXCEPTION before the <vector> include
#include <math.h>
#define __EXCPTION__
#include <vector>
main()
{
}
Is this a feature or a bug ?
TIA
>>scritta da ''~``
Stefano Del Furia ( o o )
__________________________________.oooO--(_)--Oooo._
| ___/ / _/__ www.geocities.com/SiliconValley/3546/ |
|/ _ / _(_-< Dipartimento di Informatica |
|\_,_/_//___/ delfo AT tech-center DOT com .oooO |
|ITIS "E.FERMI" Bibbiena 52010 AR IT ( ) Oooo. |
|_____________________________________\ (____( )___|
La TEORIA è quando si conosce tutto, \_) ) /
ma non funziona niente. (_/
La PRATICA è quando funziona tutto,
ma non si sa il perché.
Il nostro obiettivo è unire TEORIA e PRATICA
(-: Non funziona NIENTE e non si sa il PERCHE' :-)
- Raw text -