|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Sorry to do this but...I need URGENT help (g++ linking error)
Okay, this assignment is due in about 13 hours. It's 2am here, and I'm not planning on sleeping until I can get this running and completed some extensive testing.
It's a small query engine for a uni assignment in Object Oriented Design written in C++. If you have the time to check it out, please do. Download the .zip, unzip and compile it with the command make search. There are one of two errors that might occur: a) -l library not found - it's a weird, only happens on my mac error b) main.cc:(.text._ZN11NodeFactory14getNodeFactoryEv[NodeFactory::getNodeFactory()]+0x4): undefined reference to `NodeFactory::nodeFactory' If a) does occur, and you've read the post in the link, can you figure it out why it's happening? and b) which is my REAL problem, I will shower you with /cookies if you solve this :D PROBLEM SOLVED! /cookieshower
__________________
Official MR IRC
Slow news day? Never fear, Digitimes is here. Serving up free hits for techblogs everywhere. Last edited by sammich; May 21, 2009 at 10:05 PM. |
|
|
|
0
|
|
|
#2 |
|
Re-uploaded .zip file. I accidentally omitted a .h file somehow...
__________________
Official MR IRC
Slow news day? Never fear, Digitimes is here. Serving up free hits for techblogs everywhere. |
|
|
|
0
|
|
|
#3 |
|
First of all, I don't think you're supposed to have spaces after the -l, -L, or -I flags. So, it should look like -lparser instead of -l parser. Doing this on my machine got past the "library not found" errors.
Another problem is that you have several .o's in the zip file you uploaded that were compiled for Linux: Code:
% file wrappers/RecordFile.o wrappers/RecordFile.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped |
|
|
|
0
|
|
|
#4 |
|
Hi,
Don't think you've defined the global variable 'nodeFactory' - it's declared in NodeFactory.h here: static NodeFactory nodeFactory; ...but you probably also need to add this to NodeFactory.cc: NodeFactory NodeFactory::nodeFactory; Bye! Mark |
|
|
|
0
|
|
|
#5 | |
|
Quote:
You still get a /cookie for being first here to point it out
__________________
Official MR IRC
Slow news day? Never fear, Digitimes is here. Serving up free hits for techblogs everywhere. |
||
|
|
0
|
|
|
#6 | |
|
Quote:
Stupid me for being so desparate that I didn't clean out the .o files before uploading... You get a /cookie too
__________________
Official MR IRC
Slow news day? Never fear, Digitimes is here. Serving up free hits for techblogs everywhere. |
||
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| Hate to do this, but... question about memory | dip n ride | MacBook | 19 | Feb 27, 2009 07:47 AM |
| Sorry to do this (User settings/posts question) | MacDryCleaner | Site and Forum Feedback | 3 | Jul 18, 2007 12:10 PM |
| I don't know where to put this... but I need help with Keynote + outputting to a TV | Chone | Mac Applications and Mac App Store | 0 | Nov 11, 2006 11:15 AM |
| Ok Ok another what to do thread....but I need your help! | juliancs | MacBook Pro | 1 | Oct 26, 2006 10:27 AM |
| This might be the wrong place to do this but... | fatandlazy11 | Distributed Computing | 4 | Apr 18, 2006 05:10 PM |
All times are GMT -5. The time now is 10:42 PM.







Linear Mode

