Re: compiling c++ files with static libraries of c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, May 11, 2007 at 10:12:35PM +0530, Nirmal Thacker wrote:
> is it possible to compile a c++ file with a static library created from a c
> file?
> 
> for eg i have file - slib.c of which i create a static library , say
> libslib.a
> now can i link a c++ file with this libslib.a library? i am running gcc
> 2.95.2 - yes i know its old but i need it for compatibility issues.

Not kernel related, so off topic over here.

> on the other hand how can i create stubs to my system calls in a c++ file?
> the normal syntax of
> _syscallN(....) doesnt seem to work for me

Use syscall(2).


Erik

- -- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGRX4K/PlVHJtIto0RAsECAJ9H5u5hZGtgO3pr8+b6HyCT3AovuQCcD0yj
UtdmQZ4mzrUDx16eYHaR1Vg=
=y7OY
-----END PGP SIGNATURE-----

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux