Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-08-2004, 08:18 AM   #1
LQ Newbie
Registered: Jan 2004
Location: Charlottesville, VA
Distribution: RedHat 8.0
Posts: 9

Rep: Reputation: 0
errors from mak/gcc compiling qcad

I am getting errors from the compiler when building qcad
Here is the output showing the last successful lines and then the errors.
Where should I start looking for the problem?

make ./lib/libqcad.a
make[1]: Entering directory `/home/glen/bin/qcad-'
make src/Makefile
make[2]: Entering directory `/home/glen/bin/qcad-'
make[2]: `src/Makefile' is up to date.
make[2]: Leaving directory `/home/glen/bin/qcad-'
cd src && make
make[2]: Entering directory `/home/glen/bin/qcad-'
g++ -c -pipe -Wall -W -DNO_COMPLEX_ENTITIES -DQT_NO_DEBUG -I../include -I../../dxflib/include -I../../fparser/include -I../../qcadcmd/include -I/usr/lib/qt3-gcc3.2/include -Imoc/ -I/usr/lib/qt3-gcc3.2/mkspecs/linux-g++ -o obj/rs_dimension.o engine/rs_dimension.cpp
/usr/lib/qt3-gcc3.2/include/qstring.h: In member function `QString
/usr/lib/qt3-gcc3.2/include/qstring.h:607: `QString& QString::replace(const
QString&, const QString& )' is private
engine/rs_dimension.cpp:64: within this context
make[2]: *** [obj/rs_dimension.o] Error 1
make[2]: Leaving directory `/home/glen/bin/qcad-'
make[1]: *** [lib/libqcad.a] Error 2
make[1]: Leaving directory `/home/glen/bin/qcad-'
make: *** [all] Error 2
Building libqcad.a failed
Old 01-08-2004, 08:51 AM   #2
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
It would appear to me that something in the rs_dimension.cpp file is referencing the replace routine on a QString and it says that routine is private, thus can't be used.

Why this is happening I cannot say. Looking at the QT API that function is definitly a public member function of the QString class. Here is the doc on it from the QT API:

QString & QString::replace ( const QString & before, const QString & after ) 

This is an overloaded member function, provided for convenience. It behaves essentially like the above function. 

Replaces every occurrence of the string before in the string with the string after. Returns a reference to the string. 


    QString s = "Greek is Greek";
    s.replace( "Greek", "English" );
    // s == "English is English"

Last edited by jtshaw; 01-08-2004 at 08:55 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
qcad question mfox Linux - Software 4 08-27-2005 02:00 PM
Compiling qCad 2.0.4 - qcadlib stops gattumarrudu Programming 8 11-13-2004 02:48 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 12:38 PM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 06:03 AM
ERRORS Compiling GCC with mtype=c3-2 textures Linux - Software 0 11-27-2003 10:50 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration