Thread overview
Building wxWidgets 2.4.2 with DM 8.41
Feb 24, 2005
Michael Mayfield
Feb 25, 2005
Arjan Knepper
Feb 25, 2005
Michael Mayfield
February 24, 2005
When compiling i get the error. Anyone have a clue?


dmc -c -cpp -Ae -Ar -mn -D_WINDOWS -6 -a8 -Nc -c -H -HD..\..\d_mars -HO- -DWXMSW
 -D__WIN32__ -D__WIN95__ -D__WXDEBUG__  -I..\..\include -I..\..\lib\_sc -I..\..\
contrib\include -I..\../src/regex;..\../src/png;..\../src/jpeg;..\../src/zlib;..
\../src/tiff  ..\..\src\msw\ole\dataobj.cpp -o..\..\src\msw\ole\dataobj.obj
..\..\include\wx/msw/ole/oleutils.h(76) : Error: reference must refer to same ty
pe or be const
Had: unsigned long
and: unsigned long &
--- errorlevel 1

--- errorlevel 1

C:\wx\src\msw>



-- 
MMayfield45
February 25, 2005
Michael Mayfield wrote:
> When compiling i get the error. Anyone have a clue?
> 
> 
> dmc -c -cpp -Ae -Ar -mn -D_WINDOWS -6 -a8 -Nc -c -H -HD..\..\d_mars -HO-  -DWXMSW
>  -D__WIN32__ -D__WIN95__ -D__WXDEBUG__  -I..\..\include -I..\..\lib\_sc  -I..\..\
> contrib\include  -I..\../src/regex;..\../src/png;..\../src/jpeg;..\../src/zlib;..
> \../src/tiff  ..\..\src\msw\ole\dataobj.cpp -o..\..\src\msw\ole\dataobj.obj
> ..\..\include\wx/msw/ole/oleutils.h(76) : Error: reference must refer to  same ty
> pe or be const
> Had: unsigned long
> and: unsigned long &
> --- errorlevel 1
> 
> --- errorlevel 1
> 
> C:\wx\src\msw>

Change line 76 in oleutils.h like below to work around the problem. IRRC Matthew reported a simlular problem a few days ago.

//  ULONG& operator=(ULONG value) { return m_Value = value; }
    ULONG& operator=(ULONG value) { m_Value = value; return m_Value; }

Arjan
February 25, 2005
Thanks, works now, after i sorted a problem with finding "..\..\lib\wx_sc.lib" posted before.

-- 
MMayfield45