public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* x86_64-w64-ming32-g++ file not recognized by objdump
@ 2011-08-20 21:29 Thomas D. Dean
  2011-08-21  2:11 ` Sisyphus
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas D. Dean @ 2011-08-20 21:29 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 7+ messages in thread
* x86_64-w64-ming32-g++ file not recognized by objdump
@ 2011-08-21  1:01 Thomas D. Dean
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas D. Dean @ 2011-08-21  1:01 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-08-21  4:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-20 21:29 x86_64-w64-ming32-g++ file not recognized by objdump 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
2011-08-21  1:01 Thomas D. Dean

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).