2017-02-07 59 views
0

Zynqベアメタル(Cross compile GNU Scientific Library for ARM Zynq (baremetal))のGNU Scientificライブラリをクロスコンパイルできなかったので、代わりにEigen C++を使用しようとしました。ARMのZynq(ベアメタル)でEigen C++ライブラリを使用

だから私はそれはそれを解凍してダウンロードし、コードは(x64のUbuntuのである)私のPC上で正常に動作します。しかし、すぐに私はGCCからコンパイラを変更すると腕 - する

-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ライブラリなので、 'g ++'ではなく' gcc'を使ってCコードとしてコンパイルしてください。あなたのC++コードでそれを使う必要があるなら、それをコンパイルし、いつものようにリンクし、 'extern" C "' idiomと一緒にそれを含めます。 – tambre

+0

@tambre私はおそらくあなたのポイントを得ていないが、 "Eigen"は** C++テンプレートライブラリ**です。私はgccでコンパイルしようとしましたが、うまくいきませんでした。( –

+0

なぜ私はなぜEigenのバージョン2が魅力的なのか分かりません!!! –

答えて

関連する問題