Message-Id: <200503252319.j2PNJenQ014534@delorie.com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Brian K. Whatcott" To: Subject: Errors in #include files when compiling a Legacy C++ Application Date: Fri, 25 Mar 2005 16:19:14 -0700 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0000_01C53156.63C0B7D0" X-ELNK-Trace: 157be3e9f86a265b71639b933de7ae6f7e972de0d01da940d0bd7a20b7226579c5488f249b77b11c350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Note-from-DJ: This may be spam ------=_NextPart_000_0000_01C53156.63C0B7D0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi! Our legacy C++ application was written on SGI IRIX using older compiler features. Last year, we ported it to SuSe Linux (both 8.2 and 9.1). We have had a few challenges, but nothing big. Recently, I have been asked to get the application to run on MS-Windows, with very little time. I looked around, and have found 2 possible solutions Cygwin and VmWare. I installed Cygwin yesterday with no errors. I moved my source onto the MS-Windows PC, and tried to compile. At first, several include files could not be found (we had similar problems in the Linux port). I found the files, and changed my makefile. Then, there were a lot of errors, but they were in the include files. I started to look inside the include files, but it was confusing. I am including the beginning of the source file that won't compile, a file with the error messages, my makefile, and an included "sub" make file (make.source). The makefile uses an environment variable (OSTYPE) that is set by SuSe to "linux". I have manually set this variable before calling make. I am confused, because the two flavors of SuSe use g++ 3.2 and 3.3.4, and there wasn't a big problem going from 3.2 to 3.3.4. Since Cygwin uses g++ 3.3.3, I would think that the code that works on 3.3.4 (SuSe 9.1) would be a no brainer. I think there must be something simple that I have done wrong. I have looked at your FAQ, and made several searches on the mailing lists, and have not found this problem, so I hope you don't mind helping me. If there is any other info that would help in diagnosing the problem, please let me know. (Is there a way to send you a list of packages that I installed, perhaps something is missing or I installed conflicting items). I will monitor the mailing list for replies. Thanks! Brian K. Whatcott Senior Software and Systems Engineer Millennium Engineering Integration (719) 264-4310, FAX (719) 264-4318 (719) 331-5100 (Cell) bwhatcott AT meicompany DOT com ------=_NextPart_000_0000_01C53156.63C0B7D0 Content-Type: application/octet-stream; name="BMC2_Delete_Msg.cc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="BMC2_Delete_Msg.cc" ///////////////////////////////////////////////////////////////////////////= ///// // // Classification: Unclassified // ///////////////////////////////////////////////////////////////////////////= ///// //-------------------------------------------------------------------------= ----- // // File Name: BMC2_Delete_Msg.cc // // Description: A derived class for BMC2 messages for sending delete messag= es // to the FCC in the KI Testbed. // // %Z% Revision: %I% %M% %H% // //*********************** Change History **********************************= ***** // // Date Engineer Description // ---- -------- -----------------------------------------------= ----- // 22Nov02 G. McKee Initial Creation. // 22Nov02 G. McKee added six new 'BMC2' subclasses as per SCR# 561 069 // 22Jan03 J. Freyschlag Added copy constructor and assignment operator. // 30Jun03 J. Freyschlag SCR 576503: Removed copy constructor and assign= ment // operator. Since no dynamic attributes, the defa= ults // work fine. (cleaned up some spacing) // 11Aug03 G. McKee adapted to 'gcc' compiler on SUSE LINUX 8.1 // 14oct03 G. McKee added 'Swap()' logic for LINUX // ///////////////////////////////////////////////////////////////////////////= ///// //*************************************************************************= **** // INCLUDES //*************************************************************************= **** #include #include #include "BMC2_Delete_Msg.hh" #include "SerialuStrm.hh" //*************************************************************************= **** // DEFINES //*************************************************************************= **** //*************************************************************************= **** // ENUMERATIONS //*************************************************************************= **** //*************************************************************************= **** // CONSTANTS //*************************************************************************= **** static const char ABORT_CMD[] =3D "\n abort_cmd: "; static const char EAN[] =3D "\t EAN: "; //*************************************************************************= **** // TYPEDEFS //*************************************************************************= **** //*************************************************************************= **** // GLOBAL VARIABLES //*************************************************************************= **** =20=20=20 //*************************************************************************= **** // STATIC DATA MEMBERS //*************************************************************************= **** //*************************************************************************= **** // EXTERNAL OBJECTS/FUNCTIONS //*************************************************************************= **** //*************************************************************************= **** // BMC2_Delete_Msg Class MEMBER FUNCTIONS //*************************************************************************= **** //////////////////////////////////////////////////////////////////////////// // // function name - ReadMsgBody // // Purpose: This function is called by 'ReadMsg' to do subclass specific // input of the subclass message body. This function reads in=20 // the ICR message BODY from a UniStream and returns a reference=20=20 // to the received message. The reference returned is a reference=20=20 // to the derived message type of the message read.=20=20=20 // In other words, if the format read in the ICR_Msg_Hdr is RADAR_FMT,=20= =20 // a RADAR_Msg& is returned in msgPtr; // // Inputs: inStream - the UniStream that the ICR_Msg is being read from // msgHeader - the msg header that has been received by 'ReadMsg' // // Output: msgPtr - the reference to the ICR_Msg body that has been read. // //////////////////////////////////////////////////////////////////////////// void BMC2_Delete_Msg::ReadMsgBody (UniStream* inStream,=20 ICR_Msg_Hdr msgHeader,=20 ICR_Ptr& msgPtr) { const char CSU[] =3D "ReadMsgBody: "; IO_Stat Stat; nat32 bodySize =3D sizeof( body ); // Number of Bytes in Message body uchar8* pBodyAddress =3D (uchar8*)&body; // Address of Message body nat32 calcCRC; nat32 xmtdCRC; =09 hdr =3D msgHeader; // ok, Read the body. if ( bodySize > 0 ) { Stat =3D inStream->Read( pBodyAddress, bodySize ); =09 // If error occurred while reading the body,=20 // then report it and run for your life if ( Stat !=3D OKAY ) {=09 writeError(CSU, "Error reading message body from ",=20 (char*)inStream->GetLabel()); if ( Stat !=3D TIMEOUT ) inStream->Close(); msgPtr =3D NULL; return; // ERROR RETURN } // end if } // end if (bodySize>0) =09 // Verify the CRC if this a serial port and a TTY. if (( inStream->UType() =3D=3D SERIAL ) && ((SerialuStream *)inStream)->= isTTY() ) { nat32 crcSz =3D sizeof(xmtdCRC); // Read the transmitted CRC Stat =3D inStream->Read( (uchar8 *)&xmtdCRC, crcSz );=20=20 if ( Stat !=3D OKAY ) { writeError(CSU, "Error in CRC while reading message from ", (char*)inStream->GetLabel()); if ( Stat !=3D TIMEOUT ) inStream->Close(); msgPtr =3D NULL; return; // ERROR RETURN } =09=09=09 // Calculate the CRC based on the header and body of message calcCRC =3D computeCRC( (uchar8 *)&msgHeader, sizeof(ICR_Msg_Hdr), FA= LSE ); calcCRC =3D computeCRC( pBodyAddress, bodySize ); =09=09=09 // Do the actual compare of the transmitted and calculated CRCs if ( xmtdCRC !=3D calcCRC) { writeError(CSU, "Failed reading via serial input from ",=20 (char*)inStream->GetLabel() ); writeError(CSU, ": Invalid CRC: ", xmtdCRC, "\t calculated: " ,= =20 calcCRC); msgPtr =3D NULL; return; // ERROR RETURN } // end if (xmtdCRC!=3DcalcCRC) } // end of the CRC logic =09 // fix the translation code into this location msgPtr =3D this; =09 } // end BMC2_Delete_Msg::ReadMsgBody (UniStream...) //////////////////////////////////////////////////////////////////////////// // function name - WriteMsg // // Purpose: This function writes a ICR message to a UniStream and // returns a bool indicating the write status. This parent // class method is called by derived classes after they copy // their data to a buffer. // // Inputs: outStream - the UniStream that the ICR_Msg is being read from // mvBuffer - if TRUE data is moved to buffer and written, // if FALSE data is written directly from the buffer // // Outputs: None //////////////////////////////////////////////////////////////////////////// boolean_tstt BMC2_Delete_Msg::WriteMsg( UniStream *outStream, bool mvBuffer= ) { // if the data is supposed to be moved, move the header. if ( mvBuffer ) { // copy the message body memcpy( writeBuf + sizeof(ICR_Msg_Hdr), &body, sizeof(body) ); } // call the parent class version of 'WriteMsg' to finish the job // note: the parent class will copy the header as appropriate return ICR_Msg::WriteMsg(outStream, mvBuffer); } // end WriteMsg () // ************************************************************* //=20 // function name - DisplaytoErrLog //=20 // Description: // Write pertinent Radar data to the Error Log. //=20 // Parameters: // MsgNumber - Sequential message number of data // being displayed. // RcvTime - Time of message receipt (in ascii // format. // ErrorMask - Error log mask value. //=20 // ************************************************************* void BMC2_Delete_Msg::DisplaytoErrLog( nat32 MsgNumber, char* RcvTime, int32 ErrorMask ) { ICR_Msg::DisplaytoErrLog( MsgNumber, RcvTime, ErrorMask ); errorlog << Level( ErrorMask );=20 errorlog << ABORT_CMD << body.abort_cmd << EAN << body.EAN << endl << ende; } // ************************************************************* //=20 // function name - DisplaytoLog //=20 // Description: // Write pertinent Radar data to the Comm log file. // // Parameters: // LogStream - Comm processor log file stream // MsgNumber - Sequential message number of data // being displayed. // RcvTime - Time of message receipt (in ascii // format. // // ************************************************************* void BMC2_Delete_Msg::DisplaytoLog( ofstream& LogStream, nat32 MsgNumber, char* RcvTime ) { ICR_Msg::DisplaytoLog( LogStream, MsgNumber, RcvTime ); LogStream << endl << "BMC2 Delete Message: "=09 << ABORT_CMD << body.abort_cmd << EAN << body.EAN << endl << endl; } // =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D BMC2_Delete_Msg::BMC2_Delete_Msg( DataSource source ) : ICR_Msg( source, LAUNCH_DELETE_FMT )=20=20 { hdr.body_length =3D sizeof (body); body.abort_cmd =3D ABORT_EAM; body.EAN =3D 0; } // end constructor () // =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D ///////////////////////////////////////////////////////////////////////////= //// // // BMC2_Engage_Msg::validateData - Validate Radar Data // // Parameters: None // // Returns: TT_TRUE - If contents of message are valid // TT_FALSE - If contents of message have invalid data // // This member function validates the contents of the radar data. // ///////////////////////////////////////////////////////////////////////////= //// boolean_tstt BMC2_Delete_Msg::validateData( ) {char* pNotUsed=3D""; return validateData( pNotUsed );} boolean_tstt BMC2_Delete_Msg::validateData( char* &pErrorTxt ) { // Initialize Error Text to Nothing pErrorTxt =3D ""; =09=20=20=20 // Create a Stream for generating error text. Static for performance a= nd // so that return pointer does not point to something on the stack // const int ERROR_BUFFER_SIZE =3D 256; // static char errorBuffer[ ERROR_BUFFER_SIZE ]; // static ostrstream errorStrm( errorBuffer, ERROR_BUFFER_SIZE ); // errorStrm.seekp( 0 ); // Reposition to start of stream // ******** // NOTE: no data field is checked, maybe there should be some checks // ******** =09 // If fell through then data is valid, so return true. return TT_TRUE;=20 } // end BMC2_Delete_Msg::validateData(char*) ///////////////////////////////////////////////////////////////////////= ///// // // function name - Swap // // Purpose: This function performs a byte swap of all the fields in a // DATA STRUCTURE. // // Inputs: inBody - The DATA STRUCTURE that should be swapped. // // Outputs: Returns a swapped DATA STRUCTURE. // ///////////////////////////////////////////////////////////////////////= ///// BMC2_Delete_Data BMC2_Delete_Msg::Swap (const BMC2_Delete_Data & inBody) { #if BYTE_ORDER !=3D LITTLE_ENDIAN return inBody; #else BMC2_Delete_Data outData; =20=20=20=20 outData.abort_cmd =3D (int32) byteswap( inBody.abort_cmd ); // will = 'byteswap' do ENUMs correctly? outData.EAN =3D byteswap( inBody.EAN ); // outData.future =3D byteswap( inBody.future ); // not needed, just= here for reference return outData; #endif } // end BMC2_Delete_Msg::Swap (BMC2_Delete_Data) ///////////////////////////////////////////////////////////////////////////= ///// // // Classification: Unclassified // ///////////////////////////////////////////////////////////////////////////= ///// ------=_NextPart_000_0000_01C53156.63C0B7D0 Content-Type: text/plain; name="error_msg.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="error_msg.txt" $ make mv: cannot stat `A_Linux/libshared.a': No such file or directory mv: cannot stat `A_Linux/*.d': No such file or directory mv: cannot stat `A_Linux/*.o': No such file or directory make: [get] Error 1 (ignored) g++ -fpermissive -w -g -I../lib -I/usr/X11R6/include -I../shared -I/usr/in= clude/machine -DOS_IS_LINUX -c BMC2_Delete_Msg.cc In file included from /usr/include/c++/3.3.3/cwchar:51, from /usr/include/c++/3.3.3/bits/fpos.h:45, from /usr/include/c++/3.3.3/iosfwd:49, from /usr/include/c++/3.3.3/ios:44, from /usr/include/c++/3.3.3/ostream:45, from /usr/include/c++/3.3.3/iostream:45, from /usr/include/c++/3.3.3/backward/iostream.h:32, from /usr/include/c++/3.3.3/backward/iomanip.h:32, from BMC2_Delete_Msg.cc:35: /usr/include/c++/3.3.3/ctime:68: error: `tm' not declared /usr/include/c++/3.3.3/ctime:70: error: `clock' not declared /usr/include/c++/3.3.3/ctime:71: error: `difftime' not declared /usr/include/c++/3.3.3/ctime:72: error: `mktime' not declared /usr/include/c++/3.3.3/ctime:73: error: `time' not declared /usr/include/c++/3.3.3/ctime:74: error: `asctime' not declared /usr/include/c++/3.3.3/ctime:75: error: `ctime' not declared /usr/include/c++/3.3.3/ctime:76: error: `gmtime' not declared /usr/include/c++/3.3.3/ctime:77: error: `localtime' not declared /usr/include/c++/3.3.3/ctime:78: error: `strftime' not declared In file included from /usr/include/c++/3.3.3/bits/stl_algobase.h:67, from /usr/include/c++/3.3.3/memory:54, from /usr/include/c++/3.3.3/string:48, from /usr/include/c++/3.3.3/bits/locale_classes.h:47, from /usr/include/c++/3.3.3/bits/ios_base.h:47, from /usr/include/c++/3.3.3/ios:49, from /usr/include/c++/3.3.3/ostream:45, from /usr/include/c++/3.3.3/iostream:45, from /usr/include/c++/3.3.3/backward/iostream.h:32, from /usr/include/c++/3.3.3/backward/iomanip.h:32, from BMC2_Delete_Msg.cc:35: /usr/include/c++/3.3.3/cstdlib:86: error: `div_t' not declared /usr/include/c++/3.3.3/cstdlib:87: error: `ldiv_t' not declared /usr/include/c++/3.3.3/cstdlib:89: error: `abort' not declared /usr/include/c++/3.3.3/cstdlib:90: error: `abs' not declared /usr/include/c++/3.3.3/cstdlib:91: error: `atexit' not declared /usr/include/c++/3.3.3/cstdlib:92: error: `atof' not declared /usr/include/c++/3.3.3/cstdlib:93: error: `atoi' not declared /usr/include/c++/3.3.3/cstdlib:94: error: `atol' not declared /usr/include/c++/3.3.3/cstdlib:95: error: `bsearch' not declared /usr/include/c++/3.3.3/cstdlib:96: error: `calloc' not declared /usr/include/c++/3.3.3/cstdlib:97: error: `div' not declared /usr/include/c++/3.3.3/cstdlib:98: error: `exit' not declared /usr/include/c++/3.3.3/cstdlib:99: error: `free' not declared /usr/include/c++/3.3.3/cstdlib:100: error: `getenv' not declared /usr/include/c++/3.3.3/cstdlib:101: error: `labs' not declared /usr/include/c++/3.3.3/cstdlib:102: error: `ldiv' not declared /usr/include/c++/3.3.3/cstdlib:103: error: `malloc' not declared /usr/include/c++/3.3.3/cstdlib:104: error: `mblen' not declared /usr/include/c++/3.3.3/cstdlib:105: error: `mbstowcs' not declared /usr/include/c++/3.3.3/cstdlib:106: error: `mbtowc' not declared /usr/include/c++/3.3.3/cstdlib:107: error: `qsort' not declared /usr/include/c++/3.3.3/cstdlib:108: error: `rand' not declared /usr/include/c++/3.3.3/cstdlib:109: error: `realloc' not declared /usr/include/c++/3.3.3/cstdlib:110: error: `srand' not declared /usr/include/c++/3.3.3/cstdlib:111: error: `strtod' not declared /usr/include/c++/3.3.3/cstdlib:112: error: `strtol' not declared /usr/include/c++/3.3.3/cstdlib:113: error: `strtoul' not declared /usr/include/c++/3.3.3/cstdlib:114: error: `system' not declared /usr/include/c++/3.3.3/cstdlib:115: error: `wcstombs' not declared /usr/include/c++/3.3.3/cstdlib:116: error: `wctomb' not declared /usr/include/c++/3.3.3/cstdlib: In function `long int std::abs(long int)': /usr/include/c++/3.3.3/cstdlib:119: error: `labs' undeclared (first use thi= s=20 function) /usr/include/c++/3.3.3/cstdlib:119: error: (Each undeclared identifier is= =20 reported only once for each function it appears in.) /usr/include/c++/3.3.3/cstdlib: At global scope: /usr/include/c++/3.3.3/cstdlib:122: error: syntax error before `(' token In file included from /usr/include/c++/3.3.3/bits/basic_ios.h:44, from /usr/include/c++/3.3.3/ios:51, from /usr/include/c++/3.3.3/ostream:45, from /usr/include/c++/3.3.3/iostream:45, from /usr/include/c++/3.3.3/backward/iostream.h:32, from /usr/include/c++/3.3.3/backward/iomanip.h:32, from BMC2_Delete_Msg.cc:35: /usr/include/c++/3.3.3/bits/locale_facets.h:1174: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h:1288: error: parse error before= `*'=20 token In file included from /usr/include/c++/3.3.3/bits/basic_ios.h:44, from /usr/include/c++/3.3.3/ios:51, from /usr/include/c++/3.3.3/ostream:45, from /usr/include/c++/3.3.3/iostream:45, from /usr/include/c++/3.3.3/backward/iostream.h:32, from /usr/include/c++/3.3.3/backward/iomanip.h:32, from BMC2_Delete_Msg.cc:35: /usr/include/c++/3.3.3/bits/locale_facets.h:1333: error: type specifier omi= tted=20 for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.h:1333: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h:1338: error: type specifier omi= tted=20 for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.h:1338: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h:1343: error: type specifier omi= tted=20 for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.h:1343: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h:1348: error: type specifier omi= tted=20 for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.h:1348: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h:1353: error: type specifier omi= tted=20 for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.h:1353: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h:1365: error: type specifier omi= tted=20 for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.h:1365: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h:1369: error: type specifier omi= tted=20 for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.h:1369: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h:1373: error: type specifier omi= tted=20 for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.h:1373: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h:1377: error: type specifier omi= tted=20 for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.h:1377: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h:1381: error: type specifier omi= tted=20 for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.h:1381: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h:1400: error: type specifier omi= tted=20 for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.h:1400: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h: In member function `_InIter=20 std::time_get<_CharT, _InIter>::get_time(...) const': /usr/include/c++/3.3.3/bits/locale_facets.h:1334: error: parse error before= `;'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h: In member function `_InIter=20 std::time_get<_CharT, _InIter>::get_date(...) const': /usr/include/c++/3.3.3/bits/locale_facets.h:1339: error: parse error before= `;'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h: In member function `_InIter=20 std::time_get<_CharT, _InIter>::get_weekday(...) const': /usr/include/c++/3.3.3/bits/locale_facets.h:1344: error: parse error before= `;'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h: In member function `_InIter=20 std::time_get<_CharT, _InIter>::get_monthname(...) const': /usr/include/c++/3.3.3/bits/locale_facets.h:1349: error: parse error before= `;'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h: In member function `_InIter=20 std::time_get<_CharT, _InIter>::get_year(...) const': /usr/include/c++/3.3.3/bits/locale_facets.h:1354: error: parse error before= `;'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h: At global scope: /usr/include/c++/3.3.3/bits/locale_facets.h:1439: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h:1444: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h:1453: error: parse error before= `*'=20 token /usr/include/c++/3.3.3/bits/locale_facets.h: In member function `_OutIter= =20 std::time_put<_CharT, _OutIter>::put(...) const': /usr/include/c++/3.3.3/bits/locale_facets.h:1445: error: parse error before= `;'=20 token In file included from /usr/include/c++/3.3.3/locale:47, from /usr/include/c++/3.3.3/bits/ostream.tcc:37, from /usr/include/c++/3.3.3/ostream:535, from /usr/include/c++/3.3.3/iostream:45, from /usr/include/c++/3.3.3/backward/iostream.h:32, from /usr/include/c++/3.3.3/backward/iomanip.h:32, from BMC2_Delete_Msg.cc:35: /usr/include/c++/3.3.3/bits/locale_facets.tcc: At global scope: /usr/include/c++/3.3.3/bits/locale_facets.tcc:1564: error: type specifier= =20 omitted for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.tcc:1564: error: parse error befo= re ` *' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: In member function `void=20 std::time_get<_CharT, _InIter>::_M_extract_via_format(...) const': /usr/include/c++/3.3.3/bits/locale_facets.tcc:1594: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1601: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1609: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1616: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1623: error: parse error befo= re ` ,' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1628: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1635: error: parse error befo= re ` ,' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1640: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1645: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1653: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1657: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1670: error: parse error befo= re ` ,' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1675: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1688: error: parse error befo= re ` ,' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1695: error: parse error befo= re ` ,' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1702: error: parse error befo= re ` ,' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1707: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:1716: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: At global scope: /usr/include/c++/3.3.3/bits/locale_facets.tcc:1860: error: type specifier= =20 omitted for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.tcc:1860: error: parse error befo= re ` *' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: In member function `virtual= =20 _InIter std::time_get<_CharT, _InIter>::do_get_time(...) const': /usr/include/c++/3.3.3/bits/locale_facets.tcc:1867: error: parse error befo= re ` ,' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: At global scope: /usr/include/c++/3.3.3/bits/locale_facets.tcc:1877: error: type specifier= =20 omitted for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.tcc:1877: error: parse error befo= re ` *' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: In member function `virtual= =20 _InIter std::time_get<_CharT, _InIter>::do_get_date(...) const': /usr/include/c++/3.3.3/bits/locale_facets.tcc:1884: error: parse error befo= re ` ,' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: At global scope: /usr/include/c++/3.3.3/bits/locale_facets.tcc:1894: error: type specifier= =20 omitted for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.tcc:1894: error: parse error befo= re ` *' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: In member function `virtual= =20 _InIter std::time_get<_CharT, _InIter>::do_get_weekday(...) const': /usr/include/c++/3.3.3/bits/locale_facets.tcc:1926: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: At global scope: /usr/include/c++/3.3.3/bits/locale_facets.tcc:1937: error: type specifier= =20 omitted for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.tcc:1937: error: parse error befo= re ` *' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: In member function `virtual= =20 _InIter std::time_get<_CharT, _InIter>::do_get_monthname(...) const': /usr/include/c++/3.3.3/bits/locale_facets.tcc:1969: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: At global scope: /usr/include/c++/3.3.3/bits/locale_facets.tcc:1981: error: type specifier= =20 omitted for parameter `tm' /usr/include/c++/3.3.3/bits/locale_facets.tcc:1981: error: parse error befo= re ` *' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: In member function `virtual= =20 _InIter std::time_get<_CharT, _InIter>::do_get_year(...) const': /usr/include/c++/3.3.3/bits/locale_facets.tcc:2002: error: parse error befo= re ` ->' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: At global scope: /usr/include/c++/3.3.3/bits/locale_facets.tcc:2015: error: parse error befo= re ` *' token /usr/include/c++/3.3.3/bits/locale_facets.tcc:2017: error: redefinition of ` _OutIter std::time_put<_CharT, _OutIter>::put(...) const' /usr/include/c++/3.3.3/bits/locale_facets.h:1445: error: `_OutIter=20 std::time_put<_CharT, _OutIter>::put(...) const' previously declared here /usr/include/c++/3.3.3/bits/locale_facets.tcc:2017: error: no `_OutIter=20 std::time_put<_CharT, _OutIter>::put(...) const' member function declare= d in=20 class `std::time_put<_CharT, _OutIter>' /usr/include/c++/3.3.3/bits/locale_facets.tcc: In member function `_OutIter= =20 std::time_put<_CharT, _OutIter>::put(...) const': /usr/include/c++/3.3.3/bits/locale_facets.tcc:2039: error: parse error befo= re ` ,' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: At global scope: /usr/include/c++/3.3.3/bits/locale_facets.tcc:2053: error: parse error befo= re ` *' token /usr/include/c++/3.3.3/bits/locale_facets.tcc: In member function `virtual= =20 _OutIter std::time_put<_CharT, _OutIter>::do_put(...) const': /usr/include/c++/3.3.3/bits/locale_facets.tcc:2084: error: parse error befo= re ` )' token /usr/include/c++/3.3.3/bits/locale_facets.h: At global scope: /usr/include/c++/3.3.3/bits/locale_facets.h: In instantiation of `std::time= _put > >': /usr/include/c++/3.3.3/bits/locale_facets.tcc:2560: instantiated from here /usr/include/c++/3.3.3/bits/locale_facets.h:1445: error: `_OutIter=20 std::time_put<_CharT, _OutIter>::put(...) const [with _CharT =3D char,= =20 _OutIter =3D std::ostreambuf_iterator >]' a= nd ` _OutIter std::time_put<_CharT, _OutIter>::put(...) const [with _CharT = =3D=20 char, _OutIter =3D std::ostreambuf_iterator= >]'=20 cannot be overloaded In file included from ICR_Msg.hh:152, from BMC2_Delete_Msg.hh:34, from BMC2_Delete_Msg.cc:37: utl_mth.h: In function `double drand(double, double)': utl_mth.h:30: error: `rand' undeclared (first use this function) utl_mth.h:30: error: `RAND_MAX' undeclared (first use this function) make: *** [BMC2_Delete_Msg.o] Error 1 ------=_NextPart_000_0000_01C53156.63C0B7D0 Content-Type: application/octet-stream; name="make.sources" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="make.sources" # ------------------------------------------------------------------- # /shared/ # ------------------------------------------------------------------- # This file includes the source files for the MAKE command # AUTHOR: Gary McKee # DATE: 15 sept 2003 # see 'include make.sources' in makefile for /${THIS_DIR}/ # # MODIFIED # 21nov03 B. Whatcott Changed SHARED_SRCS to be SRCS to be # more like other makefiles. # # VARIABLES # SRCS - the list of source files to 'make' # EXECUTABLE - the name of the executable # ------------------------------------------------------------------- EXECUTABLE =3D libshared.a THIS_DIR =3D shared SRCS =3D \ BMC2_Delete_Msg.cc \ BMC2_Engage_Msg.cc \ BMC2_Interpos_Msg.cc \ BMC2_LaunchPos_Msg.cc \ BMC2_Mode_Msg.cc \ BMC2_Threat_Msg.cc \ BMC2_Threat_Prediction_Msg.cc \ byteswap.cc \ Comm_Msg.cc \ CommandMsg.cc \ CommGui.cc \ COMMproc.cc \ CommCmdArgs.cc \ CommColors.cc \ coor_trans.cc \ DataWanted.cc \ DataWantedUI.cc \ DisplayError.cc \ DumpData.cc \ ECStime.cc \ ErrorLog.cc \ FileOpsUI.cc \ Flyer.cc \ Fusion_Msg.cc \ getAzEl.cc \ Graphics_Msg.cc \ ICR_Msg.cc \ IpUtil.cc \ J2.xMsg.cc \ J2.xWord.cc \ J3.0Msg.cc \ J3.0Word.cc \ J3.6Msg.cc \ J7.1Msg.cc \ J10.2Msg.cc \ J10.2Word.cc \ LaunchData.cc \ mat_inv.cc \ Matrix.cc \ MenuButtonList.cc \ MultiCommGUI.cc \ NER_Msg.cc \ Optical_Msg.cc \ nsLA.cc \ ObservationData.cc \ PositionWindow.cc \ ProcessArgs.cc \ Q_Msg.cc \ RAEcov2ECRcov.cc \ Refraction.cc \ Radar_Msg.cc \ sensorRecord.cc \ sensorRecordArray.cc \ Selector.cc \ sensorRecord.cc \ sensorRecordArray.cc \ SensorsUI.cc \ SerialuStrm.cc \ ShellWindow.cc \ SOH_Msg.cc \ TADILJMsg.cc \ Target_Msg.cc \ TCPStream.cc \ TCPuStrm.cc \ TextEditCB.cc \ TimeFunctions.cc \ TimeMsg.cc \ UDPuStrm.cc \ UniSelect.cc \ UniGUI.cc \ UniStreem.cc \ utl_cov.cc \ utl_glist.cc \ utl_kybd.cc \ utl_mth.cc \ utl_orb.cc \ utl_vec.cc \ XmUtil.cc # the end (of this include file) ------=_NextPart_000_0000_01C53156.63C0B7D0 Content-Type: application/octet-stream; name="makefile" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="makefile" # ------------------------------------------------------------------- # /shared/ # ------------------------------------------------------------------- # Makefile for MULTI-PLATFORM development with common code base # # AUTHOR: Gary McKee #. DATE: 12 September 2003 # PURPOSE: to support MULTI-PLATFORM development (SGI, LINUX) # This version of the makefile is unique because it # builds a library, not an executable # NOTE: this makefile must be named 'makefile' in order to=20 # work. # # DIRECTORY: ../shared/ # # ${OBJ_DIR} destination directory for object files and libraries # (either: A_linux or A_sgi) # EXECUTABLE variable that holds the name of the resulting program # # MODIFIED # 21nov03 gmckee automatically derive the OS that selects which type # of compile to do.(Linux, IRIX) # 16dec04 gmckee cleanup and test for IRIX, Linux # 09Jan04 gmckee add debug flag "-g" # 12jan04 gmckee add logic for /IRIX64/ machine (INTERCEPT, others?) # 17aug04 gmckee add '-ptused' flag for 'COMMproc.cc' & # 'PropagateList.cc' # 14Dec04 bwhatcott Made dependancies work, removed recursive make calls, # and simplified. # ###########################################################################= ##### SHELL =3D /bin/sh include make.sources # ------------------- GENERAL parameters ------------------- OBJ_DIR =3D A_${MACHINE} OBJS =3D ${SRCS:.cc=3D.o} DPEND =3D ${SRCS:.cc=3D.d} DEBUG =3D-g # ------------------- LINUX specific parameters ------------------- ifeq ($(OSTYPE),linux) MACHINE=3DLinux INC=3D-I../lib -I/usr/X11R6/include -I../shared \ -I/usr/include/machine CFLAGS=3D-fpermissive -w CFLAG2=3D-fpermissive -w # CFLAGS=3D-Wno-deprecated -fno-for-scope # CFLAG2=3D-Wno-deprecated -fno-for-scope # CFLAGS=3D-fpermissive -Wno-deprecated # CFLAG2=3D-fpermissive -Wno-deprecated CPLUS=3Dg++ OSNAME=3DOS_IS_LINUX # ------------------- IRIX specific parameters ------------------- else MACHINE=3DIRIX INC=3D-I../lib -I/usr/include/CC -I../shared=20 CFLAGS=3D-O -DSG11 -32 -ptall -DFUNCPROTO -DXTFUNCPROTO CFLAG2=3D-O -DSG11 -32 -ptused -DFUNCPROTO -DXTFUNCPROTO CPLUS=3DCC OSNAME=3DOS_IS_SGI endif # The command to move files into this dir must finish before DPEND and OBJS # are checked for being current. If the move command is in the rule area, # it doesn't execute until after all dependacies are checke. Putting a # target (get) as a dependency to another target (EXECUTABLE) causes # get to be called before the other dependancies are checked. $(EXECUTABLE): makedir get $(DPEND) $(OBJS) @echo "--------------------------------------------"; @echo "$(THIS_DIR) $(MACHINE)"; @echo "Linking Shared Library"; @echo "ar -rc $(EXECUTABLE) INSERT::{OBJS}"; @ar -rc $(EXECUTABLE) $(OBJS); -@mv -f *.d *.o $(EXECUTABLE) $(OBJ_DIR); @echo "--------------------------------------------"; # Make dirs for object code and links makedir: @if [ ! -d ${OBJ_DIR} ]; then \ mkdir ${OBJ_DIR}; \ fi; # Move the files from the correct subdir.. Called as a dependacy get: -@mv -f $(OBJ_DIR)/$(EXECUTABLE) $(OBJ_DIR)/*.d $(OBJ_DIR)/*.o ./; # At the command line type "make printvars" to see make vars printvars: @echo "../$(THIS_DIR) makefile diagnostics"; @echo "-------------------------"; @echo "variables for ${MACHINE}:"; @echo " EXECUTABLE=3D${EXECUTABLE}"; @echo " THIS_DIR=3D${THIS_DIR}"; @echo " OBJ_DIR=3D${OBJ_DIR} "; @echo " DEBUG=3D${DEBUG} "; @echo " INC=3D${INC}"; @echo " CFLAGS=3D${CFLAGS}"; @echo " CFLAG2=3D${CFLAG2}"; @echo " CPLUS=3D${CPLUS} "; @echo " OSNAME=3D${OSNAME} "; @echo " OBJS:" @echo " $(OBJS)"; @echo @echo " DPEND:" @echo " $(DPEND)"; @echo @echo "-------------------------"; # At the command line type "make diag" to print the make vars and make diag: printvars $(EXECUTABLE) .cc.o: $(CPLUS) $(CFLAGS) $(DEBUG) $(INC) -D$(OSNAME) -c $< # Compile with the -M flag to create individual *.d dependacy files for # each source file. Use sed to make both the .cc and .d file have the # same dependancies (trick from the GNU make book). .cc.d: @set -e; ${CPLUS} -M ${CFLAGS} $(DEBUG) ${INC} -D${OSNAME} -c $< | \ sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@;# COMMproc.o : COMMproc.cc $(CPLUS) $(CFLAG2) $(DEBUG) $(INC) -D$(OSNAME) -c COMMproc.cc # -------------------------------------------------------------------------= ----- # ------------------- RULES FOR 'make clean' ------------------------------= ----- clean: @echo "/shared/ make clean: " ${MACHINE}; -rm -f *.d *.o $(EXECUTABLE); -cd $(OBJ_DIR); rm -f *.d *.o $(EXECUTABLE); clean_Linux: -cd A_Linux; rm -f *.d *.o $(EXECUTABLE); clean_IRIX: -cd A_IRIX; rm -f *.d *.o $(EXECUTABLE); .SUFFIXES: .o .cc .cdt .icon .c .h .C~ .c~ .h~ .d # Include *.d files which have dependancies # -------------------------------------------------------- -include $(OBJ_DIR)/*.d ------=_NextPart_000_0000_01C53156.63C0B7D0 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_0000_01C53156.63C0B7D0--