The Joy of Linking

September 21st, 2007

Wouldn’t you know it - in my various console stress test apps that I wrote I had no issues compiling and linking.  Now that it’s time to integrate with my existing app that uses the Oracle libs - now I’m having linker errors everywhere. 

It looks to be a conflict between memory managers … oh… joy.

They say understanding and fixing linker errors is the sign of an experienced programmer.  I just think of it as annoyingly time consuming.

  • definition for item A couldn’t be found
  • track down item A
  • Oh look - there are several of them - which one should I use?
  • Are there any defines that need to be set?
  • Are there project dependencies that I skipped?
  • Are the two projects using the same C Runtime?  Static/Dynamic and SingleThread/MultiThread?
  • summon archaine knowlege about one of the projects your linking to - you seem to remember some mentioning how it wasn’t compatable with something & it’s not documented in the headers ;-)
  • re-compile
  • Lather, Rinse, Repeat

128

September 21st, 2007

HA_ERR_OUT_OF_MEM


#define HA_ERR_OUT_OF_MEM 128 /* Record-file is crashed */

TODO: Add Context

127

September 21st, 2007

HA_ERR_WRONG_IN_RECORD


#define HA_ERR_WRONG_IN_RECORD 127 /* Record-file is crashed */

TODO: Add Context

126

September 21st, 2007

HA_ERR_CRASHED


#define HA_ERR_CRASHED 126 /* Indexfile is crashed */

125

September 21st, 2007

TODO: Find where 125 is defined - I doesn’t appear to be listed with the other HA_ERR_* defines in my_base.h

Was it depreciated?

124

September 21st, 2007

HA_ERR_WRONG_INDEX


#define HA_ERR_WRONG_INDEX 124 /* Wrong index given to function */


TODO: Add Context

123

September 21st, 2007

HA_ERR_RECORD_CHANGED


#define HA_ERR_RECORD_CHANGED 123 /* Uppdate with is recoverable */

TODO: Add context

122

September 21st, 2007

TODO: Find where 122 is defined - I doesn’t appear to be listed with the other HA_ERR_* defines in my_base.h

Was it depreciated?

121

September 21st, 2007

HA_ERR_FOUND_DUPP_KEY 


#define HA_ERR_FOUND_DUPP_KEY 121 /* Dupplicate key on write */


TODO: Add context

120

September 21st, 2007

HA_ERR_KEY_NOT_FOUND


#define HA_ERR_KEY_NOT_FOUND 120 /* Didn’t find key on read or update */

TODO: Add context