cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Embed stuff inside the executable itself
Embed stuff inside the executable itself?
Jan 28, 2012 at 5:08pm UTC
ihato
(57)
I'm still a beginner, but I'm wondering how to save some info inside the executable? Is there a library or something for that?
Can anyone point me where to learn that?
Thanks
Jan 28, 2012 at 5:14pm UTC
Moschops
(7244)
This is called "static linking".
Jan 28, 2012 at 6:05pm UTC
Duthomhas
(13282)
In other words, you must compile your "stuff" into an object file, and link it to the executable.
Windows makes this easy by giving applications "resources".
On *nix systems you can get some help here:
http://www.linuxjournal.com/content/embedding-file-executable-aka-hello-world-version-5967
Good luck!
Topic archived. No new replies allowed.