Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Check .lib is complete
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Louis Lavery  
View profile   Translate to Translated (View Original)
 More options 2 Nov, 16:53
Newsgroups: comp.lang.c++.moderated
From: Louis Lavery <Lo...@LaverREMOVE.demon.co.uk>
Date: Mon, 2 Nov 2009 10:53:34 CST
Local: Mon 2 Nov 2009 16:53
Subject: Check .lib is complete
Hello,

Is there a simple way to check that a C++ lib is complete,
that is that it does not have any external dependencies?

Thanks, Louis.

--
      [ See http://www.gotw.ca/resources/clcm.htm for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
paperab  
View profile   Translate to Translated (View Original)
 More options 3 Nov, 06:57
Newsgroups: comp.lang.c++.moderated
From: paperab <ab9380...@yahoo.co.uk>
Date: Tue, 3 Nov 2009 00:57:00 CST
Subject: Re: Check .lib is complete
On Nov 2, 4:53 pm, Louis Lavery <Lo...@LaverREMOVE.demon.co.uk> wrote:

> Hello,

> Is there a simple way to check that a C++ lib is complete,
> that is that it does not have any external dependencies?

{ edits: quoted sig and banner removed. please don't quote extraneous material
such as signatures or the banner (which is added to every article). -mod }

Hi,

A lib is something (I guess you mean a static library: the 'lib' is
vague) created by the linker... it's no more C++, may use some other
libraries or not (and again this definition is not precise at 100%
because can be linked statically with some of them).

Replying to your post in Windows you can use dumpbin /dependencies if
I remember well. In Linux there is another command: check the manual.

But... if the lib is only a wrapper to a dynamic loaded library you
are again in trouble.

--
      [ See http://www.gotw.ca/resources/clcm.htm for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorgen Grahn  
View profile   Translate to Translated (View Original)
 More options 8 Nov, 15:50
Newsgroups: comp.lang.c++.moderated
From: Jorgen Grahn <grahn+n...@snipabacken.se>
Date: Sun, 8 Nov 2009 09:50:51 CST
Local: Sun 8 Nov 2009 15:50
Subject: Re: Check .lib is complete
On Tue, 2009-11-03, paperab wrote:
> On Nov 2, 4:53 pm, Louis Lavery <Lo...@LaverREMOVE.demon.co.uk> wrote:
>> Hello,

>> Is there a simple way to check that a C++ lib is complete,
>> that is that it does not have any external dependencies?

...

> A lib is something (I guess you mean a static library: the 'lib' is
> vague) created by the linker... it's no more C++, may use some other
> libraries or not (and again this definition is not precise at 100%
> because can be linked statically with some of them).

> Replying to your post in Windows you can use dumpbin /dependencies if
> I remember well. In Linux there is another command: check the manual.

You probably mean something like this (which by the way is likely to
work in various Unixes):

   % nm -C libprefer.a | grep -iw U

Note that it's not enough; if the library contains foo.o and bar.o you
get to see foo.o's unresolved references to symbols in bar.o, and so
on.  A static library (in the usual sense) doesn't have its internal
dependencies resolved.

By the way, I suspect this is one of those cases where the original
poster could get a better answer if he explained what he wanted to
accomplish.

/Jorgen

--
   // Jorgen Grahn <grahn@  Oo  o.   .  .
\X/     snipabacken.se>   O  o   .

      [ See http://www.gotw.ca/resources/clcm.htm for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AnonMail2005@gmail.com  
View profile   Translate to Translated (View Original)
 More options 8 Nov, 20:22
Newsgroups: comp.lang.c++.moderated
From: "AnonMail2...@gmail.com" <anonmail2...@gmail.com>
Date: Sun, 8 Nov 2009 14:22:09 CST
Local: Sun 8 Nov 2009 20:22
Subject: Re: Check .lib is complete
On Nov 2, 11:53 am, Louis Lavery <Lo...@LaverREMOVE.demon.co.uk>
wrote:
> Hello,

> Is there a simple way to check that a C++ lib is complete,
> that is that it does not have any external dependencies?

google dependency walker.  It's a free download.  That will go a long
way toward telling you.  But even that will sometimes give an external
dependency that is not needed.

HTH

--
      [ See http://www.gotw.ca/resources/clcm.htm for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google