Re: Help! - Constructor related with a static instance of a C++ class will be ignored during run on HPUX

From: Dennis Handly (dhandly_at_cup.hp.com)
Date: 07/26/03


Date: 26 Jul 2003 07:38:07 -0700

in (trendin@hotmail.com) wrote:
: On this issue, can you tell me more about it?
: 1. As I said in hp itrc forum, why "_main" can not be recognized in
: C++ file?

http://docs.hp.com/hpux/onlinedocs/2213/otherlangs.htm
If you want to call _main in C++, you must use extern "C" void _main();

: Since my share library with "C" exported are designed for both "C"
: and "C++" call, so, seems add _main is the mere partial solution, am I
: right?

It would be the only solution before the patch.

: 2. Do you know, how HP view development with gcc on HPUX?

Obviously I want you to use aC++. ;-)