2017-02-07 32 views
0

Zynq 베어 메탈 (Cross compile GNU Scientific Library for ARM Zynq (baremetal)) 용 GNU Scientific 라이브러리를 크로스 컴파일하지 못한 대신 Eigen C++을 사용하려고했습니다. ARM Zynq (baremetal)에서 Eigen C++ 라이브러리 사용

그래서 나는 다음을 다운로드하여 압축을 풀고 난 팔걸이하기 위해 GCC에서 컴파일러 변경으로 즉시 코드는 (64 우분투입니다) 내 PC에 잘 작동

-I/home/wizard/Desktop/eigen 

아래와 같이 헤더하지만의 포함 자일링스 - EABI-GCC & g ++에 팔 자일링스 - EABI-g ++ 코드가 나에게 다음과 같은 오류가 있습니다 :

invalid conversion from 'const int*' to 'const int32_t* {aka const long int*}' [-fpermissive] test4  line 244, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h C/C++ Problem 
invalid conversion from 'const int*' to 'const int32_t* {aka const long int*}' [-fpermissive] test4  line 247, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h C/C++ Problem 
invalid conversion from 'const int*' to 'const int32_t* {aka const long int*}' [-fpermissive] test4  line 259, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h C/C++ Problem 
invalid conversion from 'const int*' to 'const int32_t* {aka const long int*}' [-fpermissive] test4  line 260, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h C/C++ Problem 
invalid conversion from 'int*' to 'int32_t* {aka long int*}' [-fpermissive] test4  line 265, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h C/C++ Problem 
invalid conversion from 'int*' to 'int32_t* {aka long int*}' [-fpermissive] test4  line 268, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h C/C++ Problem 
invalid conversion from 'int*' to 'int32_t* {aka long int*}' [-fpermissive] test4  line 309, external location: /home/wizard/Desktop/eigen/Eigen/src/Core/arch/NEON/PacketMath.h C/C++ Problem 

어떻게해야합니까를?

+0

글쎄 아마도 C 라이브러리 일 것이므로'gcc'가 아닌'gcc'를 사용하여 C 코드로 컴파일하십시오. C++ 코드에서 그것을 사용해야 할 필요가 있다면, 컴파일하고 평소와 같이 링크하고'extern "C"'idiom을 포함 시키십시오. – tambre

+0

@tambre 아마도 당신의 요점을 모르지만 "Eigen"은 ** C++ 템플릿 라이브러리 **입니다. 게다가 gcc로 컴파일하려고했지만 작동하지 않았다. ( –

+0

왜 Eigen의 버전 2가 매력처럼 작동했는지 모르겠다. –

답변