User forums > General (but related to Code::Blocks)
How to include libwxgtk2.8-0-ansi libraries into my linux executable.
(1/1)
papafreebird:
Hopefully this is not considered a programming topic and won't get closed.
I need help getting my executable to be self sufficient. My program will not run on other linux systems without the user first installing an external library libwxgtk2.8-0-ansi. I would like to include that library into my executable so that the end user will not have to install anything else other than my program.
Any help would be appreciated.
JGM:
You have to link to a static library, here I give you a link to the wxwidgets compilation wiki page:
http://wiki.wxwidgets.org/Compiling_WxWidgets
You should ./configure --help to see a list of available flags before compiling.
papafreebird:
Thanks I appreciate the link. I didn't compile wxwidgets. I installed them through synaptic package manager of Ubuntu linux. Are you saying I need to compile my own wxwidgets as a static library?
Navigation
[0] Message Index
Go to full version