Make shared library to executable



 DEVELOP > c-Plus-Plus > Make shared library to executable

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "Nethali"
Date: 24 Jan 2008 06:43:13 PM
Object: Make shared library to executable
Hi folks,
Is there any way to embed shared library directly, to executable file
it self so that executable file can run stand alone without the shared
library.
I don't want to compile the source, make the static library and plug
it. I just want to use dynamic library as it is.
Thanks in advance...
.

User: "Sam"

Title: Re: Make shared library to executable 24 Jan 2008 07:09:23 PM
This is a MIME GnuPG-signed message. If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.
--=_mimegpg-commodore.email-scan.com-16106-1201223363-0001
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Nethali writes:

Hi folks,

Is there any way to embed shared library directly, to executable file

There's no such thing as a "shared library" in the C++ language.
You should ask for help in a more appropriate newsgroup or mailing list, the
one for your operating system, or your specific C++ compiler.
--=_mimegpg-commodore.email-scan.com-16106-1201223363-0001
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQBHmTbDx9p3GYHlUOIRAkjKAJ9MHx2qyTpena9n2IqK7FzSPgYKMwCfd4SI
9wLz/yWyw5eIJv/UvbjOpCE=
=M70I
-----END PGP SIGNATURE-----
--=_mimegpg-commodore.email-scan.com-16106-1201223363-0001--
.
User: "Nethali"

Title: Re: Make shared library to executable 24 Jan 2008 07:41:44 PM
On Jan 25, 10:09=A0am, Sam <s...@email-scan.com> wrote:

Nethali writes:

Hi folks,


Is there any way to embed shared library directly, to executable file


There's no such thing as a "shared library" in the C++ language.

You should ask for help in a more appropriate newsgroup or mailing list, t=

he

one for your operating system, or your specific C++ compiler.

=A0application_pgp-signature_part
1KDownload

No dear, there is a thing called shared libraries in C++. Give a
google search, it gives lot of articles on this. Some people call this
as dynamic libraries.
.
User: "Sam"

Title: Re: Make shared library to executable 24 Jan 2008 08:52:26 PM
This is a MIME GnuPG-signed message. If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.
--=_mimegpg-commodore.email-scan.com-3171-1201229546-0001
Content-Type: text/plain; format=flowed; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Nethali writes:

On Jan 25, 10:09=C2=A0am, Sam <s...@email-scan.com> wrote:

Nethali writes:

Hi folks,


Is there any way to embed shared library directly, to executable fil=

e


There's no such thing as a "shared library" in the C++ language.

You should ask for help in a more appropriate newsgroup or mailing lis=

t, the

one for your operating system, or your specific C++ compiler.

=C2=A0application_pgp-signature_part
1KDownload

=20
No dear, there is a thing called shared libraries in C++.

Nope, sorry, there isn't. Whoever told you that, doesn't know what he or=20
she was talking about, and you should stop listening to them.
The C++ language is specified by the document ISO/IEC 18882, dated=20
2003.10.15. You will not find any reference to anything called a "shared=20
library", anywhere in this 786 document that formally defines the C++=20
language, that's in front of me right now.

Give a
google search, it gives lot of articles on this. Some people call this
as dynamic libraries.

I'm sure there are things that are commonly called "shared libraries", or=20
"dynamic libraries". However, none of that has anything to do with C++. M=
any=20
of these so-called "shared libraries" don't even have a byte of C++ code =
in=20
them; their contents were written in some other programming language.
Again, you should ask for help in a mailing list or a newsgroup that's=20
specific to your operating system or compiler. Do you even think that it'=
s=20
possible that the instructions for creating or using shared libraries are=20
different, for various operating systems? That creating shared libraries =
on,=20
say, Microsoft Windows, maybe -- just may be -- be a very different proce=
ss=20
than it is, say, on UNIX? Well, the C++ language is a standard that's=20
defined independently of any particular operating systems, so, by=20
definition, any operating system-specific issues have nothing to do with=20
C++.
And since, it looks like, you haven't even bothered to elaborate what=20
operating system you're using, how exactly did you expect everyone to kno=
w=20
the answer to your question? A crystal ball? Sorry, all our psychics are =
out=20
to lunch, and nobody in the office knows how to operate the magical mind=20
ray-beam machine.
--=_mimegpg-commodore.email-scan.com-3171-1201229546-0001
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQBHmU7qx9p3GYHlUOIRAr+8AJ4x3bM+0SBZrk0a5YzqFtrjO1hQQgCdH8fT
h3CRYwT4vqEXAJC6Jbpulq4=
=uNMG
-----END PGP SIGNATURE-----
--=_mimegpg-commodore.email-scan.com-3171-1201229546-0001--
.
User: "James Kanze"

Title: Re: Make shared library to executable 25 Jan 2008 06:20:23 AM
On Jan 25, 3:52 am, Sam <s...@email-scan.com> wrote:

Nethali writes:

On Jan 25, 10:09 am, Sam <s...@email-scan.com> wrote:

Nethali writes:

Is there any way to embed shared library directly, to executable file=

There's no such thing as a "shared library" in the C++ language.
You should ask for help in a more appropriate newsgroup or
mailing list, the one for your operating system, or your
specific C++ compiler.

No dear, there is a thing called shared libraries in C++.

Interesting. I've never heard of it, and they aren't supported
on the machines I have access to (Solaris, Linux and Windows).
It do have dynamic linking, however, with dynamic linked object
files being called either shared objects (although there is no
requirement to share them) or dynamic linked libraries (although
they behave like object files, and not like libraries).
Anyway...

Nope, sorry, there isn't. Whoever told you that, doesn't know
what he or she was talking about, and you should stop
listening to them.
The C++ language is specified by the document ISO/IEC 18882,
dated 2003.10.15.

That's ISO/IEC 14882:2003. And that only partially specifies
what is understood by C++. Boost is also part of C++, as is
threading, and neither of them are mentioned in that document
either. For that matter, some (not all) aspects of dynamic
linking are part of C++.
The important thing here, of course, is that how to link
(period -- shared libraries or not) is very implementation
specific; the standard explicitly doesn't say anything about it.
And most of the support for dynamic linking is also very
implementation specific---to the point where I need a different
set of commands for g++ under Solaris and g++ under Linux, even
though it's the same compiler, and both OS's are Unix or
Unix-like.
[...]

And since, it looks like, you haven't even bothered to
elaborate what operating system you're using, how exactly did
you expect everyone to know the answer to your question?

Presumably, it's an OS which calls them shared libraries. So
it's not Windows, and it's not Unix. Which is even more of a
reason to go to a dedicated group, since for better or worse,
I'm pretty sure that most people here mainly have experience
with one or both of these (and usually not much else).
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34
.



User: "Nethali"

Title: Re: Make shared library to executable 24 Jan 2008 07:45:05 PM
On Jan 25, 10:09=A0am, Sam <s...@email-scan.com> wrote:

Nethali writes:

Hi folks,


Is there any way to embed shared library directly, to executable file


There's no such thing as a "shared library" in the C++ language.

You should ask for help in a more appropriate newsgroup or mailing list, t=

he

one for your operating system, or your specific C++ compiler.

=A0application_pgp-signature_part
1KDownload

There is a thing called Shared library in C++ also. Some people call
this as dynamic library. Give a google search, it will give many
articles on C/C++ shared libraries.
.
User: "red floyd"

Title: Re: Make shared library to executable 25 Jan 2008 10:56:03 AM
Nethali wrote:

On Jan 25, 10:09 am, Sam <s...@email-scan.com> wrote:

Nethali writes:

Hi folks,
Is there any way to embed shared library directly, to executable file

There's no such thing as a "shared library" in the C++ language.

You should ask for help in a more appropriate newsgroup or mailing list, the
one for your operating system, or your specific C++ compiler.

application_pgp-signature_part
1KDownload


There is a thing called Shared library in C++ also. Some people call
this as dynamic library. Give a google search, it will give many
articles on C/C++ shared libraries.

Please point to the specific section of ISO/IEC 14882:2003 that defines
a "Shared Library". Thank you.
.




  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER