startup error with C++ libraries

I have an application linked against multiple shared libraries containing C++ code (all compiled with pgCC, of course).

At program startup I get:
C++ runtime abort: internal error: static object marked for destruction more than once

any hints as to how I should look for the cause?

platform: ia32
compiler version: 5.2



What happens if you statically link in your libraries using -Bstatic?



You might want to look in your constructor(s) first. If you don’t have one, you need one if you are dealing with pointers. I assume in your destructor(s) you have some “delete” to deallocate memory. Make sure you initialize all pointers to 0 or NULL in your constructor(s).
Hope this help.