This is the mail archive of the
cygwin
mailing list for the Cygwin project.
x86_64-w64-ming32-g++ file not recognized by objdump
- From: "Thomas D. Dean" <tomdean at speakeasy dot org>
- To: cygwin at cygwin dot com
- Date: Sat, 20 Aug 2011 17:08:45 -0700
- Subject: x86_64-w64-ming32-g++ file not recognized by objdump
- Reply-to: tomdean at speakeasy dot org
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