Hey Gareth,

   To help ld find the library, assuming it's not somewhere like
/usr/lib, you need to either add a 
-L <path/to/pdcurses/lib> 

so it can find the library.  I believe you can also do 

-l /path/to/pdcurses/lib/libpdcurses.a 

and it will work correctly as well.

   I hope that helps.


--- Gareth Brown <[EMAIL PROTECTED]> wrote:

> Hello,
> I've been racking my head for hours trying to compile PDCurses  
> programs on my Mac OS X installation, and Linux.  I'm in a dire need 
> of help.  What I'm trying todo is compile the demos included  
> separately using the following;
> $ gcc firework.c -lpdcurses -o firework
> and get the following error;
> /usr/bin/ld: can't locate file for: -lpdcurses
> collect2: ld returned 1 exit status
> I'm completely stuck, should I put a file in /usr/bin/ld ?  I've got 
> gcc installed and all the apple development tools.  Do I have the  
> compile syntax correct ?  I've looked in the make file in the demos  
> folder, but couldn't figure which flags to use.
> Thanks for your time
> Gareth

Robert Zaleski

You must realize that the computer has it in for you.  The irrefutable
proof of this is that the computer always does what you tell it to do.

Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.

Reply via email to