Saturday, October 6, 2012

Another Windows AWK Script Problem

I spoke too soon, in doing some final testing with CMake building, the other awk script enums.awk (used to generate autoenums.h from table.cpp for the code enumeration and ibcp.cpp for the token status enumeration) also did not work correctly on Windows.

Again, the solution used in winfix0.1.15 with setting the record separator variables can't be used because it doesn't work on Linux.  Therefore, a similar solution used for test_codes.awk was used in both parts of enums.awk, namely looking for a CR character and removing it if present and doing nothing if not.  This change was committed and push to github.

While testing, another CMake problem was also discovered.  For some reason, a compile error occurs when building in the ibcp directory (instead of in a different build directory).  I'm not sure why this is happening.  This is not recommended, but it should still work.  It was also noticed that the old Makefile was still in the directory and needs to be removed.

No comments:

Post a Comment

All comments and feedback welcomed, whether positive or negative.
(Anonymous comments are allowed, but comments with URL links or unrelated comments will be removed.)