axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chinthana C. Dinapala" <CDinap...@virtusa.com>
Subject RE: [jira] Commented: (AXISCPP-751) AxisBench test compilation fails.
Date Wed, 20 Jul 2005 10:11:14 GMT
Hi John,

 

I'm having MSVC 6.0.

 

#include <iostream>

#include <fstream>

#include <time.h>

 

#ifndef WIN32

  #include "sys/time.h"

#else

  #include "sys/timeb.h

 

  // Bug in MS Visual C++ 6.0. Fixed in Visual C++ .Net version.

  // Cannot print an __int64 number with cout without this overloading

  std::ostream& operator<<(std::ostream& os, __int64 i )

  {

    char buf[20];

    sprintf(buf,"%I64d", i );

    os << buf;

    return os;

  }

#endif

 

This is the previous code and it's worked fine. But addition of #ifdef
Q168440_WORKAROUND (as in the current code) it's failed.

I don't know purpose of this if block whether it's for support MSVC 7.0
or some other reason.

 

 

Thanks

Chinthana

 

________________________________

From: John Hawkins [mailto:HAWKINSJ@uk.ibm.com] 
Sent: Wednesday, July 20, 2005 2:41 PM
To: Apache AXIS C Developers List
Subject: Re: [jira] Commented: (AXISCPP-751) AxisBench test compilation
fails.

 


Is this to do with MSVC 7.0 support? 





"Chinthana Danapala (JIRA)" <axis-c-dev@ws.apache.org> 

20/07/2005 09:34 

Please respond to
"Apache AXIS C Developers List"

To

axis-c-dev@ws.apache.org 

cc

 

Subject

[jira] Commented: (AXISCPP-751) AxisBench test compilation fails.

 

 

 




    [
http://issues.apache.org/jira/browse/AXISCPP-751?page=comments#action_12
316209 ] 

Chinthana Danapala commented on AXISCPP-751:
--------------------------------------------

It's only happen in IntegerType and LongType. And it worked for printf
statement. 
I found that following line cause the problem.

#ifdef Q168440_WORKAROUND

I don't know for what purpose this using for.



> AxisBench test compilation fails.
> ---------------------------------
>
>          Key: AXISCPP-751
>          URL: http://issues.apache.org/jira/browse/AXISCPP-751
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Stub
>     Versions: 1.6 Alpha
>  Environment: Windows
>     Reporter: Chinthana Danapala

>
> Client code compilation fails with following error.
> compileStaticClient:
>        [cc] 4 total files to be compiled.
>        [cc] BenchDataType.cpp
>        [cc] AxisBenchClient.cpp
>        [cc]
C:\obj\test\generated\cpp\AxisBench\AxisBenchClient.cpp(209) : error
>  C2593: 'operator <<' is ambiguous
>        [cc]
C:\obj\test\generated\cpp\AxisBench\AxisBenchClient.cpp(223) : error
>  C2593: 'operator <<' is ambiguous
>        [cc] AxisBench.cpp
>        [cc] BenchBasicDataType.cpp
>        [cc] Generating Code...
>        [cc] cl failed with return code 2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
  http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
  http://www.atlassian.com/software/jira




Mime
View raw message