Building a Dynamic Library

Steven Suson suson at TuckerEnergy.com
Wed Jan 2 17:44:35 GMT 2002


Richard Garand wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On January 2, 2002 01:14 am, Loh Yong Khun wrote:
> > 1. how to build a dynamic library (.SO) using KDevelop?

Create a subdirectory under projectname/projectname named as such: for a library called libMyLib, the
name of the subdirectory would be MyLib. Then right mouse button and select properties. There you will
see the option for a shared library.

>
>
> That currently requires hacking up the project files a bit. It's not as easy
> as making a regular program.
>
> > 2. how to execute a command (like ifconfig) from within a C/C++ program in
> > Linux?

    I prefer the use of the KDE provided classes for this, such as KProcess, KProcIO, and friends...

Steven Suson
"Keep the faith."

>
>
> see system(3) and exec(3). You probably want something like system(3). Run
> 'man 3 system' for more information.
> - --
> Richard Garand   - r i c h a r d @ g a r a n d n e t . n e t
> (L)ICQ: 12190132 - http://www.garandnet.net
> "/pub/distributions/Mandrake/Mandrake/Mandrake/8.1/i586/Mandrake is new cwd."
> - - Tucows FTP
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD4DBQE8MuUQjuZKnjxs0fMRAsWhAJY8HRFVNAEhbWXAjfppTya3v4LsAJ4mnM71
> CxIQz6zWiCXO9/HKTNqUIQ==
> =Fwp4
> -----END PGP SIGNATURE-----
>
> -
> to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list