[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: pcb library and hid build modification



On Tue, May 26, 2009 at 9:24 PM, DJ Delorie <dj@xxxxxxxxxxx> wrote:
>
>> but the bindings would require all of the same object files that
>> would be in a shared library.
>
> You'll have to explain that further.  The main application *is* a
> shared object (else dynamic plugin loading wouldn't work), why do we
> need to separate out parts of it into a second shared object?
>

How do you do:
   gcc -c swig_wrapper.c
   gcc -shared pcb swig_wrapper.o -o swig_pcb.so
without gcc cursing at you?

Now if you wanted to access all of the functions in a particular
object file, you could:
  gcc -c swig_wrapper.c file.c
  gcc -shared swig_wrapper.o file.o -o swig_wrapper.so

And taken further if you want to access all the functions that the PCB
core provides you have to link against all of the object files.


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user