From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg zhang To: help-gcc@gnu.org Subject: About libstdc++ link staticlly Date: Wed, 08 Mar 2000 13:17:00 -0000 Message-id: <20000308211734.7974.qmail@web1610.mail.yahoo.com> X-SW-Source: 2000-03/msg00037.html Dear sir, There is a problem when I compile my project with C++(gcc). Now, my project is a shared project, but I want to link libstdc++(2.8.1.1) staticlly, avoiding release this project with libstdc++, But I fail to do it. To a normal project(I mean exe module), I can do it with just removing libstdc++.so.2.8.1.1., gcc will link libstdc++.a archive file automaticlly. To this shared object, I failed, and gave me a tip: Text relocation remains reference file against symbol ..../XXX.o fprintf ..../XXX.o ld: fatal: relocation remains against allocatable but non-writable sections. I don't know how to fix it? Could you help me? Thanks. I am very appricate if you reply me to this email address. __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg zhang To: help-gcc@gnu.org Subject: About libstdc++ link staticlly Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <20000308211734.7974.qmail@web1610.mail.yahoo.com> X-SW-Source: 2000-q1/msg00347.html Message-ID: <20000401000000.HDeoKLIABDRxxuT5KM8QE9WYDlqAeKVfwkuw1udwjpM@z> Dear sir, There is a problem when I compile my project with C++(gcc). Now, my project is a shared project, but I want to link libstdc++(2.8.1.1) staticlly, avoiding release this project with libstdc++, But I fail to do it. To a normal project(I mean exe module), I can do it with just removing libstdc++.so.2.8.1.1., gcc will link libstdc++.a archive file automaticlly. To this shared object, I failed, and gave me a tip: Text relocation remains reference file against symbol ..../XXX.o fprintf ..../XXX.o ld: fatal: relocation remains against allocatable but non-writable sections. I don't know how to fix it? Could you help me? Thanks. I am very appricate if you reply me to this email address. __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com