ambuli
asked on
Using log4c logging tool in a C project
Hi Experts,
I am trying to use log4c in a C project. The C app would be running in Linux(embedded). I was thinking I can use log4c by simply copying the .so file and the header files into my project. But, the documentation available everywhere points to installing it( apt-get install liblog4c-dev etc)
What are the steps required to use this? I believe this is pretty much same for any other libs( like openssl)... thank you.
I am trying to use log4c in a C project. The C app would be running in Linux(embedded). I was thinking I can use log4c by simply copying the .so file and the header files into my project. But, the documentation available everywhere points to installing it( apt-get install liblog4c-dev etc)
What are the steps required to use this? I believe this is pretty much same for any other libs( like openssl)... thank you.
To avoid installation, I'd try to statically link against log4c - this would save you all that hassle. You should be able to specify that either when running './configure' or edit the resulting Makefile to create a static library instead of a dynamic one.
ASKER
thanks. So, I would just grab the liblog4c.a file and statically link. How about the header files?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.