Configuration files for C in linux
Posted
by James
on Stack Overflow
See other posts from Stack Overflow
or by James
Published on 2010-04-19T13:49:20Z
Indexed on
2010/04/19
13:53 UTC
Read the original article
Hit count: 344
Hi,
I have an executable that run time should take configuration parameters from a script file. This way I dont need to re-compile the code for every configuration change. Right now I have all the configuration values in a .h file. Everytime I change it i need to re-compile.
The platform is C, gcc under Linux.
What is the best solution for this problem? I looked up on google and so XML, phthon and Lua bindings for C. Is using a separate scripting language the best approach? If so, which one would you recommend for my need?
Thanks
© Stack Overflow or respective owner