I want to get from any Unix-like system (if this is possible) a unique id that will be persistent every time my application runs in the same machine. If it is possible, I wa
Sounds like you are looking for UUID. This is a common universally unique id (really, the same thing as a GUID)
There are many C++ implementations of this in diffrent libs, or you could use the uuidgen command and capture the output.