Re: "External" object files
From: Owen Jacobson (angstrom_at_lionsanctuary.net)
Date: 06/19/04
- Previous message: Lew Pitcher: "Re: Just a test"
- In reply to: Doru-Catalin Togea: ""External" object files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 19 Jun 2004 03:24:32 GMT
On Fri, 18 Jun 2004 15:48:44 +0200, Doru-Catalin Togea wrote:
> My problem is that my application is located some other place then the
> xawtx code and I do not know how to refere to (#include) the relevant
> xawtv code. It is not reasible to relocate my code into xawtv's source
> tree.
>
> Most of the code relevant to me is implemented into the
> ../xawtv-3.93/console/webcam.c file with no corresponding header file.
> There is also a .../webcam.o file from the compilation of xawtv.
>
> Is it possible to somehow link against webcam.o and make use of the
> functionality of that object file?
Just like any other object file -- pass it as an argument to the link
phase of your project's compilation. In order to refer to symbols defined
in that object file, you'll need to declare them somewhere in the code
that uses them.
Good luck,
Owen
-- Some say the Wired doesn't have political borders like the real world, but there are far too many nonsense-spouting anarchists or idiots who think that pranks are a revolution.
- Previous message: Lew Pitcher: "Re: Just a test"
- In reply to: Doru-Catalin Togea: ""External" object files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|