New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 'function modifier cannot be used on a variable' #1246
Comments
-ecc option change calling convention and part of this is name change in object file.
|
Are you sure about that? I've got the impression that options -3s/4s/5s or -3r/4r/5r actually determine the calling convention - while the -ecc option affects the name only. The #pragma hack is ok, but still, the C++ compiler should not emit such strange error messages just because option -ecc is given. I noticed, however, that this bug report is more or less a double, there's already #1187 |
Yes, the problem with the -ec... options for C++ compiler is known. |
The error may be emitted by the C++ compiler wpp386 if your C++ code contains a std include file, i.e. math.h:
it happens only if the compiler option -ecc is given, though. This option is needed here to make the compiler add a preceding underscore to the external ( _asmfunc ).
The text was updated successfully, but these errors were encountered: