Re: Circular Dependency



In message <1174995774.021735.204400@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, newbei
wrote:

Hi,

I have two libraries libA and libB, both of them are dependent on
each other for certian symbols which is creating a circular dependency
among libraries.

Try specifying the first library twice when you link, e.g.

gcc -o my_prog my_prog.o -lA -lB -lA

The second usage of -lA is there to resolve any dangling dependencies from
the -lB option.

--
Regards

Dave [RLU#314465]
======================================================
dwnoon@xxxxxxxxxxxxxxxxxxxxx (David W Noon)
Remove spam trap to reply via e-mail.
======================================================

.



Relevant Pages

  • Weird DLL problems: Windows Mobile 2003 Second Edition/eVC4 SP3
    ... I have a small MFC app here that works fine on anything from PPC2000 ... and filename are correct and all the required libraries are ... LoadLibrary on coredll.dll returns a valid HINSTANCE and 0. ... LoadLibrary on myappmodule2.dll (dependent on myappmodule1.dll) ...
    (microsoft.public.pocketpc.developer)
  • Re: VC++ 6.0 Project Settings question
    ... The other is an executable that is dependent on the static lib. ... In this dialog select your EXE project as the "project to modify" and check the box next to the LIB project in the "Dependent on" window. ... (That list is for "system" libraries that the compiler can consider to be static.) ... Now go to the "FileView" tree window and expand the tree so you can see the components of your EXE project. ...
    (microsoft.public.vc.language)
  • Re: to learn jQuery if already using prototype
    ... major libraries like Prototype.js, jQuery, etc are all relatively ... Anyone who writes code that is dependent on aberrant behaviour ... The fundamental design of a library can be extremely modular ... industry standard with jQuery second industry standard compliant ...
    (comp.lang.javascript)
  • RE: 3380-3390 Conversion - DISAPPOINTMENT
    ... We can surmise from these savings that we are primarily dependent on the ... primary benefit occurred for CSECTS that were between 8 - 12K in size. ... But, as I stated earlier, these libraries probably contain the ...
    (bit.listserv.ibm-main)
  • Re: Circular Dependency
    ... I have two libraries libA and libB, both of them are dependent on ... each other for certian symbols which is creating a circular dependency ...
    (comp.os.linux.development.apps)