Author Topic: How to keep inode of rebuilt binary  (Read 2982 times)

Offline tjareson

  • Single posting newcomer
  • *
  • Posts: 5
How to keep inode of rebuilt binary
« on: October 10, 2022, 04:47:22 pm »
I'm using codeblocks 20.03 on linux.
I need to keep the inode of the binary when recompiling. But the very first thing codeblocks (or g++?) is doing is to delete the binary when recompiling.
So even with pre-build steps I cannot rename the old binary to preserve its inode.
Any ideas how I could get ahead of this?


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7607
    • My Best Post
Re: How to keep inode of rebuilt binary
« Reply #1 on: October 10, 2022, 08:47:32 pm »
Stop rebuilding instead do an build is step one.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
When in doubt, read the CB WiKi FAQ.