compiling libs inside of libs

From: Pat Ford (pat.ford_at_nrc.ca)
Date: 01/27/05

  • Next message: Uday Mullangi: "ACPI"
    Date: Thu, 27 Jan 2005 09:35:13 -0500
    
    

    Hi All;
      In an app I'm writting I have a lib that does some compatability things
    ( provides PDP asm opcodes and memory space mapping). recently I've had to
    add support for a multifunction dio board, that to the base app looks like
    mem mapped io ( so bis 2, dio1 will work, sort of like it would on a pdp11).
      Logicaly I don't think the diowrite function should go into the compat
    library, style issues aside the function is used elsewhere.
     So, how do I link a library into another? No matter where I put the $(LIBS)
    macro I get "linker input file not used because linking not done messages.

    Any ideas?
    Thanks
    Pat

    here is the Makefile

    OBJS = bic.o bis.o clr.o vax_to_ieee.o bit.o mov.o validate.o
    PDPLIB=../libpdp.a
    CFLAGS=-Wall
    IPTH=-I../../include
    LPTH=-L../ -L../../daq
    LIBS=-ldaq -ldaqbase

    .c.o: ; cc -c $(CFLAGS) $(IPTH) $<

    $(PDPLIB): $(OBJS)
     ar -rvs $(PDPLIB) $(OBJS)
     rm -f *.o

    clean:
     rm -f *.o
     rm -f ../libpdp.so


  • Next message: Uday Mullangi: "ACPI"

    Relevant Pages

    • Static Library Containing Dialog and Resource
      ... I have a static library that links with the static MFC lib. ... Everything works great with the debug build. ... But when the calling app that links in the ... Access Violation - nothing odd shows up in the debug build. ...
      (microsoft.public.vc.mfc)
    • Re: Static link MAPI32 ?
      ... If you have an app that *can* use MAPI, ... mapi32.dll runs about 1.4 MB and the lib runs about 30 KB. ... the extensions of the libraries vary ...
      (microsoft.public.win32.programmer.messaging)
    • Re: calling a 2.0 CF assembly from a 1.1 assembly ?
      ... you will need to use a .config file to tell .NET CF to use ... the v2 runtime even though it is a v1 app. ... >>> I'd like to create a lib with VS 2005 and consume this lib from ... >>> Steve ...
      (microsoft.public.dotnet.framework.compactframework)
    • Re: Bug in STL VS2005 / Release Lib in Debug EXE -> Buffer overrun
      ... Korrekt! ... bei einer Lib kann man die statischer CRT verwenden. ... Applikation angelegt wurde. ... Würde ich also App und Lib ...
      (microsoft.public.de.vc)
    • Linking Apps and LIBs
      ... I have a VC6.0 app that uses a MFC, exceptions, etc. ... I tried to rewrite the LIB using VC7.0, using a lot of STL stuff. ... to tell the librarian only to export the plain ... "C" interface functions but this does not work - still same error ...
      (microsoft.public.vc.language)