Re: linking errors in informix & c.
Posted in 1997
Manish Ahuja wrote: > > Here is a small problem. I am creating an executable "sim_errs". > This program is dependent on user dependant functions like > fourgl.a, err_hndlr.a. Apart from this, this file also links with > informix related libraries which is as shown below. The order of these > libraries appears to be in-appropiate. I would like to know the correct > order of these libraries so that the following or any other suggestions: As a general rule, when you link objects you must have a reference first and then a definition. Use "nm" on your .a or .o files to get the list of symbols, look for the reference or definition part of it too. Order the objects accordingly in your make file. This applies for all builds, regardless. Good luck, Arun