Apache OpenOffice (AOO) Bugzilla – Issue 14701
salgdi2.cxx:576: error
Last modified: 2003-12-31 10:46:27 UTC
compiling on sparc64 linux debian/testing gcc-3.3 this error in project vcl oo_1.1beta2_src/vcl/unx/source/gdi/salgdi2.cxx:576: error: could not convert `this->SalPrinterBmp::mpFncGetPixel(nColumn, (this->SalPrinterBmp::mpBmpBuffer + 20))' to `BitmapColor&' ============= Building project vcl ============= /home/jim/oo_1.1beta2_src/vcl/source/unotypes ------------- /home/jim/oo_1.1beta2_src/vcl/source/helper ------------- /home/jim/oo_1.1beta2_src/vcl/unx/source/gdi ------------------------------ Making: ../../../unxlngs.pro/slo/salgdi2.obj g++ -fmessage-length=0 -c -I. -I. -I../inc -I../../../inc -I../../../unx/inc -I../../../unxlngs.pro/inc -I. -I/home/jim/oo_1.1beta2_src/solver/644/unxlngs.pro/inc/stl -I/home/jim/oo_1.1beta2_src/solver/644/unxlngs.pro/inc/external -I/home/jim/oo_1.1beta2_src/solver/644/unxlngs.pro/inc -I/home/jim/oo_1.1beta2_src/solenv/unxlngs/inc -I/home/jim/oo_1.1beta2_src/solenv/inc -I/home/jim/oo_1.1beta2_src/res -I/home/jim/oo_1.1beta2_src/solver/644/unxlngs.pro/inc/stl -I/home/jim/oo_1.1beta2_src/solenv/inc/Xp31 -I/usr/local/j2sdk1.4.1/include -I/usr/local/j2sdk1.4.1/include/linux -I/usr/local/j2sdk1.4.1/include/native_threads/include -I/usr/X11R6/include -I. -I../../../res -I. -O1 -pipe -fno-for-scope -fpermissive -fno-rtti -include preinclude.h -fno-exceptions -fPIC -DLINUX -DUNX -DVCL -DGCC -DC300 -DSPARC -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -D_PTHREADS -D_REENTRANT -DSPARC -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=644 -DBUILD=8557 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX644 -DUSE_BUILTIN_RASTERIZER -DENABLE_CTL -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../../unxlngs.pro/slo/salgdi2.o /home/jim/oo_1.1beta2_src/vcl/unx/source/gdi/salgdi2.cxx In file included from ../../../inc/outdev.hxx:429, from ../../../inc/salgdi.hxx:82, from /home/jim/oo_1.1beta2_src/vcl/unx/source/gdi/salgdi2.cxx:82: ../../../inc/outdev.imp:64: warning: class `OutputDevice' is implicitly friends with itself ../../../inc/outdev.imp:65: warning: `VirtualDevice' is already a friend of `OutputDevice' ../../../inc/outdev.imp:73: warning: `vcl::PDFWriterImpl' is already a friend of `OutputDevice' /home/jim/oo_1.1beta2_src/vcl/unx/source/gdi/salgdi2.cxx: In member function `virtual sal_uInt32 SalPrinterBmp::GetPixelRGB(long unsigned int, long unsigned int) const': /home/jim/oo_1.1beta2_src/vcl/unx/source/gdi/salgdi2.cxx:576: error: could not convert `this->SalPrinterBmp::mpFncGetPixel(nColumn, (this->SalPrinterBmp::mpBmpBuffer + 20))' to `BitmapColor&' /home/jim/oo_1.1beta2_src/vcl/unx/source/gdi/salgdi2.cxx: In member function `virtual sal_uInt8 SalPrinterBmp::GetPixelGray(long unsigned int, long unsigned int) const': /home/jim/oo_1.1beta2_src/vcl/unx/source/gdi/salgdi2.cxx:585: error: could not convert `this->SalPrinterBmp::mpFncGetPixel(nColumn, (this->SalPrinterBmp::mpBmpBuffer + 20))' to `BitmapColor&' /home/jim/oo_1.1beta2_src/vcl/unx/source/gdi/salgdi2.cxx: In member function `virtual sal_uInt8 SalPrinterBmp::GetPixelIdx(long unsigned int, long unsigned int) const': /home/jim/oo_1.1beta2_src/vcl/unx/source/gdi/salgdi2.cxx:594: error: could not convert `this->SalPrinterBmp::mpFncGetPixel(nColumn, (this->SalPrinterBmp::mpBmpBuffer + 20))' to `BitmapColor&' dmake: Error code 1, while making '../../../unxlngs.pro/slo/salgdi2.obj' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /home/jim/oo_1.1beta2_src/vcl/unx/source/gdi dmake: Error code 1, while making 'build_all' ---* TG_SLO.MK *--- sun:~/oo_1.1beta2_src> i am novice but happy to submit further details if guided.
Put a const in front of the receiving feild. Duplicate of issue 13400. *** This issue has been marked as a duplicate of 13400 ***
closed