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 2310
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*********@sp ray.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.progr ammer 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 need to be updated with the
current copy before being built. I also don't want projects being built with
the old copy.
Thanks!
Bill
|
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
and Firefox 1.5 and higher: but it may be completely different from one
browser to another. It is important only to be able to build an
uniformed...
|
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 is how
does the linker manage to link the function invocation to the proper
|
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 "Start
external program". I then specify the application that will start my
library.
I was wondering how VS 2005 does this under the cover. ...
| |
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 **argv )
{
|
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 the
Desktop shortcut. It only allows me to select the Application
folder. I cannot add the actual name of the executable program after
that. When...
|
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 of using databases very well and is prerequisite reading for this article.
Frinny’s article explains how to use a SQL Server in your program, but...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |