This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17859] cannot create statically linked shared library


------- Additional Comments From info at yourkit dot com  2004-10-06 12:05 -------
But the problem is that I need to create shared library without references to
other shared libraries. To achieve this I'm statically linking necessary code
from libstdc++.a. It's possible to do and linker also allows this. Moreover
everything is working (compiling and linking) until I use <iostream>

For example, I can compile the following code:

#include <vector>

extern "C" {
  void Java_com_yourkit_hello_sayHello(){
     std::vector<int> v;
  }
}

and cannot compile

#include <vector>
#include <iostream> // the only difference

extern "C" {
  void Java_com_yourkit_hello_sayHello(){
     std::vector<int> v;
  }
}

It's strange, because I'm using nothing from <iostream>



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17859


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]