This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17859] cannot create statically linked shared library
- From: "info at yourkit dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2004 12:05:52 -0000
- Subject: [Bug c++/17859] cannot create statically linked shared library
- References: <20041006100535.17859.info@yourkit.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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