Question 13.26

I'm still getting errors due to library functions being undefined, even though I'm explicitly requesting the right libraries while linking.


Many linkers make one pass over the list of object files and libraries you specify, and extract from libraries only those modules which satisfy references which have so far come up as undefined. Therefore, the order in which libraries are listed with respect to object files (and each other) is significant; usually, you want to search the libraries last. (For example, under Unix, put any -l options towards the end of the command line.) See also question 13.28.


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback