<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>When i compile teh test test_main.c in teh tests folder of FFTW I get an error saying <br><br><span style="text-decoration: underline;">adatta@imaa-caribou /usr/src/fftw-2.1.5/tests<br>$ g++ test_main.c<br>test_main.c:25:22: fftw-int.h: No such file or directory<br>In file included from test_main.c:33:<br>test_main.h:87: warning: `compute_error_complex' initialized and declared `exter<br>n'<br>test_main.h:87: error: `fftw_complex' was not declared in this scope<br>test_main.h:87: error: `A' was not declared in this scope<br>test_main.h:87: error: expected primary-expression before "int"<br>test_main.h:88: error: `fftw_complex' was not declared in this scope<br>test_main.h:88: error: `B' was not declared in this scope<br>test_main.h:88: error: expected primary-expression before "int"<br>test_main.h:88: error: expected primary-expression before
"int"<br>test_main.h:88: error: initializer expression list treated as compound expressio<br>n<br>test_main.h:90: error: `fftw_direction' does not name a type<br>test_main.h:94: error: `fftw_direction' has not been declared<br>test_main.h:94: error: ISO C++ forbids declaration of `dir' with no type<br>test_main.h:95: error: `fftw_direction' has not been declared<br>test_main.h:96: error: ISO C++ forbids declaration of `dir' with no type<br>test_main.h:98: error: `fftw_direction' has not been declared<br>test_main.h:99: error: ISO C++ forbids declaration of `dir' with no type<br>test_main.c: In function `size parse_size(char*)':<br>test_main.c:74: error: `fftw_die' undeclared (first use this function)<br>test_main.c:74: error: (Each undeclared identifier is reported only once for eac<br>h function it appears in.)<br>test_main.c: At global scope:<br>test_main.c:103: error: `FFTW_ESTIMATE' was not declared in this scope<br>test_main.c:104: error:
`FFTW_MEASURE' was not declared in this scope<br>test_main.c: In function `void test_speed(int)':<br>test_main.c:226: error: `FFTW_FORWARD' undeclared (first use this function)<br>test_main.c:231: error: `FFTW_IN_PLACE' undeclared (first use this function)<br>test_main.c:236: error: `FFTW_BACKWARD' undeclared (first use this function)<br>test_main.c: In function `void test_speed_nd(size)':<br>test_main.c:269: error: `FFTW_FORWARD' undeclared (first use this function)<br>test_main.c:270: error: `FFTW_IN_PLACE' undeclared (first use this function)<br>test_main.c:276: error: `FFTW_BACKWARD' undeclared (first use this function)<br>test_main.c: At global scope:<br>test_main.c:293: error: redefinition of `double compute_error_complex'<br>test_main.h:87: error: `double compute_error_complex' previously defined here<br>test_main.c:293: error: `fftw_complex' was not declared in this scope<br>test_main.c:293: error: `A' was not declared in this
scope<br>test_main.c:293: error: expected primary-expression before "int"<br>test_main.c:294: error: `fftw_complex' was not declared in this scope<br>test_main.c:294: error: `B' was not declared in this scope<br>test_main.c:294: error: expected primary-expression before "int"<br>test_main.c:294: error: expected primary-expression before "int"<br>test_main.c:295: error: expected `,' or `;' before '{' token<br>test_main.c: In function `void test_all()':<br>test_main.c:329: error: `FFTW_USE_WISDOM' undeclared (first use this function)<br>test_main.c:330: error: `fftw_check_memory_leaks' undeclared (first use this fun<br>ction)<br>test_main.c: In function `void testnd_correctness_both(size, int, int, int)':<br>test_main.c:408: error: `FFTW_FORWARD' undeclared (first use this function)<br>test_main.c:409: error: `FFTW_BACKWARD' undeclared (first use this function)<br>test_main.c: At global scope:<br>test_main.c:489: error: `fftw_direction' does not name a
type<br>test_main.c: In function `void test_timer_paranoid()':<br>test_main.c:517: error: `fftw_time' undeclared (first use this function)<br>test_main.c:517: error: expected `;' before "start_t"<br>test_main.c:521: error: `start_t' undeclared (first use this function)<br>test_main.c:521: error: `fftw_get_time' undeclared (first use this function)<br>test_main.c:527: error: `end_t' undeclared (first use this function)<br>test_main.c:528: error: `fftw_time_diff' undeclared (first use this function)<br>test_main.c:528: error: `fftw_time_to_sec' undeclared (first use this function)<br>test_main.c: In function `void test_timer()':<br>test_main.c:552: error: `fftw_time' undeclared (first use this function)<br>test_main.c:552: error: expected `;' before "begin"<br>test_main.c:559: error: `start' undeclared (first use this function)<br>test_main.c:559: error: `fftw_get_time' undeclared (first use this function)<br>test_main.c:566: error: `FFTW_TIME_REPEAT'
undeclared (first use this function)<br>test_main.c:567: error: `begin' undeclared (first use this function)<br>test_main.c:571: error: `end' undeclared (first use this function)<br>test_main.c:573: error: `fftw_time_diff' undeclared (first use this function)<br>test_main.c:573: error: `fftw_time_to_sec' undeclared (first use this function)<br>test_main.c:581: error: `FFTW_TIME_LIMIT' undeclared (first use this function)<br>test_main.c:637: error: `FFTW_TIME_MIN' undeclared (first use this function)<br>test_main.c: In function `void handle_option(char, char*)':<br>test_main.c:748: error: `fftw_die' undeclared (first use this function)<br>test_main.c:753: error: `FFTW_MEASURE' undeclared (first use this function)<br>test_main.c:757: error: `FFTW_ESTIMATE' undeclared (first use this function)<br>test_main.c:761: error: `FFTW_NO_VECTOR_RECURSE' undeclared (first use this func<br>tion)<br>test_main.c:765: error: `FFTW_USE_WISDOM' undeclared (first use this
function)<br>test_main.c:772: error: `FFTW_SUCCESS' undeclared (first use this function)<br>test_main.c:772: error: `fftw_import_wisdom_from_file' undeclared (first use thi<br>s function)<br>test_main.c:787: error: `fftw_version' undeclared (first use this function)<br>test_main.c:790: error: `fftw_real' undeclared (first use this function)<br>test_main.c:820: error: `fftw_check_memory_leaks' undeclared (first use this fun<br>ction)<br>test_main.c: In function `int main(int, char**)':<br>test_main.c:990: error: `FFTW_USE_WISDOM' undeclared (first use this function)<br>test_main.c:994: error: `fftw_export_wisdom_to_string' undeclared (first use thi<br>s function)<br>test_main.c:995: error: `fftw_die' undeclared (first use this function)<br>test_main.c:997: error: `fftw_forget_wisdom' undeclared (first use this function<br>)<br>test_main.c:998: error: `FFTW_SUCCESS' undeclared (first use this function)<br>test_main.c:998: error:
`fftw_import_wisdom_from_string' undeclared (first use t<br>his function)<br>test_main.c:1000: error: `fftw_free' undeclared (first use this function)<br>test_main.c:1005: error: `fftw_export_wisdom_to_file' undeclared (first use this<br> function)<br>test_main.c:1012: error: `fftw_check_memory_leaks' undeclared (first use this fu<br>nction)<br>test_main.c:1014: error: `fftw_print_max_memory_usage' undeclared (first use thi<br>s function)<br>fftw-int.h is unedr fftw folder. I am not sure what is wrong.<br><br>Can anyone please take a look and help?<br><br>Regards<br>Ana<br></span></td></tr></table><br>
<!--6--><hr size=1></hr> Add more friends to your messenger and enjoy! <a href="http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/"> Invite them now.</a>