I have this source code:
#include <iostream>
int snsn = 344;
int main()
{
int anothername = 29;
std::cout << &snsn << "\n";
system("pause");
}
And after linking the final image file, I run dumpbin /SYMBOLS source.exe
on the file, but this it the output:
Dump of file source.exe
File Type: EXECUTABLE IMAGE
Summary
1000 .00cfg
1000 .data
1000 .idata
3000 .rdata
1000 .reloc
1000 .rsrc
7000 .text
10000 .textbss
Why doesn't it show any symbols?