< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] Errors compiling last release of rutil using VS2005


Hi Daniel,

Attached to this mail you can find a patch that uses stdint.h and inttypes.h from http://msinttypes.googlecode.com/svn/trunk/ in compat.hxx. I added a subdirectory ms under rutil.

I had to change also resipfaststreams.hxx since:

·         ResipFastOStream& operator<<(uint32_t ul) failed with the following error:
1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(210) : error C2535: 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(__w64 unsigned int)' : member function already defined or declared

1>            c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream::operator <<'

·         ResipFastOStream& operator<<(_W64 unsigned int ui) failed with the following error:
1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(180) : error C2593: 'operator <<' is ambiguous

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(290): could be 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(double)'

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(283): or 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(float)'

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(245): or 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(unsigned __int64)'

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(228): or 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(__int64)'

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(191): or 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(int32_t)'

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178): or 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(__w64 unsigned int)'

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(170): or 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(int16_t)'

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(164): or 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(uint8_t)'

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(158): or 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(int8_t)'

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(151): or 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(bool)'

1>            while trying to match the argument list '(resip::ResipFastOStream, unsigned long)'

I’m not sure of the changes, but in this way it compiles.

Moreover, I added some cast to avoid conversation warnings (UInt64 to UInt8) and I changed FileSystem.cxx since in FileSystem::Directory::iterator::iterator() mPath was assigned twice.

Thank you for your support and best regards,

Dario.

 

From: Dario Bozzali
Sent: lunedì 30 settembre 2013 18.52
To: 'Daniel Pocock'
Cc: resiprocate-devel@xxxxxxxxxxxxxxx
Subject: RE: [reSIProcate] Errors compiling last release of rutil using VS2005

 

Hi Daniel,

The patch is not sufficient, there are still errors for other types (see below).

Maybe we could use the files that are available in http://msinttypes.googlecode.com/svn/trunk/.

I downloaded them and I tried to include in compat.hxx, but there are still errors.

I’ll provide more details as soon as possible.

Ragards,

Dario.

 

1>------ Build started: Project: rutil, Configuration: Debug Win32 ------

1>Compiling...

1>AresDns.cxx

1>c:\dev.resiprocate\main\rutil\compat.hxx(294) : warning C4244: '=' : conversion from 'const UInt64' to 'UInt8', possible loss of data

1>c:\dev.resiprocate\main\rutil\compat.hxx(295) : warning C4244: '=' : conversion from 'const UInt64' to 'UInt8', possible loss of data

1>c:\dev.resiprocate\main\rutil\compat.hxx(296) : warning C4244: '=' : conversion from 'const UInt64' to 'UInt8', possible loss of data

1>c:\dev.resiprocate\main\rutil\compat.hxx(297) : warning C4244: '=' : conversion from 'const UInt64' to 'UInt8', possible loss of data

1>c:\dev.resiprocate\main\rutil\compat.hxx(298) : warning C4244: '=' : conversion from 'const UInt64' to 'UInt8', possible loss of data

1>c:\dev.resiprocate\main\rutil\compat.hxx(299) : warning C4244: '=' : conversion from 'const UInt64' to 'UInt8', possible loss of data

1>c:\dev.resiprocate\main\rutil\compat.hxx(300) : warning C4244: '=' : conversion from 'const UInt64' to 'UInt8', possible loss of data

1>c:\dev.resiprocate\main\rutil\compat.hxx(301) : warning C4244: '=' : conversion from 'const UInt64' to 'UInt8', possible loss of data

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(158) : error C2061: syntax error : identifier 'int8_t'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(159) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(159) : error C2333: 'resip::ResipFastOStream::operator <<' : error in function declaration; skipping function body

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(170) : error C2061: syntax error : identifier 'int16_t'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(172) : error C2059: syntax error : 'this'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(172) : error C2238: unexpected token(s) preceding ';'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(173) : error C2059: syntax error : 'return'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(173) : error C2238: unexpected token(s) preceding ';'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : error C2512: 'resip::ResipFastOStream' : no appropriate default constructor available

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(99) : error C2614: 'resip::ResipFastOStream' : illegal member initialization: 'buf_' is not a base or member

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(116) : error C2065: 'buf_' : undeclared identifier

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(154) : error C2593: 'operator <<' is ambiguous

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(164): could be 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(uint8_t)'

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(151): or 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(bool)'

1>        while trying to match the argument list '(resip::ResipFastOStream, int32_t)'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(166) : error C2593: 'operator <<' is ambiguous

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(164): could be 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(uint8_t)'

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(151): or 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(bool)'

1>        while trying to match the argument list '(resip::ResipFastOStream, uint32_t)'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(179) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(179) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(179) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(180) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(181) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(191) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(191) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(191) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(192) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(192) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(192) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(195) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(200) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(202) : error C2065: 'good_' : undeclared identifier

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(205) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(208) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(208) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(208) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(209) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(209) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(209) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(212) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(217) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(222) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(226) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(226) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(226) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(227) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(227) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(227) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(230) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(235) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(240) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(243) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(243) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(243) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(244) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(244) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(244) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(247) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(253) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(258) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(281) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(281) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(281) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(282) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(282) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(282) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(283) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(285) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(288) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(288) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(288) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(289) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(289) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(289) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(292) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(312) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(317) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(320) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(320) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(320) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(321) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(321) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(321) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(324) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(330) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(335) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(338) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(338) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(338) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(342) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(342) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(342) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(345) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(350) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(359) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(362) : error C2059: syntax error : 'private'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(367) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(367) : error C2433: 'resip::ResipFastOStream' : 'inline' not permitted on data declarations

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(367) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(367) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(367) : error C2065: 'ostr' : undeclared identifier

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(367) : error C2059: syntax error : 'const'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(368) : error C2143: syntax error : missing ';' before '{'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(368) : error C2447: '{' : missing function header (old-style formal list?)

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(374) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(374) : error C2433: 'resip::ResipFastOStream' : 'inline' not permitted on data declarations

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(374) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(374) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(374) : error C2062: type 'char' unexpected

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(375) : error C2143: syntax error : missing ';' before '{'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(375) : error C2447: '{' : missing function header (old-style formal list?)

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(381) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(381) : error C2433: 'resip::ResipFastOStream' : 'inline' not permitted on data declarations

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(381) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(381) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(381) : error C2062: type 'unsigned char' unexpected

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(382) : error C2143: syntax error : missing ';' before '{'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(382) : error C2447: '{' : missing function header (old-style formal list?)

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(388) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(388) : error C2433: 'resip::ResipFastOStream' : 'inline' not permitted on data declarations

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(388) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(388) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(388) : error C2059: syntax error : 'const'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(389) : error C2143: syntax error : missing ';' before '{'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(389) : error C2447: '{' : missing function header (old-style formal list?)

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(395) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(395) : fatal error C1003: error count exceeds 100; stopping compilation

 

From: Daniel Pocock [mailto:daniel@xxxxxxxxxxxxx]
Sent: lunedì 30 settembre 2013 17.59
To: Dario Bozzali
Cc: resiprocate-devel@xxxxxxxxxxxxxxx
Subject: Re: [reSIProcate] Errors compiling last release of rutil using VS2005

 


Please try r10608 and let me know if it helps - it should work even if you don't have stdint.h

Apparently Microsoft doesn't provide inttypes.h and stdint.h but there are full equivalents available for Windows users so we could just add one of those into the repository if we need more than these definitions.


On 30/09/13 17:44, Daniel Pocock wrote:

On 30/09/13 17:09, Dario Bozzali wrote:

Hi all,

I have updated my repository of Resiprocate sources to headline and I have tried to compile using reSIProcate_8_0.sln.

I’m encountering several errors while compiling due (I suppose) to last changes to rutil/compat.hxx.

I reported below an excerpt of output from Visual Studio 2005.

Can anybody give some hints?


I have VS Express 2010, can you let me know if VS 2005 has stdint.h and inttypes.h?

Thank you in advance and kind regards,

Dario.

 

 

1>------ Build started: Project: rutil, Configuration: Debug Win32 ------

1>Compiling...

1>AresDns.cxx

1>c:\dev.resiprocate\main\rutil\compat.hxx(209) : error C2146: syntax error : missing ';' before identifier 'UInt8'

1>c:\dev.resiprocate\main\rutil\compat.hxx(209) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\compat.hxx(209) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\compat.hxx(210) : error C2146: syntax error : missing ';' before identifier 'UInt16'

1>c:\dev.resiprocate\main\rutil\compat.hxx(210) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\compat.hxx(210) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\compat.hxx(212) : error C2146: syntax error : missing ';' before identifier 'Int32'

1>c:\dev.resiprocate\main\rutil\compat.hxx(212) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\compat.hxx(212) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\compat.hxx(283) : error C2065: 'data' : undeclared identifier

1>c:\dev.resiprocate\main\rutil\compat.hxx(283) : error C2059: syntax error : ')'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(158) : error C2061: syntax error : identifier 'int8_t'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(159) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(159) : error C2333: 'resip::ResipFastOStream::operator <<' : error in function declaration; skipping function body

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(170) : error C2061: syntax error : identifier 'int16_t'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(172) : error C2059: syntax error : 'this'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(172) : error C2238: unexpected token(s) preceding ';'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(173) : error C2059: syntax error : 'return'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(173) : error C2238: unexpected token(s) preceding ';'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : error C2512: 'resip::ResipFastOStream' : no appropriate default constructor available

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(99) : error C2614: 'resip::ResipFastOStream' : illegal member initialization: 'buf_' is not a base or member

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(116) : error C2065: 'buf_' : undeclared identifier

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(166) : error C2593: 'operator <<' is ambiguous

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(164): could be 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(uint8_t)'

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(151): or 'resip::ResipFastOStream &resip::ResipFastOStream::operator <<(bool)'

1>        while trying to match the argument list '(resip::ResipFastOStream, uint32_t)'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(179) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(179) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(179) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(180) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(181) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(191) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(191) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(191) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(192) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(192) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(192) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(195) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(198) : error C2146: syntax error : missing ')' before identifier 'PRIi32'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(198) : error C2059: syntax error : ')'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(200) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(202) : error C2065: 'good_' : undeclared identifier

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(205) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(208) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(208) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(208) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(209) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(209) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(209) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(212) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(215) : error C2146: syntax error : missing ')' before identifier 'PRId32'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(215) : error C2059: syntax error : ')'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(217) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(222) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(226) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(226) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(226) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(227) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(227) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(227) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(230) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(233) : error C2146: syntax error : missing ')' before identifier 'PRId64'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(233) : error C2059: syntax error : ')'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(235) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(240) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(243) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(243) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(243) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(244) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(244) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(244) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(247) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(251) : error C2146: syntax error : missing ')' before identifier 'PRIu64'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(251) : error C2059: syntax error : ')'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(253) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(258) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(281) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(281) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(281) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(282) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(282) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(282) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(283) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(285) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(288) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(288) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(288) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(289) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(289) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(289) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(292) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(312) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(317) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(320) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(320) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(320) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(321) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(321) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(321) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(324) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(330) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(335) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(338) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(338) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(338) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(342) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(342) : error C2803: 'operator <<' must have at least one formal parameter of class type

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(342) : error C2805: binary 'operator <<' has too few parameters

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(345) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(350) : error C2227: left of '->writebuf' must point to class/struct/union/generic type

1>        type is ''unknown-type''

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(359) : error C2673: 'resip::operator <<' : global functions do not have 'this' pointers

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(362) : error C2059: syntax error : 'private'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(367) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(367) : error C2433: 'resip::ResipFastOStream' : 'inline' not permitted on data declarations

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(367) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(367) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(367) : error C2065: 'ostr' : undeclared identifier

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(367) : error C2059: syntax error : 'const'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(368) : error C2143: syntax error : missing ';' before '{'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(368) : error C2447: '{' : missing function header (old-style formal list?)

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(374) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(374) : error C2433: 'resip::ResipFastOStream' : 'inline' not permitted on data declarations

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(374) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(374) : error C2371: 'resip::ResipFastOStream' : redefinition; different basic types

1>        c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(178) : see declaration of 'resip::ResipFastOStream'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(374) : error C2062: type 'char' unexpected

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(375) : error C2143: syntax error : missing ';' before '{'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(375) : error C2447: '{' : missing function header (old-style formal list?)

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(381) : error C2143: syntax error : missing ';' before '&'

1>c:\dev.resiprocate\main\rutil\resipfaststreams.hxx(381) : fatal error C1003: error count exceeds 100; stopping compilation



_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel




_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel

 

Attachment: rutil_compat.patch
Description: rutil_compat.patch