google-code-export / gpick

Automatically exported from code.google.com/p/gpick
2 stars 0 forks source link

error: reference to 'set' is ambiguous #110

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. scons && make

What is the expected output? What do you see instead?
Expected successful compile but got:

/usr/bin/clang++ -o build/source/dynv/DynvVarBool.o -c -Wall -O3 -DNDEBUG 
-D_REENTRANT -DENABLE_NLS -I/opt/local/include/gtk-2.0 
-I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 
-I/opt/local/include/gio-unix-2.0 -I/opt/local/include 
-I/opt/local/include/cairo -I/opt/local/include/atk-1.0 
-I/opt/local/include/pixman-1 -I/opt/local/include/libpng16 
-I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/harfbuzz 
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include 
-I/opt/local/include/freetype2 source/dynv/DynvVarBool.cpp
source/dynv/DynvVarBool.cpp:72:15: error: reference to 'set' is ambiguous
        handler->set=set;
                     ^
source/dynv/DynvVarBool.cpp:39:12: note: candidate found by name lookup is 'set'
static int set(struct dynvVariable* variable, void* value, bool deref){
           ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/../lib/c++/v1/__tree:35:28: note: candidate found by name lookup is 
'std::__1::set'
    class _LIBCPP_TYPE_VIS set;
                           ^
1 error generated.

What version of the product are you using? On what operating system?
gpick 0.2.5, OS X 10.9 Mavericks, Xcode 5.0.2, Apple LLVM version 5.0 
(clang-500.2.79) (based on LLVM 3.3svn)

Please provide any additional information below.
OS X 10.9 Mavericks for the first time on OS X uses libc++ instead of libstdc++ 
as its C++ library. libc++ includes full C++11 support, but not support for 
earlier non-standard C++11 experimental implementation like libstdc++ did.

Original issue reported on code.google.com by ryandesi...@gmail.com on 19 Dec 2013 at 12:32

GoogleCodeExporter commented 9 years ago
All ambiguous usage of "set" should be fixed in the attached patch. Please try 
it.

Original comment by thezbyg on 19 Dec 2013 at 8:50

Attachments: