|
![](/i/fill.gif) |
On 26/05/2016 08:31 PM, Le_Forgeron wrote:
> Another trick against the "right order" of linking: put everything but the main in a
single archive library ( .a ).
>
> Then compile the main source into a binary with the library on the command line.
Heh, don't even get me started on archive files!
I had the "brilliant idea" of turning each folder into an archive, and
then linking those together. Trouble is... it only works 95% of the
time. About 5% of the time, the resulting object behaves differently
(i.e., wrong). GTest in particular seems to not like it. I have no idea why.
I stripped all traces of .a files out of the Makefile, and half my
problems went away...
Post a reply to this message
|
![](/i/fill.gif) |