This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: CNI problem on MS Windows (GCC 3.4)
- From: Per Bothner <per at bothner dot com>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: Amir Bukhari <ufz6 at rz dot uni-karlsruhe dot de>, java at gcc dot gnu dot org
- Date: Mon, 23 May 2005 21:05:28 -0700
- Subject: Re: CNI problem on MS Windows (GCC 3.4)
- References: <m3y8a9a0gg.fsf@localhost.localdomain> <1004.00398155234$1116685070@news.gmane.org> <42918460.5040309@gmail.com>
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/