Is there any option to omit variable type or to set variable type to int
in c++ code that to be compiled with g++ compiler in linux.
const bufLen = 2000;
Compilation went fine in solaris (as I am doing porting from solaris to linux).
One more thing ,I dont have control over the file as it is generated by some parser (provided by some third party in the form of binary)
Since I cant change the c++ file(as it is generated everytime before compilation) , I need some option (of g++) so I can include during compilation to suppress/resolve the error:
error: ISO C++ forbids declaration of `bufLen` with no type
EDIT :
INFO : options currently I am using -c -fPIC -Wno-deprecated -m32 -O2 -ffriend-injection -g
Is anyone of the options causing me trouble (or affecting other) ?
Thanks in advance