[Ctool-users] FW: Flex 2.5.4a and gcc 3.3.1
Brought to you by:
flisakow
From: Flynn, L. A. (Lori) <la...@lu...> - 2004-07-15 14:52:51
|
I am having problems with ctool, combined with Flex 2.5.4a (or version 2.5.31) and gcc 3.3.1. I am compiling ctool on cygwin over WinXP Pro, and the 'make depend' for ctool (which uses flex to compile a dependency) complains about Flex not seeing standard c libraries such as cstdio and string. (Although I have put the 'using namespace std;' required line under all included std libraries in files.) However, the ctool program does compile in spite of the warnings about the flex file not finding the std libraries. But then the compiled ctool program does not pass any run tests from the regression directory, and gives many '__STDC__ redefined' warnings. In the ctool code, __STDC__ is defined to be 1 (if a Windows environment is discovered). A relevant similar issue, is that ulong should be typedef'd in file utype.h (once the WINDOWS environment is discovered). However, I have to typedef that myself...so maybe the problem is there. I'm not sure if I'm supposed to do a: #define WINDOWS 1 Or if that is some environmental variable that is sensed. Hope to hear some ideas for fixes! Cheers, -Lori |