Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ld and makefile problems

2 views
Skip to first unread message

TThoms

unread,
Nov 14, 2000, 3:00:00 AM11/14/00
to
Greetings!
I am having a little makefile problem with a scientific program that I
am trying to port. Everything goes well during the compile, until I get
to the linking, then I get the message:

D:\EMX\BIN\ld.exe: No such file or directory for X11.a

I think the offending line in the makefile is:

LIBS = -lX11 -lm

If I change it in any way such as -ld:/X11/lib, it will say
"D:\EMX\BIN\ld.exe: No such file or directory for d:/X11/lib.a". If I
remove it, then many statements become undefined during the compile, and
the compile aborts.
I never had this problem with vesion 0.9c of the EMX tools, but then
again, this is done on a new computer and a completely new
installation. Perhaps I missed something.

Does anyone have any suggestions?

Thanks,

T.Thoms

Ilya Zakharevich

unread,
Nov 15, 2000, 3:00:00 AM11/15/00
to
[A complimentary Cc of this posting was sent to TThoms
<thet...@pacbell.net>],
who wrote in article <3A120D...@pacbell.net>:

> D:\EMX\BIN\ld.exe: No such file or directory for X11.a
>
> I think the offending line in the makefile is:
>
> LIBS = -lX11 -lm

Put your X11 library directory on your LIBRARY_PATH environment variable.
Or set X11ROOT (or somesuch) in your makefile correctly.

Ilya

Marty

unread,
Nov 15, 2000, 3:00:00 AM11/15/00
to
TThoms wrote:
>
> Greetings!
> I am having a little makefile problem with a scientific program that I
> am trying to port. Everything goes well during the compile, until I get
> to the linking, then I get the message:
>
> D:\EMX\BIN\ld.exe: No such file or directory for X11.a
>
> I think the offending line in the makefile is:
>
> LIBS = -lX11 -lm
>
> If I change it in any way such as -ld:/X11/lib, it will say
> "D:\EMX\BIN\ld.exe: No such file or directory for d:/X11/lib.a".

If you're trying specify the path, the parameter is a *capital* L.

gcc -o myapp.exe myprog.o another.o ... -Ld:/X11/lib -lX11 -lm

thethoms

unread,
Nov 27, 2000, 3:00:00 AM11/27/00
to
Thank you both for your input. The problem is solved!

T. Thoms

0 new messages