LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-04-2002, 05:03 AM   #1
subhasis_ray
Member
 
Registered: Jul 2001
Location: india
Distribution: RedHat 7.1,7.2,7.3, 8.0,9.0,Fedora,EL2.1,EL3.0
Posts: 103

Rep: Reputation: 16
Problem with onix.a


I am tyring to get a full text search into the website using onix. the thing compiled fine for windoze, but having problems in linux. The compiler gives an error with a list of functions, whose definitions are not found. I guess they are in a file called onix.a, which i have downloaded, but the compiler cannot read it. plz someone help me out.
thanx in advance

Last edited by subhasis_ray; 09-04-2002 at 05:05 AM.
 
Old 09-04-2002, 08:18 AM   #2
no2nt
Member
 
Registered: Aug 2001
Location: South Carolina, USA
Distribution: Redhat 8.0/Custom
Posts: 96

Rep: Reputation: 16
can you give the command line you are using when compiling?

i.e. gcc -o ....
 
Old 09-04-2002, 08:47 AM   #3
boku
Member
 
Registered: Aug 2002
Location: Sweden
Distribution: Gentoo
Posts: 43

Rep: Reputation: 15
Does the compiler say why it can't read the file?
 
Old 09-04-2002, 11:12 PM   #4
subhasis_ray
Member
 
Registered: Jul 2001
Location: india
Distribution: RedHat 7.1,7.2,7.3, 8.0,9.0,Fedora,EL2.1,EL3.0
Posts: 103

Original Poster
Rep: Reputation: 16
gcc -L/usr/include -lonix test.cpp
/tmp/ccV4tqnn.o: In function `main':
/tmp/ccV4tqnn.o(.text+0x63a): the `gets' function is dangerous and should not be used.
/tmp/ccV4tqnn.o: In function `scan(_IO_FILE *, void *)':
/tmp/ccV4tqnn.o(.text+0xf1): undefined reference to `ixStoreRecordData'
/tmp/ccV4tqnn.o(.text+0x18a): undefined reference to `ixIndexWord'
/tmp/ccV4tqnn.o(.text+0x1ca): undefined reference to `ixIndexWord'
/tmp/ccV4tqnn.o(.text+0x1ec): undefined reference to `ixStoreRecordData'
/tmp/ccV4tqnn.o(.text+0x23b): undefined reference to `ixProcessRecordID'
/tmp/ccV4tqnn.o(.text+0x26a): undefined reference to `ixProcessRecordID'
/tmp/ccV4tqnn.o(.text+0x286): undefined reference to `ixIncrementRecord'
/tmp/ccV4tqnn.o(.text+0x321): undefined reference to `ixStoreRecordData'
/tmp/ccV4tqnn.o(.text+0x36c): undefined reference to `ixProcessRecordID'
/tmp/ccV4tqnn.o(.text+0x39b): undefined reference to `ixProcessRecordID'
/tmp/ccV4tqnn.o(.text+0x3b7): undefined reference to `ixIncrementRecord'
/tmp/ccV4tqnn.o(.text+0x401): undefined reference to `ixStoreRecordData'
/tmp/ccV4tqnn.o: In function `main':
/tmp/ccV4tqnn.o(.text+0x488): undefined reference to `ixCreateIndexManager'
/tmp/ccV4tqnn.o(.text+0x6dd): undefined reference to `ixCreateIndexCreationParams'
/tmp/ccV4tqnn.o(.text+0x6fa): undefined reference to `ixSetIndexCreationParams'
/tmp/ccV4tqnn.o(.text+0x71c): undefined reference to `ixSetIndexCreationParams'
/tmp/ccV4tqnn.o(.text+0x786): undefined reference to `ixSetIndexCreationParams'
/tmp/ccV4tqnn.o(.text+0x7a6): undefined reference to `ixSetIndexCreationParams'
/tmp/ccV4tqnn.o(.text+0x816): undefined reference to `ixSetIndexCreationParams'
/tmp/ccV4tqnn.o(.text+0x829): more undefined references to `ixSetIndexCreationParams' follow
/tmp/ccV4tqnn.o: In function `main':
/tmp/ccV4tqnn.o(.text+0x9b7): undefined reference to `ixCreateIndexEx'
/tmp/ccV4tqnn.o(.text+0x9c6): undefined reference to `ixDeleteIndexCreationParams'
/tmp/ccV4tqnn.o(.text+0xa0b): undefined reference to `ixCloseIndex'
/tmp/ccV4tqnn.o(.text+0xa9b): undefined reference to `ixOpenIndex'
/tmp/ccV4tqnn.o(.text+0xaee): undefined reference to `ixEndIndexingSession'
/tmp/ccV4tqnn.o(.text+0xb3c): undefined reference to `ixStartIndexingSession'
/tmp/ccV4tqnn.o(.text+0xe5b): undefined reference to `ixEndRetrievalSession'
/tmp/ccV4tqnn.o(.text+0xe9c): undefined reference to `ixStartRetrievalSession'
/tmp/ccV4tqnn.o(.text+0xf00): undefined reference to `ixSetFinalIndexDataPosition'
/tmp/ccV4tqnn.o(.text+0xfaa): undefined reference to `ixConvertQuery'
/tmp/ccV4tqnn.o(.text+0xff8): undefined reference to `ixConvertQuery'
/tmp/ccV4tqnn.o(.text+0x1029): undefined reference to `ixProcessQuery'
/tmp/ccV4tqnn.o(.text+0x1074): undefined reference to `ixProcessQuery'
/tmp/ccV4tqnn.o(.text+0x10d9): undefined reference to `ixProcessQuery'
/tmp/ccV4tqnn.o(.text+0x125a): undefined reference to `ixFindKey'
/tmp/ccV4tqnn.o(.text+0x12d0): undefined reference to `ixCurrentKey'
/tmp/ccV4tqnn.o(.text+0x135a): undefined reference to `ixPreviousKey'
/tmp/ccV4tqnn.o(.text+0x13e8): undefined reference to `ixNextKey'
/tmp/ccV4tqnn.o(.text+0x1463): undefined reference to `ixNumberOfRecordsInIndex'
/tmp/ccV4tqnn.o(.text+0x14d7): undefined reference to `ixVectorRewind'
/tmp/ccV4tqnn.o(.text+0x1570): undefined reference to `ixVectorCurrentHit'
/tmp/ccV4tqnn.o(.text+0x1630): undefined reference to `ixVectorNextHit'
/tmp/ccV4tqnn.o(.text+0x1705): undefined reference to `ixNumHits'
/tmp/ccV4tqnn.o(.text+0x1796): undefined reference to `ixDeleteRecordNum'
/tmp/ccV4tqnn.o(.text+0x17f6): undefined reference to `ixUnDeleteRecordNum'
/tmp/ccV4tqnn.o(.text+0x1856): undefined reference to `ixIsRecordDeleted'
/tmp/ccV4tqnn.o(.text+0x18fb): undefined reference to `ixOutputStatsFile'
/tmp/ccV4tqnn.o(.text+0x19a2): undefined reference to `ixGetCurrentQueryVector'
/tmp/ccV4tqnn.o(.text+0x1a50): undefined reference to `ixRetrieveRecordID'
/tmp/ccV4tqnn.o(.text+0x1b0d): undefined reference to `ixCharToHex'
/tmp/ccV4tqnn.o(.text+0x1b5a): undefined reference to `ixFindRecordID'
/tmp/ccV4tqnn.o(.text+0x1bf7): undefined reference to `ixRetrieveRecordData'
/tmp/ccV4tqnn.o(.text+0x1c73): undefined reference to `ixRetrieveMoreRecordData'
/tmp/ccV4tqnn.o(.text+0x1d28): undefined reference to `ixGetStatusMessage'
/tmp/ccV4tqnn.o(.text+0x1d58): undefined reference to `ixGetTempDiskSpaceUsage'
collect2: ld returned 1 exit status


this is the compiler message. the library file has been renamed as libonix.a and then the command line given above has been run.
the file libonix.a has been placed in /usr/include directory.

hope this answers ur question.
thanx once again
 
  


Reply



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
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration