Solved Source code of main inside exe
-
I just checked the strings contained in an exe compiled on windows supposedly in release (qt creator+vs2017) and I can see the source code of the main.
What I am doing wrong?Thank you in advance
Emanuele
-
What I am doing wrong?
If you mean you can see method names: you are doing nothing wrong, this is normal.
If you want to hide them, use some C+ obfuscation technique / software.
-
No, I mean I can see the entire source code of the main.
I used this:
https://docs.microsoft.com/en-us/sysinternals/downloads/strings
on my exe and I can see the entire source code of the main:
#include <QApplication>
#include <QCommandLineParser>
....Yes, I also see some method names, but this is not a big problem.
-
No idea then, that's weird.
-
@3cxitalydev Did you check the build log to see how the compiler was called (what parameters were passed to it)?
-
You probably compiled in debug mode. Try switching to release and see if the same happens
-
Hi,
many thanks to all of you.
At the end I discovered that I added by mistake the main as resource file... :(Sorry for bothering you.
Emanuele
-
@3cxitalydev Glad you figured it out.
Then please mark this topic as SOLVED. Thanks.