public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Thomas D. Dean" <tomdean@speakeasy.org>
To: cygwin@cygwin.com
Subject: x86_64-w64-ming32-g++ file not recognized by objdump
Date: Sun, 21 Aug 2011 01:01:00 -0000	[thread overview]
Message-ID: <1313885325.24758.1.camel@asus> (raw)

I am missing something, I think. 
I have a simple application, taken from the web, t.cc 

#include <vector> 
#include <string> 
using namespace std; 
int main() { 
  vector<string> vs; 
  vs.push_back("asdf"); 
} 

If I compile with g++, I get an executable that works, i.e. runs without
error.  This file is recognized by objdump and cygcheck. 

If I compile with x86_64-w64-ming32-g++ -m64 t.cc -o t 
the resulting executable produces an error message 
> ./t.exe 
t.exe: error while loading shared libraries: ?: cannot open shared
object file: no such file or directory. 
> objdump -p ./t.exe 
objdump: ./t.exe: File format not recognized 
> cygcheck ./t.exe 
...\t.exe 
But, no list of dll's as produced from the g++ version. 

What am I doing wrong? 

tomdean



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

             reply	other threads:[~2011-08-21  1:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-21  1:01 Thomas D. Dean [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-08-20 21:29 Thomas D. Dean
2011-08-21  2:11 ` Sisyphus
2011-08-21  3:33   ` JonY
2011-08-21  4:28     ` Thomas D. Dean
2011-08-21  4:30     ` Thomas D. Dean
2011-08-21  4:19   ` Thomas D. Dean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1313885325.24758.1.camel@asus \
    --to=tomdean@speakeasy.org \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).