how can i create a program without Windows Defender problems?

i'm creating a program using Code Blocks with GNU\GCC compiler.
i'm using Windows 10 with Windows Defender.
my program create a txt files(instead a text files, we can speak binary files too), but the Windows Defender can delete the file(and i have sure), for avoid these problem i must disable the Windows Defender.
my question is: can i compile my program(even using a compiler\linker flag) for avoid the Windows Defender problems?
ok.... i can disable the Windows Defender and make an exception.... but if i share my program, the new user will get the same problem :(
can anyone advice me more?