Erro na execução do simulador multi2sim [closed]

-1
cust@cust:~$ cd ~/Desktop/multi2sim-5.0
cust@cust:~/Desktop/multi2sim-5.0$ g++ matx.cpp -o matx
cust@cust:~/Desktop/multi2sim-5.0$ ./matx
Enter the order of matrix (must be n*n) 
1
 * 1

Multiplication possible 

Enter the elements of matrix 1 
23

Elements of matrix 1 are 
23 
Enter the elements of matrix 2 
12

Elements of matrix 2 are 
12 
Multiplication 

276 cust@cust:~/Desktop/multi2sim-5.0$ m2s --x86-debug-syscall stdout matx

; Multi2Sim 5.0 - A Simulation Framework for CPU-GPU Heterogeneous Computing
; Please use command 'm2s --help' for a list of command-line options.
; Simulation alpha-numeric ID: SHxSw


[ELF Reader] [/home/cust/Desktop/multi2sim-5.0/matx] Error: 64-bit ELF files not
supported



The ELF file being loaded is a 64-bit file, currently not supported by
Multi2Sim. If you are compiling your own source code on a 64-bit machine, please
use the '-m32' flag in the gcc command-line. If you get compilation errors
related with missing '.h' files, check that the 32-bit gcc package associated
with your Linux distribution is installed.
    
por khanprince 30.05.2016 / 16:51

1 resposta

1

Você provavelmente está executando um Linux de 64 bits, mas o aplicativo que você usa não suporta binários de 64 bits para simulação. Então apenas adicione

-m32

para sua linha do g ++.

g++ -m32 matx.cpp -o matx

Como sugerido:

% bl0ck_qu0te%     
por The19thFighter 30.05.2016 / 18:33