| View previous topic :: View next topic |
| Author |
Message |
schwieters
Joined: 29 Jul 2004 Posts: 1
|
Posted: Tue Aug 03, 2004 6:54 am Post subject: 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
Abort
any hints as to how I should look for the cause?
platform: ia32
compiler version: 5.2
thanks--
Charles |
|
| Back to top |
|
 |
mleair
Joined: 19 Jul 2004 Posts: 67 Location: Portland Group
|
Posted: Wed Aug 04, 2004 1:51 pm Post subject: RE: C++ runtime error |
|
|
Hi,
What happens if you statically link in your libraries using -Bstatic?
Regards,
Mark |
|
| Back to top |
|
 |
hongyon
Joined: 19 Jul 2004 Posts: 551
|
Posted: Wed Aug 04, 2004 2:25 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|