CNI problem on MS Windows (GCC 3.4)

Per Bothner per@bothner.com
Tue May 24 05:49:00 GMT 2005


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/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /