Giter Club home page Giter Club logo

gdata-cpp-util's Introduction

To install the dependencies:

libxml++ requires libxml2 and glibmm-2.4

Install libxml++2.6-dev:
  sudo apt-get install libxml++2.6-dev

You can also install from the source:
  ./configure
  make
  make install
	 
Install libcurl3-dev:
  sudo apt-get install libcurl3-dev
	
To run unit tests, install libcppunit-dev:
  sudo apt-get install libcppunit-dev
	
-----
To run the doclist_sample.cc:
Type 'make' in the root source directory.

gdata-cpp-util's People

gdata-cpp-util's Issues

Service::ClientLogin doesn't percent-escape its arguments

What steps will reproduce the problem?
1. Try to use this code to login to an account that has, for example, '+' in 
the username or '%' 
characters in the password

Please provide any additional information below.

From source code inspection, when you use URLs that include 
?name1=value1&name2=value2 
parameters, the values must be percent escaped, and don't forget that servers 
will interpret '+' as ' ' 
. Further, email addresses of the form [email protected]  are legal, and 
are equivalend to 
[email protected].



Original issue reported on code.google.com by [email protected] on 27 Apr 2009 at 5:17

StringUtils::find_and_replace infinite loops if replacement contains find string.

I'm just reading the source code, but it looks like after the replace, the 
iterator i is left at the 
beginning of the replacement, so the next time through the loop it scans it. 
so, 
StringUtils::find_and_replace("alpha", "a", "a and a "); will infinite loop, 
inserting copies of the 
replacement string.

Since find_and_replace() copies its first argument anway, an easy fix would be 
for it to take its 
source parameter by const ref, copying and replacing substrings to an output 
string as it goes.

Original issue reported on code.google.com by [email protected] on 27 Apr 2009 at 5:11

File not found: string_utils.h!!!

Hello,
i cant run this sample project, i recive this error:
fatal error C1083: Cannot open include file: 'gdata/util/string_utils.h':
No such file or directory

Were is this file string_utils.h???

What i'm doing wrong???

Thanks for any help
brak

Original issue reported on code.google.com by [email protected] on 25 Feb 2010 at 10:55

string / cstdlib not included properly

What steps will reproduce the problem?
1. attempting to make the sample project

What is the expected output? What do you see instead?

You would expect the project to build correctly, instead:

g++ -c -Wall -O3 gdata/client/service.cc `pkg-config libxml++-2.6 --cflags`
`curl-config --cflags`
gdata/client/service.cc: In member function ‘std::string
gdata::client::Service::HttpRequest(const std::string&, const std::string&,
const std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >&, const
gdata::client::PostData&) const’:
gdata/client/service.cc:105: error: ‘strlen’ was not declared in this scope
gdata/client/service.cc:131: error: ‘exit’ was not declared in this scope
gdata/client/service.cc:151: error: ‘exit’ was not declared in this scope
gdata/client/service.cc:155: error: ‘exit’ was not declared in this scope
make: *** [service.o] Error 1

Not sure whether this is some kind of compiler issue I'm not familiar with,
I haven't written C/C++ code for several years so forgive my ignorance if
I've just set up my environment incorrectly.

What version of the product are you using? On what operating system?

I'm building on fedora core 10, with all of the proper dependencies
installed.  I grabbed the latest svn trunk as of about 20 minutes ago.

Please provide any additional information below.

I fixed this pretty easily by adding an include for <string.h> and
<cstdlib> to the affected files:

gdata/client/service.cc: added <string.h> and <cstdlib>
doclistsample.cc: added <cstdlib>

Original issue reported on code.google.com by [email protected] on 23 Mar 2009 at 7:25

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.