0

I have a simple program which uses standard library functions like malloc(), free() and I want to link them statically. I tried options: -static -static-libstdc++ -static-libgcc but nothing is working.

Peter
  • 23
  • 5
  • Please post a [MCVE](http://stackoverflow.com/help/mcve) along with the evidence that it doesn't seem to be linked as you expect, so that others can try to reproduce your problem – M.M May 13 '17 at 23:07
  • Also specify exactly which compiler build you are using . (If using pre-built binaries, say where you got them) – M.M May 13 '17 at 23:10

0 Answers0