Hi, On Sun, Jul 8, 2012 at 12:48 PM, Måns Rullgård <[email protected]> wrote: > "Ronald S. Bultje" <[email protected]> writes: > >> Hi, >> >> On Sat, Jul 7, 2012 at 3:57 PM, Derek Buitenhuis >> <[email protected]> wrote: >>> On 07/07/2012 6:09 PM, Diego Biurrun wrote: >>>> And this is required - why? >>> >>> Libm / math is not A Thing in MSVC and isn't required. >>> >>> It complains about -lm, but ignores it. >>> >>> I think this is mostly to shut up a warning. >> >> Correct. First, link.exe does not use -l<libname> to link in >> libraries, it uses lib<name>.lib (similar to how gcc allows you to >> specify the full filename of a lib<name>.a static library). Second, >> there is no math lib necessary at all. > > This is the wrong fix for that problem. The correct fix is to translate > -lfoo to the supported syntax. This is required anyway, and once done > the original test will work exactly as intended.
Wrong thread. Please comment only on the -lm piece which isn't necessary in this thread. I'd like -lm to not exist on systems not needing it (e.g. OS2, Haiku, MSVC). The general "-lname" -> "libname.lib" conversion discussion should go in the other thread. Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
