Re: [ILUG] Linux's DLL's

From: kosullivan_xlib Last Name (kosullivan_xlib at domain my-deja.com)
Date: Sat 02 Jun 2001 - 00:46:30 IST


('binary' encoding is not supported, stored as-is) >I come from a Windows programming background.
>How do i compile a C source file into a library? (compiler switches etc)
There is a very good book you might be interested in
"Teach Yourself Linux Programming in 24 Hours" I got it in easons and it comes with 2 CD's and lots of source code. check out www.sams.com and search for the book and you may be able to download some examples.

>Do i need a .DEF file like in M$ Visual C++?
>For example, say i have the following C file:
>
>#include "whatever i need..."
>
>int MyDouble(int x) {
> return x << 1;
>}
>
>int MyHalf(int x) {
> return x >> 1;
>}
>
>What do i have to do to have a library that exports these functions?
>Thanks in advance,
>James

------------------------------------------------------------
--== Sent via Deja.com ==--
http://www.deja.com/



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:33 GMT