Undefined Reference to GMP [message #990809] |
Fri, 14 December 2012 05:43  |
Eclipse User |
|
|
|
Hi all,
I want to build a project with GMP library.
However, I get errors when building my project.
Errors:-
/cygdrive/d/workspace-cpp/gmp/Debug/../src/Test.c:11: undefined reference to `__imp____gmpz_init'
/cygdrive/d/workspace-cpp/gmp/Debug/../src/Test.c:12: undefined reference to `__imp____gmpz_init'
/cygdrive/d/workspace-cpp/gmp/Debug/../src/Test.c:13: undefined reference to `__imp____gmpz_init'
/cygdrive/d/workspace-cpp/gmp/Debug/../src/Test.c:15: undefined reference to `__imp____gmpz_set_str'
/cygdrive/d/workspace-cpp/gmp/Debug/../src/Test.c:16: undefined reference to `__imp____gmpz_set_str'
/cygdrive/d/workspace-cpp/gmp/Debug/../src/Test.c:18: undefined reference to `__imp____gmpz_mul'
/cygdrive/d/workspace-cpp/gmp/Debug/../src/Test.c:19: undefined reference to `__imp____gmp_printf'
/cygdrive/d/workspace-cpp/gmp/Debug/../src/Test.c:22: undefined reference to `__imp____gmpz_clear'
/cygdrive/d/workspace-cpp/gmp/Debug/../src/Test.c:23: undefined reference to `__imp____gmpz_clear'
/cygdrive/d/workspace-cpp/gmp/Debug/../src/Test.c:24: undefined reference to `__imp____gmpz_clear'
I'm using Cygwin to build my C project.
I am able to compile my class at Command Prompt with :-
gcc -o test test.c -lgmp
And it success to generate the result perfectly.
Any solution for me to solve it or any reference link I can investigate how to use GMP in Eclipse?
Is it maybe my own make.exe code incorrectly?
Thanks for replied first.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03750 seconds