Gerrit P. Haase wrote:
>
>>1. Use the correct linker flag `-L/path/to/librubys.a/' and look
>> if there is a lib named libcygwin-ruby16.a, isn't the name of
>> the import lib librubys.a or was it changed since 1.6.5 and 1.6.6?
>>
>
> Ah, no, librubys.a is the static lib, the importlib is:
> /usr/local/lib/libcygwin-ruby16.a in my build.
FYI, ".dll.a" is a recognized extention meaning "import lib". If found
in the library search path, it takes precedence over ".a" unless -static
is used. E.G.
/my/lib/path/ contains
libfoo.dll.a
libfoo.a
Then
gcc <list of object files> -L/my/lib/path -lfoo
will find and link against /my/lib/path/libfoo.dll.a
gcc -static <list of object files> -L/my/lib/path -lfoo
will link against /my/lib/path/libfoo.a
--Chuck
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/