View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-03-2013, 07:41 AM   #1
LQ Newbie
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
errors of installing qscintilla2 on Linux, "undefined reference"

I am trying to install qscintilla2/QScintilla-gpl-2.7.1 on Linux so that I can install kscope.

I do not have adm-right so any commands of "yum", "apt-get", or "sudo" do not work for me.


Linux 2.6.32 ... #1 SMP x86_64 x86_64 x86_64 GNU/Linux

I got error:

/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
qsciscintillabase.o: In function `QsciScintillaBase::acceptAction(QDropEvent*)':
qsciscintillabase.cpp.text+0x204): undefined reference to `CellBuffer::IsReadOnly() const'
qsciscintillabase.o: In function `QsciScintillaBase::dragMoveEvent(QDragMoveEvent*)':
qsciscintillabase.cpp.text+0x2a0): undefined reference to `Editor::SPositionFromLocation(Point, bool, bool, bool)'
qsciscintillabase.cpp.text+0x2ac): undefined reference to `Editor::SetDragPosition(SelectionPosition)'

ScintillaQt.o: In function `QsciScintillaQt:aintEvent(QPaintEvent*)':
ScintillaQt.cpp.text+0x107): undefined reference to `Editor::GetTextRectangle()'

After checking Makefile, i found that no rule defination about main and I cannot find the qsciscintillabase.h or similar headers, which probably have the definition of CellBuffer::IsReadOnly().

I have tried to include paths for headers and libs in Makefile.

Any help will be appreciated !
Old 04-03-2013, 08:00 AM   #2
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,894

Rep: Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357
I am not familiar with this particular piece of software, but clearly you are going to have to go find the external library that defines this symbol, then install it locally too, first. You could well find yourself doing this any number of times as you work through the prerequisites by discovery.


c++, cscope, linux, tools

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
[SOLVED] "undefined reference to" errors when i compile LzmaUtil.c oced Programming 2 05-04-2012 01:01 PM
"Multiple definition of" and "undefined reference to" in QT Creator with QJson lib echelon89 Programming 1 05-01-2009 06:48 AM
compiling linux failed with "undefined reference to s3c2410_pm_drvinit" cucmi Linux - Hardware 2 08-18-2008 10:21 PM
Fixed! "Undefined reference to.." errors talent422 Programming 2 01-16-2006 08:51 AM

All times are GMT -5. The time now is 09:06 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