|
From: Earnie B. <ea...@us...> - 2005-02-17 12:34:39
|
<quote who="Danny Smith">
> Stephen Buck wrote:
>> Hi,
>>
>> I'm trying link a simple C program with the Intel Integrated Performance
>> Primitives and am having problems in the link phase. Any hints would be
>> greatly appreciated.
>>
>> Thanks,
>> Steve
>>
>> The Program:
>> #include <stdio.h>
>> #include <ipp.h>
>>
>> int main(char *cmd, char **argv)
>> {
>> IppsFFTSpec_R_32f *fftSpec;
>> ippsFFTInitAlloc_R_32f(&fftSpec, 10, IPP_FFT_DIV_FWD_BY_N,
>> ippAlgHintFast);
>> return 0;
>> }
>>
>> The Command:
>> gcc -mno-cygwin -Ic:\ipp\include -Lc:\ipp\lib -lipps20 fft.c
>>
>> The Error:
>> fft.c: undefined reference to `_ippsFFTInitAlloc_R_32f@16'
>>
>>
>
> Thereis a bug in ld that prevent it from understanding ILF (short format)
> import
> libs. To work around it see:
>
Maybe; but first correct the command line order. The libraries must
follow the objects. I.E.: gcc -mno-cygwin -Ic:\ipp\include fft.c
-Lc:\ipp\lib -lipps20
Earnie
--
http://www.mingw.org
http://sourceforge.net/projects/mingw
https://sourceforge.net/donate/index.php?user_id=15438
|