[kde-solaris] Compile error in kdeadmin: QString(const char[7])'

James F.Hranicky jfh at cise.ufl.edu
Thu Nov 27 02:35:21 CET 2003


OS: 		Sol8
Compiler:	g++ 3.3.2
QT version:	qt 3.2.3
KDE version:	CVS/2003-11-25

When kdeadmin is configured, it defines both 

	-DQT_NO_ASCII_CAST
and
	-DQT_NO_CAST_ASCII

This causes problems in kdeadmin:

  if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../kuser -I/usr/local/libexec/kde32/include
  -I/usr/local/include/qt    -DQT_THREAD_SUPPORT -g -mcpu=v8 -mtune=ultrasparc -D_REENTRANT
  -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4  -D_KU_QUOTA  -D_KU_DEBUG -D_SVID_SOURCE
  -D_GNU_SOURCE -DQT_NO_ASCII_CAST -DQT_NO_CAST_ASCII -Wnon-virtual-dtor -Wno-long-long -Wundef
  -Wall -W -Wpointer-arith -Wwrite-strings -fno-builtin -g3 -fno-inline -g -mcpu=v8
  -mtune=ultrasparc -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE
  -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT mnt.o -MD -MP -MF
  ".deps/mnt.Tpo" \
   -c -o mnt.o `test -f 'mnt.cpp' || echo './'`mnt.cpp; \
  then mv -f ".deps/mnt.Tpo" ".deps/mnt.Po"; \
  else rm -f ".deps/mnt.Tpo"; exit 1; \
  fi
  mnt.cpp: In constructor `Mounts::Mounts()':
  mnt.cpp:101: error: call of overloaded `QString(const char[7])' is ambiguous
  /usr/local/include/qt/qstring.h:399: error: candidates are: 
   QString::QString(const QByteArray&) <near match>
  /usr/local/include/qt/qstring.h:397: error:                 
   QString::QString(QChar) <near match>
  make[1]: *** [mnt.o] Error 1

If the Makefiles are fixed and those defines are removed, compilation
succeeds. 

FYI.

Jim


More information about the kde-solaris mailing list