- XCode 3.2
- Boost 1.41.0
- GCC 4.2.1
Not sure if it is necessary to mention that I am developing under Snow Leopard, but there you go.
It took me awhile before I was even able to build the thing in XCode.
It appears that referencing a library is different in XCode than in the other IDEs. In XCode, I have to drag the library, libboost_regex.dylib, from the Finder window to the XCode window in the Groups and Files pane under the Products node. I do not know of any other easier way; using the Project properties window did not seem to work. Usually, as is the practice in other IDEs, the references to the library are set under the properties window.
Also, I make sure that I have copied the library under the target build directory; otherwise, the library will not be loaded at runtime. This is strange and can be wrong, though.
Now, building and running the application seem successful. However, executing regex functions (such as regex_match) crashes. See code below. What is necessary is to remove _GLIBCXX_DEBUG from the preprocessor macros. I did not remove the other one, though -- _GLIBCXX_DEBUG_PEDANTIC.
There you go...
