This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld fails when -L/lib is on the command line


On Tue, Oct 12, 2010 at 10:55 PM, Christopher Faylor  wrote:
> On Tue, Oct 12, 2010 at 12:55:09PM -0500, Nathan Thern wrote:
>>A complicated project I'm building fails on this call to gcc:
>>gcc -shared <object files> -L<lib_path_in_build_tree> -L/lib
>>-L/usr/lib <build_libs> <std_libs> -o .libs/cyg<lib>.dll
>>-Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker
>>.libs/lib<lib>.dll.a
>
> You're going to have to clue us in on what "fails" means in this context.

In other words, we need the error message.

Check the makefile. My suspicion is that there is a
-L$(SOME_VARIABLE)/lib there, but the variable is not defined and so
it's expanded to empty.

-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ L w++$ tv+ b++ DI D++ 5++
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]