On July 4, 2005 01:41 pm, Thorsten Viel wrote:
> Hi List,
>
> prior to my first mail, hello to everybody.
>
> Now this is my prob:
>
> I installed via configure && make && make install curl-7.13.0 and
> curlpp-0.5.0. Everything went well. Now I try to compile a program
> (gcc3.3.3), which was already running and compilable in another system
> using curl and curlpp.
>
> Now these are the results:
>
Can you send the compiler command?
> ---------------------
>
> In file included from /usr/local/include/curlpp/Option.hpp:27,
> from /usr/local/include/curlpp/Options.hpp:25,
> from emitter.cpp:85:
> /usr/local/include/curlpp/OptionBase.hpp:40: error: syntax error before `)'
> token
> /usr/local/include/curlpp/OptionBase.hpp:55: error: syntax error before `('
> token
> /usr/local/include/curlpp/OptionBase.hpp:81: error: syntax error before `;'
> token
> In file included from /usr/local/include/curlpp/OptionContainerType.hpp:31,
> from /usr/local/include/curlpp/OptionContainer.hpp:27,
> from /usr/local/include/curlpp/Option.hpp:28,
> from /usr/local/include/curlpp/Options.hpp:25,
> from emitter.cpp:85:
> /usr/local/include/curlpp/Form.hpp:59: error: syntax error before `*' token
> /usr/local/include/curlpp/Form.hpp:67: error: syntax error before `*' token
> /usr/local/include/curlpp/Form.hpp:68: error: syntax error before `*' token
> /usr/local/include/curlpp/Form.hpp:99: error: `curl_httppost' undeclared in
> namespace `cURL'
> /usr/local/include/curlpp/Form.hpp:99: error: `first' was not declared in
> this scope
> /usr/local/include/curlpp/Form.hpp:100: error: `curl_httppost' undeclared
> in namespace `cURL'
> /usr/local/include/curlpp/Form.hpp:100: error: `last' was not declared in
> this scope
> /usr/local/include/curlpp/Form.hpp:100: error: variable declaration is not
> allowed here
> /usr/local/include/curlpp/Form.hpp:114: error: syntax error before `{'
> token /usr/local/include/curlpp/Form.hpp:148: error: destructors must be
> member functions
> /usr/local/include/curlpp/Form.hpp:148: error: virtual outside class
> declaration
> /usr/local/include/curlpp/Form.hpp:153: error: syntax error before `*'
> token /usr/local/include/curlpp/Form.hpp:169: error: syntax error before
> `{' token /usr/local/include/curlpp/Form.hpp:203: error: destructors must
> be member functions
> /usr/local/include/curlpp/Form.hpp:203: error: virtual outside class
> declaration
> /usr/local/include/curlpp/Form.hpp:208: error: syntax error before `*'
> token /usr/local/include/curlpp/Form.hpp:218: error: syntax error before
> `}' token In file included from
> /usr/local/include/curlpp/OptionContainer.hpp:27, from
> /usr/local/include/curlpp/Option.hpp:28,
> from /usr/local/include/curlpp/Options.hpp:25,
> from emitter.cpp:85:
> /usr/local/include/curlpp/OptionContainerType.hpp:56: error: `
> OptionContainerType' is not a template
> /usr/local/include/curlpp/OptionContainerType.hpp:58: confused by earlier
> errors, bailing out
>
> -------------------
>
>
> OptionBase.hpp:40 for example contains a reference to namespace cURL::
> which seems not to be wellknown, although all includes are in place.
>
> It seems that the cURL.hpp which looks like:
>
> namespace cURL{
> #include <curl/curl.h>
> }
>
> is bailing out the compiler. Moving the definition of namespace in curl.h
> and deleting the cURL:: prefix is resulting in not having the first 3
> errors. But going this way is a never ending story in changing sources.
>
> Is this error wellknown or has anybody a hint for me?
>
> System is SuSE 9.2, gcc3.3.3, curlpp0.5.0, curl-7.13.0
>
> Thanks in advance
>
> _______________________________________________
> cURLpp mailing list
> cURLpp_at_rrette.com
> http://www.rrette.com/mailman/listinfo/curlpp
--
Jean-Philippe Barrette-LaPierre
Savoir-Faire Linux
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2005-07-04