From: Wes H. <we...@we...> - 2006-03-22 07:29:52
|
i think a few people have seen this SWIG error. i've gotten it using both swigwin 1.3.28 and 1.3.29, but not 1.3.27, and i just figured out where it's coming from (my apologies if someone's already pointed it out). basically, if a header file i'm including doesn't end in a newline character, i'll see this error. take the following headers for example (with newlines shown as '\n'): // file1.h #ifndef __FILE1_H__\n #define __FILE1_H__\n <class declaration>\n #endif\n // file2.h #ifndef __FILE2_H__\n #define __FILE2_H__\n <class declaration>\n #endif if i try to SWIG these, file2.h will fail with the message "file2.h(999999): Error: Missing #endif for conditional starting on line 1". hope that helps. Wes |