This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

x86_64-w64-ming32-g++ file not recognized by objdump


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]