23 Jun
2009
23 Jun
'09
6:17 a.m.
Robert Bielik skrev:
Vladimir Prus skrev:
I recommend you read this:
http://vladimir_prus.blogspot.com/2009/06/linking-101.html
In particular, the note about static linking towards the end might be directly relevant. Although you did not say how you "included AND linked to" error_code.cpp, so it's impossible to say for sure.
The note in the ld docs regarding symbols defined in an archive that are used in later archives (command line wise) seems to fit the bill. I'll try reorder the linking, or use --start-group/--end-group
Thank you Vladimir, Indeed it was the order of the linking that messed it up. Works fine now... damned ld! /Rob