Hi, Are we still talking about ACE problems, looks now that you have a problem in your application code. What for code is in Global.h on line 43? Johnny "Manish Jain" <mjain@itangel.com> wrote in message news:<00a101c34b71$cbf5b110$5ec809c0@angels.com>... > Can you please also lookint to the following error as well: > > > Compiling /v/sbansal/out/temp/playground/ExecAgent.o > /opt/SUNWspro/bin/CC -temp=/v/sbansal/out/temp -g -c -Bdynamic -ldl > -mt -libr > ary=iostream,rwtools7 -DACE_HAS_EXCEPTIONS -o > /v/sbansal/out/temp/playground/Ex > ecAgent.o -I/v/sbansal/out/include/playground > -I/exe/tibco/tibrv5/include -I/v/s > bansal/out/include/common -I/v/sbansal/out/include/utils > -I/v/sbansal/out/includ > e/transport -I/usr/ACE_wrappers src/ExecAgent.cc > "/v/sbansal/out/include/playground/Global.h", line 43: Warning: String > literal c > onverted to char* in initialization. > "/opt/SUNWspro/WS6U2/include/CC/rw7/rw/defs.h", line 316: Error: A > typedef name > cannot be used in an elaborated type specifier.. > "/opt/SUNWspro/WS6U2/include/CC/rw7/rw/defs.h", line 317: Error: A > typedef name > cannot be used in an elaborated type specifier.. > "/opt/SUNWspro/WS6U2/include/CC/rw7/rw/defs.h", line 318: Error: A > typedef name > cannot be used in an elaborated type specifier.. > "/opt/SUNWspro/WS6U2/include/CCios/rlocks.h", line 50: Error: A typedef > name can > not be used in an elaborated type specifier.. > "/opt/SUNWspro/WS6U2/include/CCios/rlocks.h", line 51: Error: A typedef > name can > not be used in an elaborated type specifier.. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 37: Error: A > typedef name c > annot be used in an elaborated type specifier.. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 38: Error: A > typedef name c > annot be used in an elaborated type specifier.. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 40: Error: A > typedef name c > annot be used in an elaborated type specifier.. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 214: Error: A > typedef name > cannot be used in an elaborated type specifier.. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 214: Error: > Multiple declar > ation for ios. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 220: Error: The > destructor > name must match the class name. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 220: Error: Member > function > s in a local class must be defined in the class. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 278: Error: A local > class c > annot have a static member. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 281: Error: A local > class c > annot have a static member. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 282: Error: A local > class c > annot have a static member. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 290: Error: Could > not find > a match for std::basic_ios<char, std::char_traits<char>>::rdbuf(). > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 291: Error: Could > not find > a match for stream_locker::stream_locker(std::basic_ios<char, > std::char_traits<c > har>>*, stream_locker::lock_choice). > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 291: Error: The > function "t > est_safe_flag" must have a prototype. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 292: Error: Use "." > or "->" > to call unsafe_ios::rdbuf(). > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 294: Error: Could > not find > a match for std::basic_ios<char, std::char_traits<char>>::tie(). > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 295: Error: Could > not find > a match for stream_locker::stream_locker(std::basic_ios<char, > std::char_traits<c > har>>*, stream_locker::lock_choice). > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 295: Error: The > function "t > est_safe_flag" must have a prototype. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 296: Error: Could > not find > a match for unsafe_ios::tie(). > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 298: Warning > (Anachronism): > Old explicit specialization syntax. > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 299: Error: Could > not find > a match for stream_locker::stream_locker(std::basic_ios<char, > std::char_traits<c > har>>*, stream_locker::lock_choice). > "/opt/SUNWspro/WS6U2/include/CCios/iostream.h", line 299: Error: The > function "t > est_safe_flag" must have a prototype. > Compilation aborted, too many Error messages. > make: *** [/v/sbansal/out/temp/playground/ExecAgent.o] Error 1 > ron4-prd-bond2:sbansal:/v/sbansal/eurex/commoncore/playground > > > -----Original Message----- > From: Burnham, Todd (N-Scitor) [mailto:todd.burnham@lmco.com] > Sent: Wednesday, July 09, 2003 8:50 PM > To: 'Manish Jain'; ace-users@cs.wustl.edu > Subject: RE: [ace-users] compiling issue on Sun 5.8 with ACE 5.3 > > Manish, > On your compile line do you actually see the -DACE_HAS_EXCEPTIONS > statement? If not copy your compile statement from src/CbotEngine.cc and > add it into the compile to see if it works. > > Todd Burnham > SBIRS TT&C Development > Boulder, CO. - Spine Dr - B/A5-8 > (303) 581-4350 > -----Original Message----- > From: Manish Jain [mailto:mjain@itangel.com] > Sent: Wednesday, July 09, 2003 8:12 AM > To: ace-users@cs.wustl.edu > Subject: FW: [ace-users] compiling issue on Sun 5.8 with ACE 5.3 > I am using the below version of C++: but still get the same error: Also > mentioning the changes I have done. Can you please help me in this > regard? > > Thanks > Manish Jain > > CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-15 2003/05/14 > > > > > -----Original Message----- > From: Burnham, Todd (N-Scitor) [mailto:todd.burnham@lmco.com] > Sent: Wednesday, July 09, 2003 5:40 PM > To: 'Manish Jain' > Subject: RE: [ace-users] compiling issue on Sun 5.8 with ACE 5.3 > > Manish, > > You need to make sure that your platform_sunos5_sunc++.GNU file is > current with the WS6U2 (5.3) compiler. If you look at the file, probably > in /opt/ACE/SunOS5.8/include/makeinclude/ you will probably find that > the file may only valid for the 5.2 compiler. There are checks for the > major release number and then the minor release number. Make sure you > are setting inline=1 and exceptions=1. These will set the following > compiler switches > > -D__ACE_INLINE__ and -DACE_HAS_EXCEPTIONS > > The error you are getting will go away if the -DACE_HAS_EXCEPTIONS > switch is, well, switched. Without this switch config-sunos5.5.h will > define a switch called _RWSTD_NO_EXCEPTIONS which is why you are getting > the errors in the standard include files. > Todd Burnham > SBIRS TT&C Development > Boulder, CO. - Spine Dr - B/A5-8 > (303) 581-4350 > -----Original Message----- > From: Manish Jain [mailto:mjain@itangel.com] > Sent: Wednesday, July 09, 2003 2:24 AM > To: ace-users@cs.wustl.edu > Subject: [ace-users] compiling issue on Sun 5.8 with ACE 5.3 > Importance: High > Getting the following error while compiling the code with ACE 5.3 build. > Any idea on below? > > > > /opt/SUNWspro/bin/CC -temp=/export/home/mjain/out/temp -g -c -Bdynamic > -ldl -mt -library=iostream,rwtools7 -o > /export/home/mjain/out/temp/engine/CbotEngine.o > -I/export/home/mjain/out/include/engine -I/usr/tibco/tibrv//include > -I/export/home/mjain/out/include/utils > -I/export/home/mjain/out/include/common > -I/export/home/mjain/out/include/transport -I/usr/ACE_wrappers > -I/export/home/mjain/out/include/datetime -I/opt/sybase/OCS-12_5/include > src/CbotEngine.cc > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 57: Error: > Function std::logic_error::~logic_error() can throw only the exceptions > thrown by the function std::exception::~exception() it overrides. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 60: Error: > Function std::logic_error::what() const can throw only the exceptions > thrown by the function std::exception::what() const it overrides. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 128: Error: > Function std::runtime_error::~runtime_error() can throw only the > exceptions thrown by the function std::exception::~exception() it > overrides. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./stdexcept", line 131: Error: > Function std::runtime_error::what() const can throw only the exceptions > thrown by the function std::exception::what() const it overrides. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./istream", line 41: Error: Use ";" > to terminate declarations. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 444: Error: > Illegal number of arguments for std::basic_ostream<char, > std::char_traits<char>>::operator<<(std::basic_ostream<std::basic_ostrea > m<std::charT, std::traits>::charT, std::basic_ostream<std::charT, > std::traits>::traits>&, std::basic_ostream<char, > std::char_traits<char>>::charT). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 450: Error: > Illegal number of arguments for std::basic_ostream<char, > std::char_traits<char>>::operator<<(std::basic_ostream<std::basic_ostrea > m<std::charT, std::traits>::charT, std::basic_ostream<std::charT, > std::traits>::traits>&, char). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 457: Error: > Illegal number of arguments for std::basic_ostream<char, > std::char_traits<char>>::operator<<(std::basic_ostream<char, > std::char_traits<char>>&, char). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 464: Error: > Illegal number of arguments for std::basic_ostream<char, > std::char_traits<char>>::operator<<(std::basic_ostream<std::basic_ostrea > m<std::charT, std::traits>::charT, std::basic_ostream<std::charT, > std::traits>::traits>&, const std::basic_ostream<char, > std::char_traits<char>>::charT*). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 470: Error: > Illegal number of arguments for std::basic_ostream<char, > std::char_traits<char>>::operator<<(std::basic_ostream<std::basic_ostrea > m<std::charT, std::traits>::charT, std::basic_ostream<std::charT, > std::traits>::traits>&, const char*). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 477: Error: > Illegal number of arguments for std::basic_ostream<char, > std::char_traits<char>>::operator<<(std::basic_ostream<char, > std::char_traits<char>>&, const char*). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 488: Error: > Illegal number of arguments for std::basic_ostream<char, > std::char_traits<char>>::operator<<(std::basic_ostream<char, > std::basic_ostream<std::charT, std::traits>::traits>&, unsigned char). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 492: Error: > Illegal number of arguments for std::basic_ostream<char, > std::char_traits<char>>::operator<<(std::basic_ostream<char, > std::basic_ostream<std::charT, std::traits>::traits>&, signed char). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 496: Error: > Illegal number of arguments for std::basic_ostream<char, > std::char_traits<char>>::operator<<(std::basic_ostream<char, > std::basic_ostream<std::charT, std::traits>::traits>&, const unsigned > char*). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 500: Error: > Illegal number of arguments for std::basic_ostream<char, > std::char_traits<char>>::operator<<(std::basic_ostream<char, > std::basic_ostream<std::charT, std::traits>::traits>&, const signed > char*). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 510: Error: > Illegal number of arguments for std::basic_ostream<char, > std::char_traits<char>>::operator<<(std::basic_ostream<std::basic_ostrea > m<std::charT, std::traits>::charT, std::basic_ostream<std::charT, > std::traits>::traits>&, const > std::basic_string<std::basic_ostream<std::charT, std::traits>::charT, > std::basic_ostream<std::charT, std::traits>::traits, > std::basic_ostream<std::charT, std::traits>::Allocator>&). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 592: Error: > storage class extern not allowed for a member. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 592: Error: The > type "std::basic_ostream<char, std::char_traits<char>>" is incomplete. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 593: Error: > storage class extern not allowed for a member. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 593: Error: The > type "std::basic_ostream<char, std::char_traits<char>>" is incomplete. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 594: Error: > storage class extern not allowed for a member. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 594: Error: The > type "std::basic_ostream<char, std::char_traits<char>>" is incomplete. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > While specializing "std::basic_ostream<char, std::char_traits<char>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 43: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 444: Error: > Illegal number of arguments for std::basic_ostream<wchar_t, > std::char_traits<wchar_t>>::operator<<(std::basic_ostream<std::basic_ost > ream<std::charT, std::traits>::charT, std::basic_ostream<std::charT, > std::traits>::traits>&, std::basic_ostream<wchar_t, > std::char_traits<wchar_t>>::charT). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 46: Where: > While specializing "std::basic_ostream<wchar_t, > std::char_traits<wchar_t>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 46: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 450: Error: > Illegal number of arguments for std::basic_ostream<wchar_t, > std::char_traits<wchar_t>>::operator<<(std::basic_ostream<std::basic_ost > ream<std::charT, std::traits>::charT, std::basic_ostream<std::charT, > std::traits>::traits>&, char). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 46: Where: > While specializing "std::basic_ostream<wchar_t, > std::char_traits<wchar_t>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 46: Where: > Specialized in non-template code. > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./ostream", line 457: Error: > Illegal number of arguments for std::basic_ostream<wchar_t, > std::char_traits<wchar_t>>::operator<<(std::basic_ostream<char, > std::char_traits<char>>&, char). > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 46: Where: > While specializing "std::basic_ostream<wchar_t, > std::char_traits<wchar_t>>". > "/opt/SUNWspro/WS6U2/include/CC/Cstd/./iostream", line 46: Where: > Specialized in non-template code. > Compilation aborted, too many Error messages. > gmake: *** [/export/home/mjain/out/temp/engine/CbotEngine.o] Error 1 > mjain@angelsun ~/cvs/eurex/eurexcore/engine% >