www.digitalmars.com         C & C++   DMDScript  

c++.wxwindows - Building wxWidgets 2.4.2 with DM 8.41

reply "Michael Mayfield" <MMayfield45 scarabpro.com> writes:
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
Feb 24 2005
parent reply Arjan Knepper <arjan ask.me> writes:
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
Feb 24 2005
parent "Michael Mayfield" <MMayfield45 scarabpro.com> writes:
Thanks, works now, after i sorted a problem with finding  
"..\..\lib\wx_sc.lib" posted before.

-- 
MMayfield45
Feb 25 2005