[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libusb-devel
Subject:    Re: [Libusb-devel] How to use static linking with libusb
From:       Segher Boessenkool <segher () kernel ! crashing ! org>
Date:       2011-12-28 15:58:59
Message-ID: 21C5EBE5-5469-45E9-B3B4-B44248F58855 () kernel ! crashing ! org
[Download RAW message or body]

> What are the differences between the above two ways?
> Why the first does not work?

The linker only includes object files from an archive that resolve
some needed symbol.  So, in general, you have to put libraries after
the files on the command line that refer to them.  Even simpler,
just put libraries last, always.


Segher


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Libusb-devel mailing list
Libusb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic