at first sorry if the question was asked before, but i found nothing by searching.
At second:
- I’m using Kubuntu 12.04,
- gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3,
- boost v1.48.0
As the title says, I have an application which uses the boost / program options Library.
Now I want to ship the source code of the application to my teacher, but he has not installed Boost. I am searching for a way to extract the corresponding source files from the whole boost library to ship only that files, that are really needed.
What I now want is a folder containing the headers and cpp files and a simple make by my teacher on his machine does the job.
But I don’t know how to get that files.
-
I’ve found
bcpbut I don’t know what to do with the output. There are .hpp and .cpp files but when I try to compile I get errors over errors… -
Then I’ve seen the
bootstrap.shscript in the boost folder and I called it withbootstrap.sh --with-libraries=program_options. That constructed a binary library and header files for every library.
Now I used the libboost_program_options.a from the second step and the header files from the first step together:
I put the path to the headers with -I path_to_header on the include-path and linked statically against libboost_program_options.a.
That even comiled and ran perfectly, but only on my machine and not on the machine of a friend, who is using Fedora 17 with gcc 4.7.x.
Is there any working and easy way like “put that header files and that cpp files in a folder and add the path to the cpp files to the list in your Makefile and then run make and HEY there you have the program”?
Thanks
I don’t know, if this is the answer, you want to hear from me, but now my teacher installed the boost library on his computer, after he heard about these issues…
Now I’m able to link the files with the
-lboost_program_optionsoption and it works on my machine, on my friend’s one and (probably the most important) on my teachers one…Thank you for your time 🙂