[mimetic-users] Compile issue when using clang 4.1
Brought to you by:
tat0o
|
From: Amy T. <Amy...@ad...> - 2012-11-02 14:32:25
|
I ran into a small compile issue in mimetic 0.9.7 using the newest version of clang packaged with Apple's Xcode version 4.5.2.
Compiler:
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
Build command:
/bin/sh ../../libtool --tag=CXX --mode=compile /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../../mimetic -I../.. -g -O2 -DNDEBUG -DHAVE_MIMETIC_CONFIG -MT datetime.lo -MD -MP -MF .deps/datetime.Tpo -c -o datetime.lo datetime.cxx libtool: compile: /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../../mimetic -I../.. -g -O2 -DNDEBUG -DHAVE_MIMETIC_CONFIG -MT datetime.lo -MD -MP -MF .deps/datetime.Tpo -c datetime.cxx -fno-common -DPIC -o .libs/datetime.o
Error:
In file included from datetime.cxx:11:
../../mimetic/tokenizer.h:150:9: error: use of undeclared identifier 'setDelimList'
setDelimList(delims);
^
datetime.cxx:266:21: note: in instantiation of function template specialization 'mimetic::ContTokenizer<std::basic_string<char>
>::ContTokenizer<char [3]>' requested here
StringTokenizer stok(&can_input, " ,");
^
../../mimetic/tokenizer.h:90:10: note: must qualify identifier to find this declaration in dependent base class
void setDelimList(const DelimCont& cont)
^
../../mimetic/tokenizer.h:95:10: note: must qualify identifier to find this declaration in dependent base class
void setDelimList(It bit, It eit)
Patch:
--- tokenizer.h 2012-11-02 09:15:02.000000000 -0500
+++ patch.h 2012-11-02 09:15:08.000000000 -0500
@@ -147,7 +147,7 @@
ContTokenizer(const Container* cont, const DelimCont& delims)
: ItTokenizer<const_iterator,value_type>(cont->begin(), cont->end())
{
- setDelimList(delims);
+ ItTokenizer<const_iterator,value_type>::setDelimList(delims);
}
void setSource(const Container* cont)
{
Cheers :)
—
Amy Troschinetz | Senior Software Developer | o 512.852.7127 | amy...@ad...
Adometry | www.adometry.com
|