Hallo,
I am a newbie in C and I have a question regarding C libraries.
I got an application in C and I am trying to add some new features on
it for my work. The problem is this application requires the
installation of an external Library A (not a C standard library). After
some time I managed to install the external libraries using the
makefiles and running the application (a makefile was also included)
My question is , is there anyway to run my application independently
without the need to install the external library, by just copying the
source and the header files (they are just four files), I mean do I
need the .so files as well??
If yes what is the best way to do and what changes do I have propably
to do to keep minimal changes on the application?
Sorry for my naive question. 6 2294
tekmicha wrote: Hallo, I am a newbie in C and I have a question regarding C libraries. I got an application in C and I am trying to add some new features on it for my work. The problem is this application requires the installation of an external Library A (not a C standard library). After some time I managed to install the external libraries using the makefiles and running the application (a makefile was also included) My question is , is there anyway to run my application independently without the need to install the external library, by just copying the source and the header files (they are just four files), I mean do I need the .so files as well?? If yes what is the best way to do and what changes do I have propably to do to keep minimal changes on the application? Sorry for my naive question.
Not really a C question, but from what you say I can't see that you can
avoid installing this "external" library. It most likely contains some
functions/data used by your program. The only other option, IMHO, would
be to write your own replacement.
In any case, you may also want to ask this in some Linux group (you
mention `.so`).
--
BR, Vladimir
tekmicha wrote: Hallo, I am a newbie in C and I have a question regarding C libraries. I got an application in C and I am trying to add some new features on it for my work. The problem is this application requires the installation of an external Library A (not a C standard library). After some time I managed to install the external libraries using the makefiles and running the application (a makefile was also included) My question is , is there anyway to run my application independently without the need to install the external library, by just copying the source and the header files (they are just four files), I mean do I need the .so files as well?? If yes what is the best way to do and what changes do I have propably to do to keep minimal changes on the application? Sorry for my naive question.
Maybe you could asked the writer of the libraries send the only code
you needed to you.:)
Well sorry , I didnt want to post a specific OS question , I admit I
was a newbie in posting in this group as well:). I mailed him . I have
all the source codes and the header files of the library , so my naive
thought was may be to just include these header files on the include
directory and correct the problems but propably I have still to rebuild
again the libraries so I will not get out of it. I am just trying to
copy al the files including the libraries to the application and
changing may be the path into a local application directory , so that
I will not have to install this messy library on each machine of the
network.
Thanks anyway
tekmicha wrote: Well sorry , I didnt want to post a specific OS question , I admit I was a newbie in posting in this group as well:). I mailed him . I have all the source codes and the header files of the library , so my naive thought was may be to just include these header files on the include directory and correct the problems but propably I have still to rebuild again the libraries so I will not get out of it. I am just trying to copy al the files including the libraries to the application and changing may be the path into a local application directory , so that I will not have to install this messy library on each machine of the network. Thanks anyway
If you don't quote any context nobody knows what you're on about. Read:
<http://cfaj.freeshell.org/google/>
before posting again.
Assuming "him" was me (even if you did quote context, refering to
someone in third person is bad manners, at least where I come from),
mailing is not what you'd normally do (even disregarding the fact that
most people do not leave real e-mail addresses). I'll have a look at
your e-mail some time, and post whatever's relevant, if anything.
--
BR, Vladimir
On 24 Mar 2006 06:29:44 -0800, in comp.lang.c , "tekmicha"
<ma*********@spray.se> wrote: . I have all the source codes and the header files of the library , so my naive thought was may be to just include these header files on the include directory and correct the problems
If you have the LIBRARY sources too, then you can avoid using the
library - just include the sources in your compile/link process.
Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
tekmicha wrote: Well sorry , I didnt want to post a specific OS question , I admit I was a newbie in posting in this group as well:). I mailed him . I have all the source codes and the header files of the library , so my naive thought was may be to just include these header files on the include directory and correct the problems but propably I have still to rebuild again the libraries so I will not get out of it. I am just trying to copy al the files including the libraries to the application and changing may be the path into a local application directory , so that I will not have to install this messy library on each machine of the network. Thanks anyway
<OT>You may be able to trivially build the library as an archive (.a)
rather than a shared object (.so) and statically rather than
dynamically link it to your app. That may be the answer to
your problems as you won't have to then install the library
separately from your app. Not always the right choice,
but... If you have questions about it, asking in
comp.unix.programmer is the right place, not here.
Followups set there.
</OT>
-David This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: leeaby |
last post by:
Hi, I will appreciate your assistance.
Can we write a c code which do not contain main()
I have heard that this is possible. Is it really possible?
Thanks for your help in advance
lee
|
by: Wysiwyg |
last post by:
Is there any way to add an embedded resource to a project without copying it
to the project's directory? I have shared resources and don't want each
project using the images, xml files, etc. to...
|
by: VK |
last post by:
Mission statement:
A mechanics to get text stream into browser from any Web location
without reloading the current page.
1) This mechanics has to support *at the very least* IE 5.5 and higher...
|
by: sam_cit |
last post by:
Hi Everyone,
int main()
{
printf("not included stdio.h");
}
Yes, i haven't included stdio.h and my compiler would generate a
warning and would assume that it would return a int, my question...
|
by: lpcarignan |
last post by:
Hi all,
Right now, I'm debugging a C# library by starting an external
application. To do this, I go in the project settings of the C#
project, go in the Debug section and check the radio button...
|
by: Jan Spatina |
last post by:
Hi,
I've got problems when trying to compile simple hello world program in vs6 using
qt3.4.0.
it's code is:
#include <qapplication.h>
#include <qpushbutton.h>
int main( int argc, char...
|
by: Joe |
last post by:
Hi,
I am using VS2005 and am attempting to create a Setup project
to install my VB.NET application onto the customer's target computer.
I am having difficulty setting the Target property for...
|
by: Curtis Rutland |
last post by:
How To Use A Database In Your Program Part II
This article is intended to extend Frinny’s excellent article: How to Use a Database in Your Program. Frinny’s article defines the basic concepts...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |