🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.programowanie
Article #72321

g++ -s -static

#72321
From: jureq
Date: Sun, 18 Sep 2011 10:45
22 lines
1058 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 amd64. g++ wersja 4.4.5-8. Czy ktoś ma jakieś 
pomysły?
Technical Details
Message-ID: <j54i57$g7s$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-mail

Show 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
Supersedes: <j54hiv$c46$1@news.onet.pl>
Date: Sun, 18 Sep 2011 10:45:59 +0000 (UTC)
Organization: http://onet.pl
Lines: 23
Message-ID: <j54i57$g7s$1@news.onet.pl>
NNTP-Posting-Host: public13299.xdsl.centertel.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1316342759 16636 79.163.51.243 (18 Sep 2011 10:45:59 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Sun, 18 Sep 2011 10:45:59 +0000 (UTC)
User-Agent: Pan/0.133 (House of Butterflies)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit