Subj : Too many types in declaration? To : borland.public.cpp.borlandcpp From : Alberto Date : Thu Mar 03 2005 01:40 pm Hey guys, I'm currently migrating some application written in c++ for a HP UNIX box to Windows I'm currently using the Borland 55 command line option and I get the following error message: E:\ASasso\tgss_source>c:\borland\bcc55\bin\bcc32.exe edsFiles.cpp Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland edsFiles.cpp: Error E2176 edsTypes.h 25: Too many types in declaration Warning W8057 edsFiles.cpp 164: Parameter 'changedOnlyFlag' is never used in fun ction EDSFile::NewBuffer(const EDSTime &,int) Warning W8066 edsFiles.cpp 818: Unreachable code in function SixtyByteFile::SetR ecord(char *) *** 1 errors in Compile *** Below is the contents of my .h file: /* * $Source: /homeDev/devbobw/tgss/tgss_std/RCS/edsTypes.h,v $ * $Revision: 1.2 $ * $Date: 2002/10/31 13:26:48 $ * * $Log: edsTypes.h,v $ * Revision 1.2 2002/10/31 13:26:48 13:26:48 rwiegand * Removed dependency on RogueWave Tools.h++ * */ #ifndef _H_EDSTYPES_H #define _H_EDSTYPES_H #ifdef MAX_LENGTH #undef MAX_LENGTH #endif #define MAX_LENGTH 2000 //max length for each line in input file //type definition typedef unsigned char Byte ; typedef unsigned short Int2 ; typedef short SignedInt2 ; typedef unsigned long Int4 ; typedef long long Int8 ; typedef float Real4 ; typedef double Real8 ; static const Real8 MICROSECONDS_TO_SECONDS = 1.0E-6; static const Real8 MILLISECONDS_TO_SECONDS = 1.0E-3; static const Real8 MINUTES_TO_SECONDS = 60.0; static const Real8 HOURS_TO_SECONDS = 3600.0; static const Real8 SECONDS_TO_MILLISECONDS = 1.0E+3; static const Real8 SECONDS_TO_MICROSECONDS = 1.0E+6; static const Int8 SECONDS_PER_DAY = 86400; static const Real8 MILLISECONDS_TO_MICROSECONDS = 1.0E+3; static const Real8 MILLISECONDS_PER_DAY = 86400 * 1.0E+3; static const Int2 MNEMO_LENGTH = 50 ; static const Real8 MAX_FREQ = 65.536 ; static const Int2 ID_LENGTH = 20; static const Int2 VALUE_LENGTH = 21; #include #include using std::string; typedef std::vector INDICES; typedef std::vector LIST; #ifdef TGSS_HASH_MAP #include typedef std::hash_map MAP; #else #include typedef std::map MAP; #endif #endif //_H_EDSTYPES_H What can I do to resolve this? .