Hi Robert,

At 08.40 16/07/2003, Robert Collins wrote:

On Wed, 2003-07-16 at 06:43, Serassio Guido wrote:
> Hi Robert,
>
> Il 22.31 14/07/2003 Robert Collins ha scritto:
>
>
> >On Tue, 2003-07-15 at 04:46, Serassio Guido wrote:


> acl.cc > c:\work\nt-3.0\src\acl.cc(348) : error C2059: syntax error : 'new'

Fixed, committed. The next few are cause by this. ANOTHER MSVC not
liking pointer construction. Bah.

> c:\work\nt-3.0\src\acl.cc(693) : error C2664: 'delete' : cannot convert
> parameter 1 from 'const class ACLList *const ' to 'void *'
>          Conversion loses qualifiers
> c:\work\nt-3.0\src\acl.cc(716) : error C2664: 'delete' : cannot convert
> parameter 1 from 'const class acl_access *const ' to 'void *'
>          Conversion loses qualifiers

This is (AFAIK) wrong. Can you see if MS have anything to say on this?

I've just taken the time to dig up the C++ standard on delete, and my
deleteSelf idiom is unneeded - BUT, I don't know how many compilers are
standards compliant in this respect...
So, I'll put a little test program together, and we can see what occurs,
on gcc 2.95+, gcc3.3, MSVC etc. The OS2 port (and any other pre-egcs
only gcc environments) may need special testing too.

Rob

There is something on your latest changes that MSVC don't likes:


Array.cc
C:\work\nt-3.0\lib\Array.cc(55) : error C2143: syntax error : missing ';' before '*'
C:\work\nt-3.0\lib\Array.cc(55) : error C2501: 'Array' : missing storage-class or type specifiers
C:\work\nt-3.0\lib\Array.cc(55) : error C2501: 'arrayCreate' : missing storage-class or type specifiers
C:\work\nt-3.0\lib\Array.cc(55) : error C2061: syntax error : identifier 'Array'
C:\work\nt-3.0\lib\Array.cc(55) : error C2143: syntax error : missing ';' before '}'
C:\work\nt-3.0\lib\Array.cc(55) : error C2143: syntax error : missing ';' before '}'
C:\work\nt-3.0\lib\Array.cc(55) : error C2143: syntax error : missing ';' before '}'
C:\work\nt-3.0\lib\Array.cc(55) : error C2143: syntax error : missing ';' before '}'
.....
C:\work\nt-3.0\lib\Array.cc(55) : error C2143: syntax error : missing ';' before '}'
C:\work\nt-3.0\lib\Array.cc(55) : error C2143: syntax error : missing ';' before '}'
C:\work\nt-3.0\lib\Array.cc(55) : fatal error C1003: error count exceeds 100; stopping compilation


and

C:\work\nt-3.0\src\fs\ufs\store_dir_ufs.cc(1069) : error C2664: 'file_write' : cannot convert parameter 7 from 'void (void *)' to 'void (__cdecl *)(void *)'
None of the functions with this name in scope match the target type


Robert, do you remember GWBasic compiler ? I'm starting to think that it can compile C++ sources better than MSVC .....

Regards

Guido



-
========================================================
Guido Serassio
Acme Consulting S.r.l.
Via Gorizia, 69             10136 - Torino - ITALY
Tel. : +39.011.3249426      Fax. : +39.011.3293665
Email: [EMAIL PROTECTED]
WWW: http://www.acmeconsulting.it/

Reply via email to