How to use GNU GSL library for LPCxpresso 4367

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use GNU GSL library for LPCxpresso 4367

1,394件の閲覧回数
shreyas123
Contributor III

Hi.

I need to use the GSL library in my program. I tried to follow the library linking procedure for LPC xpresso but the MCU linker is giving me these errors:


MCUXpressoIDE_10.3.0_2200\workspace\test1\Debug/../src/test1.c:53: undefined reference to `gsl_linalg_LU_decomp'
MCUXpressoIDE_10.3.0_2200\workspace\test1\Debug/../src/test1.c:56: undefined reference to `gsl_matrix_alloc'
MCUXpressoIDE_10.3.0_2200\workspace\test1\Debug/../src/test1.c:57: undefined reference to `gsl_linalg_LU_invert'

and so on for other functions as well.

Can someone please help me on this?

I have the libgsl.a and libgslcblas.a precompiled libraries for windows which works perfectly on codeblocks on windows with GCC compiler.

Do I have to cross compile the library again for Arm compiler? If yes, can you please provide me the procedure as well?

Thanks

タグ(2)
0 件の賞賛
返信
2 返答(返信)

1,269件の閲覧回数
BlackNight
NXP Employee
NXP Employee

To anwer the easy question:

>>Do I have to cross compile the library again for Arm compiler?

Because your LPC device won't be able to run x86 code (or variants of it), you have to crosscomple il.

Erich

0 件の賞賛
返信

1,269件の閲覧回数
shreyas123
Contributor III

Thanks Erich. But can you please also tell me the procedure since this is my first time to cross compile something.

0 件の賞賛
返信