c++ - E2040 Declaration terminated incorrectly -
i building winscp source.
when compiling source, following error occurs:
[bcc32 error] jcl.cpp(9): e2040 declaration terminated incorrectly
the ide indicating @ following source.
// --------------------------------------------------------------------------- # include<system.hpp> # pragma hdrstop # pragma package(smart_init) // --------------------------------------------------------------------------- // package source. // --------------------------------------------------------------------------- #pragma argsused extern " c " int _libmain(unsigned long reason) { return 1; } // ---------------------------------------------------------------------------
could please tell me wrong , how correct.
the actual winscp code is:
#pragma argsused extern "c" int _libmain(unsigned long reason) { return 1; }
see jcl.cpp
in winscp cvs repository.
you must have corrupted code yourself.
Comments
Post a Comment