chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] building readline extension on OSX problem: csc incl


From: gian paolo ciceri
Subject: Re: [Chicken-users] building readline extension on OSX problem: csc include directory (-I switch)
Date: Mon, 30 Aug 2004 08:13:38 +0200
User-agent: Mozilla Thunderbird 0.6 (Macintosh/20040502)

Felix Winkelmann wrote:
Ed Watkeys wrote:

[snip]

Try sticking a "-C" in front of the "-I" -- it tells the compiler to pass the next option to the compiler, just like "-L" with the linker options.


Indeed. That's right. The option-parser for csc is admittedly broken:
everything it doesn't understand is split into one-character options.
So the error message is rather unhelpful. I'm going to fix this,
promised... ;-)



mmh., thanks for the feedback, but the overall result,
even if better than before, it's again quite poor.

when I prepend -C in front of -I
---
dottie:/tmp/readline.egg.dir root# /usr/local/bin/csc -s -O2 -d0 readline.scm -C -I/sw/include -L -lreadline -lncurses
ld: can't locate file for: -lreadline
*** Shell command terminated with exit status 1: gcc -o readline.so readline.o -lchicken -lsrfi-chicken -lstuffed-chicken -fPIC -bundle -L/usr/local/lib -lreadline -lncurses -ldl -lm -ldl
---

it's right, my libreadline is under /sw/lib, so I try to pass
this directory, too...
---
dottie:/tmp/readline.egg.dir root# /usr/local/bin/csc -s -O2 -d0 readline.scm -C -I/sw/include -L/sw/lib -lreadline -lncurses
csc: invalid option `-/'
---

oh, no - the same error, let's try the same fix
---
dottie:/tmp/readline.egg.dir root# /usr/local/bin/csc -s -O2 -d0 readline.scm -C -I/sw/include -C -L/sw/lib -lreadline -lncurses
ld: can't locate file for: -lreadline
*** Shell command terminated with exit status 1: gcc -o readline.so readline.o -lchicken -lsrfi-chicken -lstuffed-chicken -fPIC -bundle -L/usr/local/lib -lreadline -lncurses -ldl -lm -ldl
---

Now I need to know how to pass a non-standard link path...

Sorry to bother the ML with these newbie issues, but
I'd like to be able to use the chicken ;-)

Regards, and thanks again for your patience.
/gp


--
Gian Paolo Ciceri        Via G.Marconi 5 - 22036 ERBA CO ITALY
                         mobile :   ++39 340 7218101
                         eMail  :   address@hidden,
                                :   address@hidden
                         webSite:   http://www.suddenthinks.com
                         ICQ #  :   94620118
                         jabber :   address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]