This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Ian Lance Taylor wrote:Bob Cowdery<bob@bobcowdery.plus.com> writes:
This is such a basic problem I must be doing something daft. I have a set of static libraries which I am linking into a dll. None of the external references seem to be getting resolved. This is on Win7 and I have MinGW and msys installed using the msys make.
The GNU linker used on MinGW is a Unix linker, and as such the order of the -l options is significant and for each -l option it only pulls in the objects required at that point in the link. This is different from how Windows linkers behave. You most likely need to repeat your -l options or use the --start-group/--end-group linker options.
Ian
I had read that and I was quite careful to ensure the correct order. I did a test with just two libraries where the second referenced the first and as in my follow-up message it didn't pull them in unless I made a call into each from my main code. It's like the symbol tables are messed up somehow.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |