LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-20-2003, 08:53 AM   #1
cgifalcon
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
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
 
Old 12-22-2003, 01:51 PM   #2
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Try to check if your executableis finding the library in the system:

# ldd ex01.cgi
 
Old 12-24-2003, 03:12 AM   #3
cgifalcon
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Hi vladkrack,

I did the test of course. I'm not authorized at my host to set path to the library in the standard way. I can only do changes in my directory /home/user_name. So the program cannot find the library.

Thanks cgifalcon
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 02:35 AM
adding a bulit in library to my library lg3 Linux - Software 1 10-17-2004 09:19 AM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 08:27 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 05:20 AM
what is the function library of the basic graphics library in rethat9.0? zerwolve Red Hat 0 04-29-2004 10:18 PM


All times are GMT -5. The time now is 06:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration