Newsgroups: comp.os.msdos.djgpp Followup-To: poster From: frenchc AT cadvision DOT com (Calvin French) Subject: ; getting "exception" redef'n (halp!!!) Date: Tue, 09 Jun 1998 09:21:48 GMT NNTP-Posting-Host: ts52ip101.cadvision.com Message-ID: <357cfdb2.0@news.cadvision.com> Organization: CADVision Development Corporation (http://www.cadvision.com/) Lines: 64 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk When I try and compile: --- snip --- #include #include void main() { }; --- snip --- I get the following error messages: --- snip --- test.cc(2) In file included from test.cc:2: c:/djgpp/include/math.h(73) Error: redefinition of `class exception' c:/djgpp/lib/gcc-lib/djgpp/2.80/include/exception(20) Error: previous definition here c:/djgpp/lib/gcc-lib/djgpp/2.80/include/exception(20) Error: previous declaration of `exception::exception(const struct exception &)' with C++ linkage c:/djgpp/include/math.h(79) Error: conflicts with new declaration with C linkage c:/djgpp/lib/gcc-lib/djgpp/2.80/include/exception(20) Error: previous declaration of `struct exception & exception::operator =(const struct exception &)' with C++ linkage c:/djgpp/include/math.h(79) Error: conflicts with new declaration with C linkage c:/djgpp/include/math.h(79) Error: confused by earlier errors, bailing out --- snip --- =( Short of adding my own ____________CALVINS_KLUDGE_0001 I'm not sure how to work around this, actually I'm avoiding using the math libs in some portions of code right now, and this style of coding is going to get old /really/ quick, if you follow. Can somebody please help me? I don't think I ever had problems like this before, and I /thought/ I had used 2.8.0 w/ math.h, but perhaps I had never mixed it w/ STL. Well anyways, any help would be greatly appreciated. Thanks, - Calvin - --- http://www.cadvision.com/frenchc/ (Wig out, peeps.) B013CD10B7A08EC3B2C8B940018BC133C2AAE2F9FECA75F2B407CD21B80300CD10C3