Hi Xiaofan, On Sunday, 16. November 2014 10:06:38 Xiaofan Chen wrote: > /Users/xiaofanc/work/libftdi/libftdi1-1.2rc/examples/find_all_pp.cpp:49:47 > : error: too many arguments to function call, > expected 2, have 3 > List* list = List::find_all(context, vid, pid); > ~~~~~~~~~~~~~~ ^~~ > /usr/local/include/ftdi.hpp:180:5: note: 'find_all' declared here > static List* find_all(int vendor, int product); > ^
thanks for testing :) This looks like a header mismatch, may be again conflicting with the "homebrew" stuff? The function signature of find_all() was changed from - static List* find_all(int vendor, int product); to + static List* find_all(Context &context, int vendor, int product); in commit 7c21beca63e7d4b07d7ebff25428ca4cfdbc8ec5 That was already part of libftdi 1.0. I've checked the CMakeLists.txt in the "examples" subdir: Actually it should prefer the local ftdi.hpp before any system wide file. Not sure why it picks up your file in /usr/local/include. You could try a "make VERBOSE=1" and just post the line when it compiles the ftdi_pp example. Then we can examine the include path. Cheers, Thomas -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
