- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'd like to know how to create a shared library from a static one using ICC
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
libirc.so comes with the compiler. In general, the function of making a .so from a .a library is a function of ld, not of a compiler. I don't know whether you would get the identical libirc.so from libirc.a.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is what you can try. Extract all object files form the .a . and then link using ld with - shared options. But Like Tim said it would not give you all the same feature as that of libirc.so provided by the compiler.
>ar -x libirc.a
>ld -o libirc.so -shared *.o
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks guys.
You say it should come with it?
[root@MAS-DATA01 lib]# pwd
/usr/local/intel/cc/9.0/lib
[root@MAS-DATA01 lib]# ls -l libirc.*
-rw-r--r-- 1 root root 358440 Dec 2 01:56 libirc.a
As you can see, no shared lib for irc
installed from this file
l_cc_c_9.0.030.tar.gz
Mark.
You say it should come with it?
[root@MAS-DATA01 lib]# pwd
/usr/local/intel/cc/9.0/lib
[root@MAS-DATA01 lib]# ls -l libirc.*
-rw-r--r-- 1 root root 358440 Dec 2 01:56 libirc.a
As you can see, no shared lib for irc
installed from this file
l_cc_c_9.0.030.tar.gz
Mark.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page