"Segmentation Fault" errors in libpq++ programs.
"Segmentation Fault" errors in libpq++ programs.
От:
"Eric W. Brown" <eric@saugus.net>
Дата:
Hi, I'm fairly new to PostgreSQL and have been having some problems getting C++ programs linked with libpq++ to run error free. Regardless of what the program is or does (provided it utilizes at least one libpq++ class instance) it will crash with a Segmentation Fault just prior to properly exiting. That is, the program will do all the hard stuff properly and fail at the very end (presumably having destructor problems). I'm running Solaris 2.7 and am using the GNU gcc version 2.95.2 compiler suite. PostgreSQL is version 7.0.2 and was built (seemingly properly, psql appears to function okay and hand queries all work without mishap) on the same machine with the same copy of gcc. Has anyone gotten this to work? Thanks, Eric