Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Static library Vs. Dynamic library

Reply
Thread Tools

Static library Vs. Dynamic library

 
 
iceColdFire
Guest
Posts: n/a
 
      05-17-2005
Hi,

Can someone highlight the difference between static library and bynamic
library...and how do .lib and .dll files come up in the picture...

Thanks,
a.a.cpp++

 
Reply With Quote
 
 
 
 
Alf P. Steinbach
Guest
Posts: n/a
 
      05-17-2005
* iceColdFire:
>
> Can someone highlight the difference between static library and bynamic
> library...


Dynamic libraries are not covered by the C++ standard. For that matter,
neither are static libraries, but static libraries just provide ordinary
C++ code. For an explanation of static libraries, see

<url: http://home.no.net/dubjai/win32cpptut/html/w32cpptut_01_01_01.html>.


> and how do .lib and .dll files come up in the picture...


That's off-topic in this group.

Try posting in e.g. [comp.os.ms-windows.programmer.win32] for Windows-
specific questions.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
 
Reply With Quote
 
 
 
 
iceColdFire
Guest
Posts: n/a
 
      05-17-2005
:: Alf P. Steinbach

thanx for the link..

++ppc.a.a.

 
Reply With Quote
 
sam
Guest
Posts: n/a
 
      05-17-2005
Hi,

This is also related to static link of third-party C++ library.
After compiled and linked with ACE in FreeBSD 5.4, apart from copy my
program over, I found that I also need to copy the libace..so.5.4.1 file
to the target system as well.

I found somewhere in the internet mentioned that I can compile the
program static link with ACE, but it didn't describe the detail of how
to do that in Unix.

Can anyone please tell me how to static link a C++ program with ACE
library in Unix? I want to compile and link my program with the ACE
library into one, so that when I deliver the program to my client, I
only deliver one program.

Thanks
Sam
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
static library and dynamic library Even C Programming 6 10-20-2007 04:05 PM
Perl MakeMaker - how to force Perl linking with the static C library (libcrt.lib) instead of dynamic C library (msvcrt.lib) Avi Perl Misc 0 04-17-2007 09:20 PM
how to link static library to another static libraries free2cric@yahoo.com C++ 2 05-16-2005 04:40 PM
Dynamic Library or Static Library under Linux gouqizi.lvcha@gmail.com C++ 6 05-10-2005 03:16 PM
VPN between 2 Cisco routers (1 static, 1 dynamic) with access from stat --> dynamic over ISDN Hans-Peter Walter Cisco 3 01-21-2004 02:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57