Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7957 Discussions

how to create libirc.so on linux using ICC v9.0

mstrong
Beginner
532 Views
I'd like to know how to create a shared library from a static one using ICC
0 Kudos
3 Replies
TimP
Honored Contributor III
532 Views
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.
0 Kudos
Intel_C_Intel
Employee
532 Views
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
0 Kudos
mstrong
Beginner
532 Views
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.
0 Kudos
Reply