gcc "ld: cannot perform PE operations on non PE output file"

R

Remi.Arntzen

I tried to compile a program to a elf shared library for a Linux
platform on a windows machine with the command:
gcc -o Prog.so -shared -Wl,--oformat -Wl,elf32-i386
however this results in
ld: cannot perform PE operations on non PE output file
When compiling to PE format no errors are generated, which leads me to
believe that some post processing operations are being preformed.
This error message does not help me figure what PE operations are being
performed, because I have explicitly told it to output elf format
output.
How can I correct this problem?
 
J

Jack Klein

I tried to compile a program to a elf shared library for a Linux
platform on a windows machine with the command:
gcc -o Prog.so -shared -Wl,--oformat -Wl,elf32-i386
however this results in
ld: cannot perform PE operations on non PE output file
When compiling to PE format no errors are generated, which leads me to
believe that some post processing operations are being preformed.
This error message does not help me figure what PE operations are being
performed, because I have explicitly told it to output elf format
output.
How can I correct this problem?

By posting to a group that supports your particular compiler, like an
embedded Linux group. Your questions is not about the C++ language at
all, but about a particular linker, and linkers are not defined by the
language.
 
R

Remi.Arntzen

Jack said:
On 13 Nov 2006 20:44:27 -0800, (e-mail address removed) wrote in
comp.lang.c++:
[...]

By posting to a group that supports your particular compiler, like an
embedded Linux group. Your questions is not about the C++ language at
all, but about a particular linker, and linkers are not defined by the
language.
[...]
Discussion moved to gnu.gcc .help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top