Git Product home page Git Product logo

Comments (4)

asjgi avatar asjgi commented on May 5, 2024

i was change that - MakeFlowFromClientSecretsPath -> MakeFlowFromClientSecretsJson Method.
And then i saw that Success Build

from google-api-cpp-client.

dgreatwood avatar dgreatwood commented on May 5, 2024

Hi asjgi -

Thanks for posting these workarounds, to get samples to compile. The only one that didn't work when I tried was the last.

To be more explicit, in src/samples/calendar_sample_main.cc, I replaced one instance of MakeFlowFromClientSecretsPath with MakeFlowFromClientSecretsJson.

The error message was unchanged (see below). Is there something else involved?

To take the first error first, there is a get_start (per google_calendar_api::Event::get_start) declared (but not defined) in event.h; the time_period.h get_start is defined and looks similar/same, but that is google_calendar_api::TimePeriod::get_start, not Event.

Thanks again.

CMakeFiles/calendar_sample.dir/calendar_sample_main.cc.o: In function googleapis::Display(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google_calendar_api::Event const&)': calendar_sample_main.cc:(.text+0x998): undefined reference togoogle_calendar_api::Event::get_start() const'
calendar_sample_main.cc:(.text+0x9d0): undefined reference to google_calendar_api::Event::get_start() const' calendar_sample_main.cc:(.text+0xa70): undefined reference togoogle_calendar_api::Event::get_end() const'
calendar_sample_main.cc:(.text+0xaa8): undefined reference to google_calendar_api::Event::get_end() const' CMakeFiles/calendar_sample.dir/calendar_sample_main.cc.o: In functiongoogleapis::CalendarSample::Run()':
calendar_sample_main.cc:(.text+0x2a84): undefined reference to google_calendar_api::Event::mutable_start()' calendar_sample_main.cc:(.text+0x2b07): undefined reference togoogle_calendar_api::Event::mutable_end()'
calendar_sample_main.cc:(.text+0x2ce8): undefined reference to google_calendar_api::Event::mutable_start()' calendar_sample_main.cc:(.text+0x2d6b): undefined reference togoogle_calendar_api::Event::mutable_end()'
calendar_sample_main.cc:(.text+0x2f76): undefined reference to google_calendar_api::Event::mutable_start()' calendar_sample_main.cc:(.text+0x300d): undefined reference togoogle_calendar_api::Event::mutable_end()'
CMakeFiles/calendar_sample.dir/calendar_sample_main.cc.o: In function void googleapis::DisplayList<google_calendar_api::CalendarList, google_calendar_api::CalendarListEntry>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google_calendar_api::CalendarList const&)': calendar_sample_main.cc:(.text._ZN10googleapis11DisplayListIN19google_calendar_api12CalendarListENS1_17CalendarListEntryEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_RKT_[_ZN10googleapis11DisplayListIN19google_calendar_api12CalendarListENS1_17CalendarListEntryEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_RKT_]+0xdd): undefined reference togoogle_calendar_api::CalendarList::get_items() const'
CMakeFiles/calendar_sample.dir/calendar_sample_main.cc.o: In function void googleapis::DisplayList<google_calendar_api::Events, google_calendar_api::Event>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google_calendar_api::Events const&)': calendar_sample_main.cc:(.text._ZN10googleapis11DisplayListIN19google_calendar_api6EventsENS1_5EventEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_RKT_[_ZN10googleapis11DisplayListIN19google_calendar_api6EventsENS1_5EventEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESB_RKT_]+0xdd): undefined reference togoogle_calendar_api::Events::get_items() const'
collect2: error: ld returned 1 exit status
src/samples/CMakeFiles/calendar_sample.dir/build.make:97: recipe for target 'bin/calendar_sample' failed
make[2]: *** [bin/calendar_sample] Error 1
CMakeFiles/Makefile2:817: recipe for target 'src/samples/CMakeFiles/calendar_sample.dir/all' failed
make[1]: *** [src/samples/CMakeFiles/calendar_sample.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

from google-api-cpp-client.

harshapat avatar harshapat commented on May 5, 2024

Events::get_items() api is not implemented. Thats the reason for this error.
May be JSonCpp library has got updated.

from google-api-cpp-client.

SurferJeffAtGoogle avatar SurferJeffAtGoogle commented on May 5, 2024

Fixed.

from google-api-cpp-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.