LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-08-2004, 07:18 AM   #1
wgself
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?
Thanks

""""""""""
make ./lib/libqcad.a
make[1]: Entering directory `/home/glen/bin/qcad-2.0.1.3-1.src/qcadlib'
make src/Makefile
make[2]: Entering directory `/home/glen/bin/qcad-2.0.1.3-1.src/qcadlib'
make[2]: `src/Makefile' is up to date.
make[2]: Leaving directory `/home/glen/bin/qcad-2.0.1.3-1.src/qcadlib'
cd src && make
make[2]: Entering directory `/home/glen/bin/qcad-2.0.1.3-1.src/qcadlib/src'
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
RS_Dimension::getLabel()':
/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-2.0.1.3-1.src/qcadlib/src'
make[1]: *** [lib/libqcad.a] Error 2
make[1]: Leaving directory `/home/glen/bin/qcad-2.0.1.3-1.src/qcadlib'
make: *** [all] Error 2
Building libqcad.a failed
 
Old 01-08-2004, 07:51 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
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:

Code:
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. 


Example: 

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

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


Reply


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 01:00 PM
Compiling qCad 2.0.4 - qcadlib stops gattumarrudu Programming 8 11-13-2004 01:48 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
ERRORS Compiling GCC with mtype=c3-2 textures Linux - Software 0 11-27-2003 09:50 AM


All times are GMT -5. The time now is 02:23 AM.

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