Hi!
We had added recently some new code within wxWidgets CVS which I found to
cause error with (and only with) DMC. It was little discuted in wx-dev
mailing list and there is suspicion that there is bug in DMC but I'm not
enough skilled to seriously confirm that myself and it is very hard to
debug it down to minimal code to duplicate it trimming wxWidgets class by
class so I post here in case anyone could give us a hand here. The thread
about the error is available at:
http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?5:sss:55259
I myself made a "-l -e" listing of the code so can provide it if
it would be necessary and helpful. It's 4.729.824 bytes long (which is
hardly minimal sample :-( ). The test and wxWidgets was build with command:
smake /NOLOGO /F makefile.dms SHARED=0 RUNTIME_LIBS=static UNICODE=0
MONOLITHIC=1 BUILD=release USE_GUI=1 USE_OPENGL=0 USE_ODBC=0 WXUNIV=0
Thanks in advance for any help.
ABX

I don't make a promise, but I will look into it as soon as possible.
Might take a while I'm very very busy right now.
Arjan
W這dzimierz Skiba wrote:

Hi!
We had added recently some new code within wxWidgets CVS which I found to
cause error with (and only with) DMC. It was little discuted in wx-dev
mailing list and there is suspicion that there is bug in DMC but I'm not
enough skilled to seriously confirm that myself and it is very hard to
debug it down to minimal code to duplicate it trimming wxWidgets class by
class so I post here in case anyone could give us a hand here. The thread
about the error is available at:
http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?5:sss:55259
I myself made a "-l -e" listing of the code so can provide it if
it would be necessary and helpful. It's 4.729.824 bytes long (which is
hardly minimal sample :-( ). The test and wxWidgets was build with command:
smake /NOLOGO /F makefile.dms SHARED=0 RUNTIME_LIBS=static UNICODE=0
MONOLITHIC=1 BUILD=release USE_GUI=1 USE_OPENGL=0 USE_ODBC=0 WXUNIV=0
Thanks in advance for any help.
ABX

ABX, I've prepared a minimal example, does this demonstrate
the problem on your machine too

Yes, indeed, thanks! I pasted your minimal sample into our
tests/streams/datastreamtest.cpp and run it through our building
process. The error was:
wxFileInputStream *p = new wxFileInputStream(_T("mytext.dat"));
^
streams\datastreamtest.cpp(27) : Error: reference must refer to same
type

Since there was no sign that this topic was accepted as valid bug report,
Walter, could you please comfirm that it was added to your bug list or that
we need to do something more for you?
Thanks in advance and Merry Christmas!
ABX

It looks to me like the code is wrong, i.e. which wxFileInputStream
should it pick?

I think it should choose the other one. I.e. not consider the illegal
conversion path as one of the possibilities.
I can't point to where in the standard it says DMC is wrong though. So
if you tell me the standard is ambiguous then I'll believe you. OTOH it
makes more sense the other way, and other compilers all do it that way.
Regards,
Mike