How to share library
Hi linux gurus,
I have a problem. I installed the cgicc-3.2.1 library in the directory /home/user_name/cgiBooth at my internet provider. I'm able to use it in this way:
> g++ -o ex01.cgi -I/home/user_name/cgiBooth/include example.cpp /home/user_name/cgiBooth/lib/libcgicc.a
and all is OK, size of the program is about 1MB. The script runs on my website. It was static linking of that library.
When I compile it with dynamic linking
> g++ -o ex01.cgi -I/home/user_name/cgiBooth/include example.cpp -L/home/user_name/cgiBooth/lib -lcgicc
the size of the program is about 50kB and the server displayes an error 500 - Internal Server error.
I have only 50MB space at him. I'd like only to share this library. Is there any possibility to solve this problem. The same problem is when I make my own library.
On my home computer I'm alo administrator, so there are no
problems to share library and to run smaller programs on my Apache server.
Tank you in advance and best regards,
cgifalcon
|