:
file1.c
#define bottom arse
file2.c
int f()
{
int arse = 4;
bottom = 3;
printf("%d", arse);
}
main.c
#include "file1.c"
#include "file2.c"
void main()
{
f();
}
, . , - , .
I really got this error, I imported some lib code into a new project and couldn't worry about writing a Makefile, so I just generated all.cpp, which included all the sources from the library. And it did not work, as expected, due to macro pollution. Spent me to figure it out.
source
share