Mail Archives: djgpp/1999/08/25/18:53:28
Troelz Denver (c938133 AT student DOT dtu DOT dk) wrote:
: Thanx for your quick responce.
: Adding "-L." to the command doesn't have any effect. gcc have no problems
: finding the file. If I use "ar -crus libfileout.a file1 file2 file3; gcc
: file.c -lfileout.a", I get the response: "c:/djgpp/bin\ld.exe: cannot
: open -lfileout.a: No such file or directory (ENOENT)".
: I've tried other combinations "-llibfileout.a", "-libfileout.a", etc, but it
: can't find the file, unless I use "libfileout.a". And then it can't find the
: index. Back to problem 1.
Try "gcc -v file.c -L. -lfileout". If that doesn't work, post the output
from that commmand.
FYI, "gcc ... -lfoo" will become "gcc ... libfoo.a" IIRC, so "-llibfileout.a"
or "-libfileout.a" is certainly _not_ what you want.
Right,
MartinS
- Raw text -