[Integration Help]: Integrate Hamcrest into my IPhone project, compiling error dues to MICRO conflict.

3 views
Skip to first unread message

jianhua

unread,
Dec 12, 2011, 10:36:02 PM12/12/11
to Hamcrest Developers, yujian...@126.com
Integrate Hamcrest into my IPhone project, compiling error dues to
MICRO conflict.

See header file HCHasDescription.h, unfortunately my source file also
has interface poi.hasDescription(), compiler is confused on which one
to choose.

#ifdef HC_SHORTHAND
#define hasDescription HC_hasDescription
#endif

I have added the following header files in testing project prefix.PCH
file.
#define HC_SHORTHAND
#import <OCHamcrestIOS/OCHamcrestIOS.h>

I am confused, anyone who knows how to fix it please share, any idea?
Your discussion are appreciated.

Thanks in advance.

Jon Reid

unread,
Dec 12, 2011, 11:38:52 PM12/12/11
to yujian...@126.com, hamcre...@googlegroups.com
Solution: Don't define HC_SHORTHAND. Then use the longer versions of OCHamcrest names, like HC_hasDescription.
- Jon

andy yu

unread,
Dec 13, 2011, 8:14:35 PM12/13/11
to hamcre...@googlegroups.com
Thanks Reid, works well.  

--
You received this message because you are subscribed to the Google Groups "Hamcrest Developers" group.
To post to this group, send email to hamcre...@googlegroups.com.
To unsubscribe from this group, send email to hamcrest-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hamcrest-dev?hl=en.




--
Man, you should look forward to the future.
Reply all
Reply to author
Forward
0 new messages