Stefan Wegele
2007-03-13 14:02:35 UTC
Hello,
I have a problem using std::min and a corba object in the same file.
Here is the example:
#include <iostream>
#include <omniORB4/CORBA.h>
int main(int argc, _TCHAR* argv[])
{
long a=23, b=345;
long c = std::min(a, b);
std::cout << c << std::endl;
return 0;
}
I get:
error C2589: '(' : illegal token on right side of '::'
error C2059: syntax error : '::'
for the line with std::min.
If I remove the include of Corba.h then it works perfectly.
I declared: __WIN32__,__x86__,_WIN32_WINNT=0x0400, __NT__ and
__OSVERSION__=4
VC++ version: 7.1.6
Thanks, Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070313/779406f2/attachment.htm
I have a problem using std::min and a corba object in the same file.
Here is the example:
#include <iostream>
#include <omniORB4/CORBA.h>
int main(int argc, _TCHAR* argv[])
{
long a=23, b=345;
long c = std::min(a, b);
std::cout << c << std::endl;
return 0;
}
I get:
error C2589: '(' : illegal token on right side of '::'
error C2059: syntax error : '::'
for the line with std::min.
If I remove the include of Corba.h then it works perfectly.
I declared: __WIN32__,__x86__,_WIN32_WINNT=0x0400, __NT__ and
__OSVERSION__=4
VC++ version: 7.1.6
Thanks, Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070313/779406f2/attachment.htm