QT - rolling your own
Posted in Uncategorized on June 19, 2007 at 1:40 pm
QT - neat development environment that is Mac/Linux/Windows independent - comes with a load of tools. I’ve just been using some of them and they don’t work
It’s not a major problem, just a minor bug or perhaps not even that. QT project files can contain comments which are started with # and terminate at the end of line. Lines can be extended with \. The problem is a comment which isn’t line extended ends the line and more importantly the block eg
SOURCES = \
FILE1.c \
FILE2.cpp \
# a comment
FILE3.c
HEADERS = \ etc
FILE3.c isn’t part of the Sources block because of the new line after the comment.
# comment \
would be fine.
I’m not even sure this counts as a bug as you could say that is a valid interpretation of the syntax. The problem is most of the tools handle the # comment OK, just the ones you tend to use at the end of the development cycle don’t so you can get in a bit of a state. Especially as you get no errors or warnings - it just ignores the files after the comment. As you can guess it took me a while to figure out what was happening.
However a neat feature of QT is that it comes with sources to the libraries and tools. So hey presto I edit the source to say comments don’t end the block and away we go. I think, I’d better check what else my changes might affect!
The moral of the tale? Don’t add comments!
Make a comment
Tag cloud
Archives
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
Most commented posts
Highest Rated Blog Posts
- No excuse - it's free to encrypt! (100%)
- PC Advance Required (100%)
- Virtualization's Dark Side - or stating the obvious for beginners (100%)
- Tabs - I might change my mind? (100%)
- Which Linux do you drink? (100%)
- Sat Nag (100%)
- What has you tube ever done for us? (100%)
- Is your back door open? (90%)
- What they don't say... (90%)
- Measuring the Metrics (80%)

