Linking C++ Programs with dbfork

The binder option -bkeepfile currently cannot be used with the IBM xlC C++ compiler. The compiler passes all binder options to an additional pass called munch, which cannot handle the -bkeepfile option.

To work around this problem, we have provided the C++ header file libdbfork.h. You must include this file somewhere in your C++ program, in order to force the components of the dbfork library to be kept in your executable. The file libdbfork.h is included only with the RS/6000 version of TotalView. This means that if you are creating a program that will run on more than one platform, you should place the include within an #ifdef statement. For example:

#ifdef _AIX
#include "/usr/totalview/lib/libdbfork.h"
#endif
int main (int argc, char *argv[])
{
}

In this case, you would not use the -bkeepfile option and would instead link your program using one of the following options:

  • /usr/totalview/lib/libdbfork.a
  • -L/usr/totalview/lib -ldbfork
 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0