This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CNI problem on MS Windows (GCC 3.4)


Ranjit Mathew wrote:
Pedantic nit: "argv" should be declared "char* argv[]" (it's
an *array* of pointers to characters).

Or even better: char **argv.


> You missed a "return 0;" statement here. The
> program should not have compiled without warnings.

IIRC there is an implicit return 0 at the end of main,
according the C++ standard.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]