Ask a Question related to Mac Programming, Design and Development.
-
Timo Benk #1
Porting a shared library from Linux to MacOS
Hi,
I have the following problem: I am working an a project called
libsmtp-- which is developed under Linux. Now i am trying to
port the library to MacOS X. In the end i want to have a
libsmtp--.dylib shared library object.
1. Step - compile all modules
# gcc -g -O2 -dynamic -pedantic -fPIC -Os -Wall module.c -o module.o
2. Step - link the library
# gcc -g -O2 -dynamic -pedantic -fPIC -Os -Wall -dynamiclib \
-nostartfiles -o libsmtp--.dylib *.o
Is that correct, will the file libsmtp--.dylib be a Mac OS specific
dynamic shared object?
-timo
--
6832 C8EC -------------------------------- 6FBF 9383
D823 4059 --== "Everything you know is wrong" ==-- 7DBD 109E
0CD1 -------------------------------- 98DC
Timo Benk Guest
-
#39197 [NEW]: How do I get shared library 'libphp5.so'?
From: lzsiga at freemail dot c3 dot hu Operating system: AIX PHP version: 5.1.6 PHP Bug Type: *Compile Issues Bug... -
problems using Runtime shared library
I am trying to use runtime shared library for my application. The problem is that I do not want to use all the components from namespace... -
shared library
hello, i have a problem here... i have too large images and this images are being used to do some animations... and there are common animations... -
Building a shared library for both C++ app and Java app?
I have a C++ application that retrieves/writes data from/into a DB2 UDB (v8.1) database. I'm thinking of building some C++ routines into a shared... -
Regarding Shared library size
qazmlp wrote: There is no guaranty about the file size. You'll find that even different versions of the same compiler/linker will produce...



Reply With Quote

