understanding Xcode and Boost
Hello,
Thanks to Igor R for helping me get started with the compilation problems of
the regex test program at
http://www.boost.org/doc/libs/1_35_0/more/getting_started/unix-variants.html...
Xcode. I renamed all id occurrences to idd in the regex headers, but
still get errors. Also, I don't understand why this is necessary for Xcode
but not using the command line compilation suggested in the getting started
guide. Is Xcode generally more problematic when using libraries like Boost
or GSL? Is there a better recommended development environment than Xcode,
or is it simple once the error is tracked down?
Thanks again for any input.
Message: 7
Date: Wed, 24 Feb 2010 23:52:22 +0200
From: Igor R Content-Type: text/plain; charset=UTF-8 I am interested in using Xcode on OSX to develop some code, and have been
having some troubles compiling the regex example given at: http://www.boost.org/doc/libs/1_35_0/more/getting_started/unix-variants.html I can compile using the command line, but not in Xcode. Rename all the occurrences of local variables named "id" in the
relevant regex headers.
Thanks to Igor R for helping me get started with the compilation problems of the regex test program at http://www.boost.org/doc/libs/1_35_0/more/getting_started/unix -variants.html using Xcode. I renamed all id occurrences to idd > in the regex headers, but still get errors. Also, I don't understand why this is necessary for Xcode but not using the command line compilation suggested in the getting started guide. Is Xcode generally more problematic when using libraries like Boost or GSL? Is there a better recommended development environment than Xcode, or is it simple once the error is tracked down?
Thanks again for any input.
I use boost in X Code without changing any boost sources. What errors are you getting in X Code? Did you change the search paths to include your boost headers and libraries? ~Dan
http://www.boost.org/doc/libs/1_35_0/more/getting_started/unix-variants.html using Xcode.
BTW, my experience is with 1.40 and up, so I don't know if it's relevant to 1.35
I renamed all id occurrences to idd in the regex headers
Maybe you renamed a bit more than needed. I meant local variables *only*. Just follow the error messages that XCode emits, and rename where needed.
Also, I don't understand why this is necessary for Xcode but not using the command line compilation suggested in the getting started guide.
Because you compile *.mm modules, don't you? So you actually invoke ObjectiveC compiler. In general, it's able to compile standard c++, but has some limitations. In this particular case, "id" is a reserved word in ObjC.
participants (3)
-
Casimiro, Daniel C CIV NUWC NWPT
-
David Rangel
-
Igor R