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 |
can you give the command line you are using when compiling?
i.e. gcc -o .... |
Does the compiler say why it can't read the file?
|
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 |
All times are GMT -5. The time now is 08:38 PM. |