2020-07-04 08:50 AM
I've got an application where the main() function needs to be non-standard. In older version of GCC this wasn't an issue but the newer versions seem to have changed something
I need:
void main(long long int *c, long long int *b)
but GCC is overriding this. Is there a compiler switch to let me do what has worked fine previously?
Thanks
2020-07-04 09:51 AM
How are you passing parameters to main() in an STM32 application?
There are only two allowed forms for arguments of main() per the C standard:
int main (void);
int main (int argc, char* argv[]);
2020-07-05 02:25 AM
> GCC is overriding this
What do you mean by that? Does gcc rewrite the code or what?