|
|
#1 |
|
Compiling: library not found
I'm working between my uni's unix servers and my mac. I've been using rsync to keep both up to date when I'm moving from one to the other.
But I've run into a problem (which I swear wasn't there before). I sync'd everything back to my mac, and used the makefile to compile on my mac. It gives me the error: Code:
ld: library not found for -lparser What is happening here? Thanks in advance. My makefile: Code:
COMPILER = g++ OBJECTS = main.o subNode.o Hits.o Context.o NodeFactory.o INCLUDES = -I wrappers/ -I parser -L parser -l parser ERRFLAGS = -W -Wall -Wextra -ansi -pedantic WRAPPERS = wrappers/RecordFile.o wrappers/lines_idx.o wrappers/lines_pos.o printme: Context.o $(WRAPPERS) $(COMPILER) -o printme $(INCLUDES) Context.cc $(WRAPPERS) # Compile program search: $(OBJECTS) $(WRAPPERS) $(COMPILER) -o search $(ERRFLAGS) $(INCLUDES) $(OBJECTS) $(WRAPPERS) Code:
Context.cc Context.o Hits.cc NodeFactory.cc data -> /usr/cs3/cs3/info3220/ass2/data main.cc makefile parser -> /usr/cs3/cs3/info3220/ass2/parser/ <-- this folder has libparser.a in it rprint.cc subNode.cc texts -> /usr/cs3/cs3/info3220/ass2/texts wrappers
__________________
Official MR IRC
Slow news day? Never fear, Digitimes is here. Serving up free hits for techblogs everywhere. Last edited by sammich; May 19, 2009 at 04:11 AM. |
|
|
|
0
|
|
|
#2 |
|
Can you give me your sourcefile, I'll see what happened!
|
|
|
|
0
|
|
|
#3 |
|
This doesn't look like a symbolic link issue, but rather a prompt formatting issue. Double-check your includes line. Somehow, ld thinks that you're trying to specify a library called lparser rather than parser.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4 |
|
|
|
0
|
|
|
#4 |
|
It works on the uni unix servers fine, so it can't be a typo. The Mac OS X supplied g++ is slightly different?
__________________
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 |
| Windows 7 iphone Ethernet Driver not Found after uninstalling iTunes | pectin232 | iPhone Tips, Help and Troubleshooting | 1 | Sep 15, 2011 03:47 PM |
| Optibay disk not found | JakeOfOz | MacBook Pro | 8 | Aug 10, 2011 12:46 PM |
| Symbol(s) not found error | TomCuthill | iPhone/iPad Programming | 2 | Nov 19, 2010 06:19 AM |
| Library not found | Jimbojumbo | MacBook Pro | 1 | Jun 16, 2009 02:32 AM |
| itunes library not found | andy5000 | Mac Applications and Mac App Store | 7 | Jul 6, 2007 06:17 PM |
All times are GMT -5. The time now is 10:27 PM.







Linear Mode

