Article View: pl.comp.os.linux.programowanie
Article #72325g++ -s -static
From: jureq
Date: Sun, 18 Sep 2011 10:36
Date: Sun, 18 Sep 2011 10:36
21 lines
1009 bytes
1009 bytes
Jest program bf.cpp:
int main(int argc, char *argv[])
{
return 0;
}
kompiluję go:
g++ -static -s bf.cpp
uruchamiam:
./a.out
i wynik:
unexpected reloc type in static binaryNaruszenie ochrony pamięci
To jest debian squeeze. g++ wersja 4.4.5-8. Czy ktoś ma jakieś pomysły?
Technical Details
Message-ID:
<j54hiv$c46$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mail From: jureq <jureq@Xusun.to.z.adresu.Xop.pl> Newsgroups: pl.comp.os.linux.programowanie Subject: g++ -s -static Date: Sun, 18 Sep 2011 10:36:15 +0000 (UTC) Organization: http://onet.pl Lines: 21 Message-ID: <j54hiv$c46$1@news.onet.pl> NNTP-Posting-Host: public13299.xdsl.centertel.pl Mime-Version: 1.0 X-Trace: news.onet.pl 1316342175 12422 79.163.51.243 (18 Sep 2011 10:36:15 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Sun, 18 Sep 2011 10:36:15 +0000 (UTC) User-Agent: Pan/0.133 (House of Butterflies) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit