472,121 Members | 1,519 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

Static library Vs. Dynamic library

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++ :-)

Jul 23 '05 #1
3 3709
* 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?
Jul 23 '05 #2
:: Alf P. Steinbach

thanx for the link..

++ppc.a.a.

Jul 23 '05 #3
sam
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
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Eduardo Suárez | last post: by
6 posts views Thread by Andrew S. Giles | last post: by
5 posts views Thread by meendar | last post: by
5 posts views Thread by info | last post: by
14 posts views Thread by Shimon Sim | last post: by
20 posts views Thread by JohnQ | last post: by
6 posts views Thread by Even | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.