cppcms-users Mailing List for CppCMS C++ Web Framework (Page 36)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
| 2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
| 2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
| 2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
| 2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
| 2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
| 2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
| 2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
| 2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
| 2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
| 2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
|
From: Ross R. <ros...@gm...> - 2014-08-19 15:55:47
|
I have tried to compile with Windows multiple times because my work machine is Windows and my home PC is a windows gaming machine. All I found was pain. Once I got it to compile and then I had some weird non-POSIX compliance issue that cratered the effort at run time. Ultimately, it really wasn't worth the hassle.... I'd recommend putting Ubuntu on a machine, dual booting into Ubuntu, or running Ubuntu inside of a virtualbox instance on your Windows machine. However, if you do get Windows running smoothly, let this list know as I am interested in such a solution. Good luck. - Ross On Tue, Aug 19, 2014 at 8:40 AM, Tamas Fekete <fek...@ou...> wrote: > Hello, > > I did a research in the old letters and I found nothing to my problem. > > > - I have Win 8.1 and MS CV 2013 express. > - I installed the mandatory dependencies (only them). > - I also installed the CMAKE. > > > I run the CMAKE GUI and press configure and I get lots of red lines. :-) > > *Did someone try to install on similar way like mine?* > > (and an additional question: I also want very good design/UI to my web > service. Does this framework support it? or should I search after other C++ > lib like Wt? Which is a better if I want complex UI/desing?) > > Thanks, Tamás > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
|
From: Tamas F. <fek...@ou...> - 2014-08-19 15:40:32
|
Hello, I did a research in the old letters and I found nothing to my problem. I have Win 8.1 and MS CV 2013 express.I installed the mandatory dependencies (only them).I also installed the CMAKE. I run the CMAKE GUI and press configure and I get lots of red lines. :-) Did someone try to install on similar way like mine? (and an additional question: I also want very good design/UI to my web service. Does this framework support it? or should I search after other C++ lib like Wt? Which is a better if I want complex UI/desing?) Thanks, Tamás |
|
From: Artyom B. <art...@ya...> - 2014-08-17 09:57:02
|
I think this should help: http://cppcms.com/cppcms_ref/latest/ex_json_rpc_chat.html It is an example of using Asynchonous JSON RPC calls. Tell me if you have more troubles Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Erasmo Aguilera <eag...@ho...> >To: cpp...@li... >Sent: Monday, August 11, 2014 9:51 PM >Subject: [Cppcms-users] Dispatch JSON-RPC methods. > > > >Hello, > >I’m having troubles using JSON-RPC. I already derive the application class from cppcms::rpc::json_rpc_server and bind the RPC methods in its constructor using the bind() method. > >However, I don’t know how to dispatch the RPC methods once an asynchronous request get into the main() method of the application class. > >Please help me out. > >Erasmo. >------------------------------------------------------------------------------ > >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Erasmo A. <eag...@ho...> - 2014-08-11 18:51:47
|
Hello, I'm having troubles using JSON-RPC. I already derive the application class from cppcms::rpc::json_rpc_server and bind the RPC methods in its constructor using the bind() method. However, I don't know how to dispatch the RPC methods once an asynchronous request get into the main() method of the application class. Please help me out. Erasmo. |
|
From: Erasmo A. <eag...@ho...> - 2014-08-06 17:36:33
|
/*
* File: JSON_RPC.h
* Author: Erasmo
*
* Created on 04 de agosto de 2014, 08:39 PM
*/
#ifndef JSON_RPC_H
#define JSON_RPC_H
#include "content.h"
#include <cppcms/application.h>
#include <cppcms/service.h>
#include <cppcms/rpc_json.h>
#include <cppcms/url_dispatcher.h>
#include <string>
#include <iostream>
class JSON_service : public cppcms::rpc::json_rpc_server
{
public:
JSON_service(cppcms::service& /* srv */);
virtual void main(std::string /* url */);
void load();
void sum(int /* x */, int /* y */);
void div(int /* x */, int /* y */);
};
JSON_service::JSON_service(cppcms::service& srv) :
cppcms::rpc::json_rpc_server(srv)
{
dispatcher().assign("", &JSON_service::load, this);
mapper().assign("");
bind("sum", cppcms::rpc::json_method(&JSON_service::sum, this), method_role);
bind("div", cppcms::rpc::json_method(&JSON_service::div, this), method_role);
mapper().root("/rpc");
}
void JSON_service::main(std::string url)
{
dispatcher().dispatch(url);
}
void JSON_service::load()
{
content::None c {};
render("Client", c);
}
void JSON_service::sum(int x, int y)
{
return_result(x + y);
}
void JSON_service::div(int x, int y)
{
if (y == 0) {
return_error("Division by zero.");
}
else {
return_result(x / y);
}
}
#endif /* JSON_RPC_H */
|
|
From: Abhishek K. <abh...@gm...> - 2014-08-06 13:35:14
|
Hello Artyom, I am facing compilations errors on Clang3.4 compiler. I have pasted them at: pastebin. com/TvmjP9Zb Sorry, had a tough time in posting the error here itself, probably due to large post, it wasn't allowed here. Regards, Abhishek |
|
From: Abhishek K. <abh...@gm...> - 2014-08-06 13:28:56
|
Hello Artyom, I am facing compilations errors on Clang3.4 compiler. I have pasted them at: http://pastebin.com/TvmjP9Zb Sorry, had a tough time in posting the error here itself, probably due to large post, it wasn't allowed here. Regards, Abhishek |
|
From: Abhishek K. <abh...@gm...> - 2014-08-06 13:17:45
|
Hi Artyom,
On Mac OSX 10.9.4, I am facing the following error
while building cppcms-1.0.4, any recommendations
on fixing this?
cc -v says: Apple LLVM version 5.1
(clang-503.0.40) (based on LLVM 3.4svn) Target:
x86_64-apple-darwin13.3.0 Thread model: posix
Errors follow:
[ 18%] Building CXX object
CMakeFiles/cppcms.dir/src/http_response.cpp.o In
file included from
/Users/Abhishek/Downloads/cppcms-1.0.4/src/http_response.cpp:31:
In file included from
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/stream.hpp:21:
In file included from
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/stream_buffer.hpp:21:
In file included from
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/detail/streambuf/direct_streambuf.hpp
:24:
In file included from
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/detail/functional.hpp:24:
In file included from
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/close.hpp:19:
In file included from
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/detail/adapter/non_blocking_adapter.h
pp:15:
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/write.hpp:82:58:
warning: unused parameter 'c'
[-Wunused-parameter] static bool put(T& t,
typename char_type_of<T>::type c)
^ 1
warning generated. [ 18%] Building CXX object
CMakeFiles/cppcms.dir/src/http_context.cpp.o [
19%] Building CXX object
CMakeFiles/cppcms.dir/src/cppcms_error.cpp.o [
19%] Building CXX object
CMakeFiles/cppcms.dir/src/cppcms_error_category.cpp.o
[ 19%] Building CXX object
CMakeFiles/cppcms.dir/src/thread_pool.cpp.o [ 20%]
Building CXX object
CMakeFiles/cppcms.dir/src/applications_pool.cpp.o
[ 20%] Building CXX object
CMakeFiles/cppcms.dir/src/application.cpp.o [ 20%]
Building CXX object
CMakeFiles/cppcms.dir/src/url_dispatcher.cpp.o [
21%] Building CXX object
CMakeFiles/cppcms.dir/src/url_mapper.cpp.o [ 21%]
Building CXX object
CMakeFiles/cppcms.dir/src/http_cookie.cpp.o In
file included from
/Users/Abhishek/Downloads/cppcms-1.0.4/src/http_cookie.cpp:9:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms/http_cookie.h:145:11:
warning: private field 'reserved_' is not
used [-Wunused-private-field] uint32_t
reserved_ : 29; ^ 1 warning
generated. [ 21%] Building CXX object
CMakeFiles/cppcms.dir/src/http_file.cpp.o [ 21%]
Building CXX object
CMakeFiles/cppcms.dir/src/http_content_type.cpp.o
[ 22%] Building CXX object
CMakeFiles/cppcms.dir/src/util.cpp.o
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:43:21:
error: invalid operands to binary expression
('std::ostream' (aka 'basic_ostream<char>')
and 'const char *') case
'<': output << "<"; break;
~~~~~~ ^ ~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'char
const[5]' operator<<(basic_ostream<_CharT,
_Traits>& __os, shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'char const[5]'
operator<<(basic_ostream<_CharT, _Traits>& __os, ^
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:44:21:
error: invalid operands to binary expression
('std::ostream' (aka 'basic_ostream<char>')
and 'const char *') case
'>': output << ">"; break;
~~~~~~ ^ ~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'char
const[5]' operator<<(basic_ostream<_CharT,
_Traits>& __os, shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'char const[5]'
operator<<(basic_ostream<_CharT, _Traits>& __os, ^
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:45:21:
error: invalid operands to binary expression
('std::ostream' (aka 'basic_ostream<char>')
and 'const char *') case
'&': output << "&"; break;
~~~~~~ ^ ~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'char
const[6]' operator<<(basic_ostream<_CharT,
_Traits>& __os, shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'char const[6]'
operator<<(basic_ostream<_CharT, _Traits>& __os, ^
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:46:21:
error: invalid operands to binary expression
('std::ostream' (aka 'basic_ostream<char>')
and 'const char *') case
'\"': output<<"""; break;
~~~~~~^ ~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'char
const[7]' operator<<(basic_ostream<_CharT,
_Traits>& __os, shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'char const[7]'
operator<<(basic_ostream<_CharT, _Traits>& __os, ^
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:47:20:
error: invalid operands to binary expression
('std::ostream' (aka 'basic_ostream<char>')
and 'int') default: output
<< c; ~~~~~~ ^ ~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'char'
operator<<(basic_ostream<_CharT, _Traits>& __os,
shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'char' operator<<(basic_ostream<_CharT,
_Traits>& __os, ^
In file included from
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:9:
In file included from
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms/util.h:12:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:439: In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/algorithm:627: In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:600:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/iterator:794:28: error: invalid
operands to binary expression ('ostream_type' (aka
'basic_ostream<char,
std::__1::char_traits<char> >') and 'int')
*__out_stream_ << __value_;
~~~~~~~~~~~~~~ ^ ~~~~~~~~
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:61:11:
note: in instantiation of member function
'std::__1::ostream_iterator<char, char,
std::__1::char_traits<char> >::operator='
requested here *out++ = c;
^
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:88:2:
note: in instantiation of function template
specialization
'cppcms::util::urlencode_impl<std::__1::ostream_iterator<char,
char, std::__1::char_traits<char> > >'
requested here urlencode_impl(b,e,it);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'const
char' operator<<(basic_ostream<_CharT, _Traits>&
__os, shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'const char'
operator<<(basic_ostream<_CharT, _Traits>& __os, ^
In file included from
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:9:
In file included from
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms/util.h:12:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:439: In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/algorithm:627: In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:600:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/iterator:796:32: error: invalid
operands to binary expression ('ostream_type' (aka
'basic_ostream<char,
std::__1::char_traits<char> >') and 'const
char_type *' (aka 'const char *'))
*__out_stream_ << __delim_;
~~~~~~~~~~~~~~ ^ ~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'const
char *' operator<<(basic_ostream<_CharT, _Traits>&
__os, shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'const char *'
operator<<(basic_ostream<_CharT, _Traits>& __os, ^
7 errors generated. make[2]: ***
[CMakeFiles/cppcms.dir/src/util.cpp.o] Error 1
make[1]: *** [CMakeFiles/cppcms.dir/all] Error 2
make: *** [all] Error 2
After including <iostream> at the problematic files, the compile proceeds ahead
, but gives this error, which I am not able to solve further, might give up now
.
[ 17%] Built target booster
[ 18%] Building CXX object CMakeFiles/cppcms.dir/src/cache_storage.cpp.o
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/mem_algo/rbtree_best_fit.hpp:24:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/detail/mem_algo_common.hpp:456:34: error: implicit instantiation of und
efined template 'std::pair<void *, bool>'
std::pair<void *, bool> ret = memory_algo->priv_allocate
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/mem_algo/rbtree_best_fit.hpp:28:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/sync/interprocess_mutex.hpp:38:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/posix_time_types_wrk.hpp:25:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/date_time/posix_time/posix_time_types.hpp:10:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/date_time/time_clock.hpp:17:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/shared_ptr.hpp:17:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/smart_ptr/shared_ptr.hpp:32:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/smart_ptr/deta
il/shared_count.hpp:289:16: error: implicit instantiation of undefined template
'std::less<cppcms_boost::detail::sp_counted_base *>'
return std::less<sp_counted_base *>()( a.pi_, b.pi_ );
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/c
ontainers/container/container_fwd.hpp:41:8: note: template is declared here
struct less;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/mem_algo/rbtree_best_fit.hpp:28:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/sync/interprocess_mutex.hpp:38:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/posix_time_types_wrk.hpp:25:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/date_time/posix_time/posix_time_types.hpp:10:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/date_time/time_clock.hpp:17:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/shared_ptr.hpp:17:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/smart_ptr/shared_ptr.hpp:32:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/smart_ptr/deta
il/shared_count.hpp:410:16: error: implicit instantiation of undefined template
'std::less<cppcms_boost::detail::sp_counted_base *>'
return std::less<sp_counted_base *>()(a.pi_, b.pi_);
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/c
ontainers/container/container_fwd.hpp:41:8: note: template is declared here
struct less;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:645:27: error: implicit instantiation of undefined
template 'std::pair<void *, bool>'
std::pair<void*, bool> ret = priv_allocation_command
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:654:4: error: implicit instantiation of undefined t
emplate 'std::pair<void *, bool>'
raw_allocation_command (cppcms_boost::interprocess::allocation_type command
, std::size_t limit_objects,
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:659:14: error: implicit instantiation of undefined
template 'std::pair<void *, bool>'
return std::pair<void *, bool>(static_cast<void*>(0), 0);
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:665:14: error: implicit instantiation of undefined
template 'std::pair<void *, bool>'
return std::pair<void *, bool> ((success ? reuse_ptr : 0), true);
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:674:4: error: implicit instantiation of undefined t
emplate 'std::pair<void *, bool>'
priv_allocation_command (cppcms_boost::interprocess::allocation_type command
, std::size_t limit_size,
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:678:27: error: implicit instantiation of undefined
template 'std::pair<void *, bool>'
std::pair<void*, bool> ret;
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:878:4: error: implicit instantiation of undefined t
emplate 'std::pair<void *, bool>'
priv_allocate(cppcms_boost::interprocess::allocation_type command
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:891:14: error: implicit instantiation of undefined
template 'std::pair<void *, bool>'
return std::pair<void *, bool> ((success ? reuse_ptr : 0), true);
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:898:14: error: implicit instantiation of undefined
template 'std::pair<void *, bool>'
return return_type(static_cast<void*>(0), false);
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:911:17: error: implicit instantiation of undefined
template 'std::pair<void *, bool>'
return return_type(ret, true);
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:919:17: error: implicit instantiation of undefined
template 'std::pair<void *, bool>'
return return_type(this->priv_check_and_allocate
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:925:17: error: implicit instantiation of undefined
template 'std::pair<void *, bool>'
return return_type(this->priv_check_and_allocate
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:933:14: error: implicit instantiation of undefined
template 'std::pair<void *, bool>'
return return_type(priv_expand_both_sides
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:22:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/m
em_algo/rbtree_best_fit.hpp:937:11: error: implicit instantiation of undefined
template 'std::pair<void *, bool>'
return return_type(static_cast<void*>(0), false);
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:30:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/s
egment_manager.hpp:202:7: error: implicit instantiation of undefined template '
std::pair<void *, bool>'
raw_allocation_command (cppcms_boost::interprocess::allocation_type comm
and, std::size_t limit_objects,
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.
cpp:24:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allo
cator.h:12:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_inte
rprocess.h:15:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/managed_external_buffer.hpp:21:
In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcm
s_boost/interprocess/detail/managed_memory_impl.hpp:30:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/s
egment_manager.hpp:206:31: error: implicit instantiation of undefined template
'std::pair<void *, bool>'
std::pair<void *, bool> ret = MemoryAlgorithm::raw_allocation_command
^
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/i
nterprocess_fwd.hpp:47:8: note: template is declared here
struct pair;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/cppcms.dir/src/cache_storage.cpp.o] Error 1
make[1]: *** [CMakeFiles/cppcms.dir/all] Error 2
make: *** [all] Error 2
|
|
From: Joerg S. <jo...@br...> - 2014-08-06 11:57:05
|
On Wed, Aug 06, 2014 at 11:28:39AM +0000, Abhishek Kaushik wrote: > On Mac OSX 10.9.4, I am facing the following error > while building cppcms-1.0.4, any recommendations > on fixing this? Try the patches from http://sourceforge.net/p/cppcms/bugs/100/ I'm in the process of cleaning them up. Joerg |
|
From: Abhishek K. <abh...@gm...> - 2014-08-06 11:29:01
|
Hi Artyom,
On Mac OSX 10.9.4, I am facing the following error
while building cppcms-1.0.4, any recommendations
on fixing this?
cc -v says: Apple LLVM version 5.1
(clang-503.0.40) (based on LLVM 3.4svn) Target:
x86_64-apple-darwin13.3.0 Thread model: posix
Errors follow:
[ 18%] Building CXX object
CMakeFiles/cppcms.dir/src/http_response.cpp.o In
file included from
/Users/Abhishek/Downloads/cppcms-1.0.4/src/http_response.cpp:31:
In file included from
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/stream.hpp:21:
In file included from
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/stream_buffer.hpp:21:
In file included from
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/detail/streambuf/direct_streambuf.hpp
:24:
In file included from
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/detail/functional.hpp:24:
In file included from
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/close.hpp:19:
In file included from
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/detail/adapter/non_blocking_adapter.h
pp:15:
/Users/Abhishek/Downloads/cppcms-
1.0.4/cppcms_boost/cppcms_boost/iostreams/write.hpp:82:58:
warning: unused parameter 'c'
[-Wunused-parameter] static bool put(T& t,
typename char_type_of<T>::type c)
^ 1
warning generated. [ 18%] Building CXX object
CMakeFiles/cppcms.dir/src/http_context.cpp.o [
19%] Building CXX object
CMakeFiles/cppcms.dir/src/cppcms_error.cpp.o [
19%] Building CXX object
CMakeFiles/cppcms.dir/src/cppcms_error_category.cpp.o
[ 19%] Building CXX object
CMakeFiles/cppcms.dir/src/thread_pool.cpp.o [ 20%]
Building CXX object
CMakeFiles/cppcms.dir/src/applications_pool.cpp.o
[ 20%] Building CXX object
CMakeFiles/cppcms.dir/src/application.cpp.o [ 20%]
Building CXX object
CMakeFiles/cppcms.dir/src/url_dispatcher.cpp.o [
21%] Building CXX object
CMakeFiles/cppcms.dir/src/url_mapper.cpp.o [ 21%]
Building CXX object
CMakeFiles/cppcms.dir/src/http_cookie.cpp.o In
file included from
/Users/Abhishek/Downloads/cppcms-1.0.4/src/http_cookie.cpp:9:
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms/http_cookie.h:145:11:
warning: private field 'reserved_' is not
used [-Wunused-private-field] uint32_t
reserved_ : 29; ^ 1 warning
generated. [ 21%] Building CXX object
CMakeFiles/cppcms.dir/src/http_file.cpp.o [ 21%]
Building CXX object
CMakeFiles/cppcms.dir/src/http_content_type.cpp.o
[ 22%] Building CXX object
CMakeFiles/cppcms.dir/src/util.cpp.o
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:43:21:
error: invalid operands to binary expression
('std::ostream' (aka 'basic_ostream<char>')
and 'const char *') case
'<': output << "<"; break;
~~~~~~ ^ ~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'char
const[5]' operator<<(basic_ostream<_CharT,
_Traits>& __os, shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'char const[5]'
operator<<(basic_ostream<_CharT, _Traits>& __os, ^
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:44:21:
error: invalid operands to binary expression
('std::ostream' (aka 'basic_ostream<char>')
and 'const char *') case
'>': output << ">"; break;
~~~~~~ ^ ~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'char
const[5]' operator<<(basic_ostream<_CharT,
_Traits>& __os, shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'char const[5]'
operator<<(basic_ostream<_CharT, _Traits>& __os, ^
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:45:21:
error: invalid operands to binary expression
('std::ostream' (aka 'basic_ostream<char>')
and 'const char *') case
'&': output << "&"; break;
~~~~~~ ^ ~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'char
const[6]' operator<<(basic_ostream<_CharT,
_Traits>& __os, shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'char const[6]'
operator<<(basic_ostream<_CharT, _Traits>& __os, ^
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:46:21:
error: invalid operands to binary expression
('std::ostream' (aka 'basic_ostream<char>')
and 'const char *') case
'\"': output<<"""; break;
~~~~~~^ ~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'char
const[7]' operator<<(basic_ostream<_CharT,
_Traits>& __os, shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'char const[7]'
operator<<(basic_ostream<_CharT, _Traits>& __os, ^
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:47:20:
error: invalid operands to binary expression
('std::ostream' (aka 'basic_ostream<char>')
and 'int') default: output
<< c; ~~~~~~ ^ ~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'char'
operator<<(basic_ostream<_CharT, _Traits>& __os,
shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'char' operator<<(basic_ostream<_CharT,
_Traits>& __os, ^
In file included from
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:9:
In file included from
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms/util.h:12:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:439: In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/algorithm:627: In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:600:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/iterator:794:28: error: invalid
operands to binary expression ('ostream_type' (aka
'basic_ostream<char,
std::__1::char_traits<char> >') and 'int')
*__out_stream_ << __value_;
~~~~~~~~~~~~~~ ^ ~~~~~~~~
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:61:11:
note: in instantiation of member function
'std::__1::ostream_iterator<char, char,
std::__1::char_traits<char> >::operator='
requested here *out++ = c;
^
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:88:2:
note: in instantiation of function template
specialization
'cppcms::util::urlencode_impl<std::__1::ostream_iterator<char,
char, std::__1::char_traits<char> > >'
requested here urlencode_impl(b,e,it);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'const
char' operator<<(basic_ostream<_CharT, _Traits>&
__os, shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'const char'
operator<<(basic_ostream<_CharT, _Traits>& __os, ^
In file included from
/Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:9:
In file included from
/Users/Abhishek/Downloads/cppcms-1.0.4/cppcms/util.h:12:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:439: In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/algorithm:627: In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:600:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/iterator:796:32: error: invalid
operands to binary expression ('ostream_type' (aka
'basic_ostream<char,
std::__1::char_traits<char> >') and 'const
char_type *' (aka 'const char *'))
*__out_stream_ << __delim_;
~~~~~~~~~~~~~~ ^ ~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/memory:5263:1: note: candidate
template ignored: could not match
'shared_ptr<type-parameter-0-2>' against 'const
char *' operator<<(basic_ostream<_CharT, _Traits>&
__os, shared_ptr<_Yp> const& __p); ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
usr/bin/../lib/c
++/v1/string:4088:1: note: candidate
template ignored: could not match
'basic_string<type-parameter-0-0,
type-parameter-0-1, type-parameter-0-2>'
against 'const char *'
operator<<(basic_ostream<_CharT, _Traits>& __os, ^
7 errors generated. make[2]: ***
[CMakeFiles/cppcms.dir/src/util.cpp.o] Error 1
make[1]: *** [CMakeFiles/cppcms.dir/all] Error 2
make: *** [all] Error 2
|
|
From: Artyom B. <art...@ya...> - 2014-07-30 11:11:43
|
Actually Marcel you noted correctly. Internally we use string_map (I'll explain why) and not std::(unordered_)map due to a very simple fact. string_map uses ONE allocation of memory that is created and released at once. When you get the CGI variables you don't use 95% of them. So when request comes it isn't cost effective to create a map object. It just uses a set of char * and a chunk of memory. It wasn't this way some (many) versions back but it had changed as optimization. The allocation was one of the major bottle necks in the system that was significantly reduced with string_map... (We talk about performance, aren't we?) Now why not const? Because it isn't "just" a container. I want to keep an option to have an optimizations like lazy allocation or some may require "recalculation on demand" that is why non-const is specifically defined as it may actually alter the class on demand in future (like some of the function already do). So no-const there by design and isn't a bug. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Marcel Hellwig <ke...@co...> >To: cpp...@li... >Sent: Wednesday, July 30, 2014 1:39 PM >Subject: Re: [Cppcms-users] Why isn't request const correct? > > > > > > > > >On 30.07.2014 07:26, Noah Roberts wrote: >> std::string auth_type(); >> Does that function really alter the instance in an observable way? That it's non-const would indicate that it is, but I don't understand what it would change. > >That's an interesting fact and a bug imho. >As far as I can see, the problem is, that auth_type calls impl something >and then getenv (private/cgi_api.h). The connection class has a >string_map, where it stores its values and here is the problem. Why do >you use a custom string_map artyom and not a classic >std::(unordered_)map. The get_safe method (in fact all get functions) >are not const, because they call sort. But that's not necessary imho. >You just have to sort the map whenever you insert an element, but not >get one. > >So, two solutions: >1. get rid of the string_map and use a c++ (unordered_)map >2. Don't use sort in the get* method > > >Marcel > > > >------------------------------------------------------------------------------ >Infragistics Professional >Build stunning WinForms apps today! >Reboot your WinForms applications with our WinForms controls. >Build a bridge from your legacy apps to the future. >http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Marcel H. <ke...@co...> - 2014-07-30 10:57:11
|
On 30.07.2014 07:26, Noah Roberts wrote: > std::string auth_type(); > Does that function really alter the instance in an observable way? That it's non-const would indicate that it is, but I don't understand what it would change. That's an interesting fact and a bug imho. As far as I can see, the problem is, that auth_type calls impl something and then getenv (private/cgi_api.h). The connection class has a string_map, where it stores its values and here is the problem. Why do you use a custom string_map artyom and not a classic std::(unordered_)map. The get_safe method (in fact all get functions) are not const, because they call sort. But that's not necessary imho. You just have to sort the map whenever you insert an element, but not get one. So, two solutions: 1. get rid of the string_map and use a c++ (unordered_)map 2. Don't use sort in the get* method Marcel |
|
From: Noah R. <rob...@gm...> - 2014-07-30 05:26:49
|
Trying to understand the idioms in CppCms. It looks like a modern library except that it doesn't appear to be const correct. For example in http::request, std::string auth_type(); Does that function really alter the instance in an observable way? That it's non-const would indicate that it is, but I don't understand what it would change. -- http://crazycpp.wordpress.com http://crazyeddiesbrain.wordpress.com |
|
From: 陈抒 <csf...@gm...> - 2014-07-29 14:56:55
|
Another choice, use gitlab.com. Dean Chen Best regards http://blog.csdn.net/csfreebird On Tue, Jul 29, 2014 at 12:17 AM, Ross Rogers <ros...@gm...> wrote: > For those who wish to git svn clone the repos, this is how I did it in > bash: > > for d in blog boost_locale cppdb dbixx framework packaging wikipp ; do > git svn clone -s --prefix=origin/ --no-minimize-url \ > https://svn.code.sf.net/p/cppcms/code/$d cppcms_$d ; > done > > There is one nested SVN repository under wikipp at wikipp/media/sh: > > You can mirror that repo with > git svn clone -s --prefix=origin/ > http://syntaxhighlighter.googlecode.com/svn/ syntaxhighlighter > > Then add that repo as a submodule in wikipp: > > cd wikipp/media > git submodule add /path/to/syntaxhighlighter sh > cd sh > git checkout origin/tags/1.5.1 > cd ../../ > git commit -a -m "Adding syntaxhighlighter version 1.5.1 as submodule" > > After all those efforts, an svn co of each respective trunk matches the > git clone except for the svn/git cruft. > > I've put the repos on github for my own use in the future: > > blog <https://github.com/RossRogers/cppcms_blog> > boost_locale <https://github.com/RossRogers/cppcms_boost_locale> > cppdb <https://github.com/RossRogers/cppcms_cppdb> > dbixx <https://github.com/RossRogers/cppcms_dbixx> > framework <https://github.com/RossRogers/cppcms_framework> > packaging <https://github.com/RossRogers/cppcms_packaging> > wikipp <https://github.com/RossRogers/cppcms_wikipp> ( wikipp doesn't > have the syntaxhighlighter submodule stuff) > > Mr. Beilis, > > If you wish, I'll make my github mirrors private. Let me know. > > - Ross > > > > On Sat, Jul 26, 2014 at 9:30 PM, Lee Elenbaas <le...@el...> wrote: > >> I agree that github pull request flow will make it easier to contribute. >> And i love the offline nature of git for my own work. >> I understand your reasons not wanting to move. It does takes time to >> learn a new system and even more to convert an existing build and test >> envirenment. >> The real benefit of git comes from developers colaboration, and as long >> as cppcms is a one man project the benefits from switching are shadowed by >> the cost. >> Consider moving the contrib folder alone (or some other part that can >> easily decoupled) as a start or a test case. >> In any case i offer my help in the process if you want to give it a go >> בתאריך 26 ביול 2014 22:48, "Artyom Beilis" <art...@ya...> כתב: >> >>> Several reasons we are still with SVN. >>> >>> 1st there are too many scripts (like nightly builds or automatic deb >>> building) that use svn. >>> 2nd I'm not that familiar with git. It takes a great deal of time to >>> convert the repository and get used to git that I'd prefer to spend on >>> code development. I know svn very-very well and it is fine source >>> control system. >>> 3rd there is always "svn-git" bridge that works quite well, so if you >>> want to contribute svn wouldn't be a problem >>> 4th it hadn't stopped anybody to send me patches so far because it >>> wasn't git. >>> >>> So not in the near future. >>> >>> Artyom Beilis >>> -------------- >>> CppCMS - C++ Web Framework: http://cppcms.com/ >>> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >>> >>> ------------------------------ >>> *From:* sergey lavrov <ccp...@gm...> >>> *To:* cpp...@li... >>> *Sent:* Saturday, July 26, 2014 6:48 PM >>> *Subject:* Re: [Cppcms-users] possible to convert to git? >>> >>> +1 for github >>> >>> >>> On Thu, Jul 24, 2014 at 6:02 PM, Ross Rogers <ros...@gm...> >>> wrote: >>> >>> Mr. Beilis, >>> >>> Have you given thought to switching to the git version control system? >>> I'd be happy to help you put your code on github as I have replicated your >>> SVN repository with git before. Personally, I find it much easier to >>> contribute to a product using the github pull-request process than talking >>> about patches on a subversion repository. >>> >>> What are your thoughts? >>> >>> - Ross >>> >>> >>> ------------------------------------------------------------------------------ >>> Want fast and easy access to all the code in your enterprise? Index and >>> search up to 200,000 lines of code with a free copy of Black Duck >>> Code Sight - the same software that powers the world's largest code >>> search on Ohloh, the Black Duck Open Hub! Try it now. >>> http://p.sf.net/sfu/bds >>> _______________________________________________ >>> Cppcms-users mailing list >>> Cpp...@li... >>> https://lists.sourceforge.net/lists/listinfo/cppcms-users >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Want fast and easy access to all the code in your enterprise? Index and >>> search up to 200,000 lines of code with a free copy of Black Duck >>> Code Sight - the same software that powers the world's largest code >>> search on Ohloh, the Black Duck Open Hub! Try it now. >>> http://p.sf.net/sfu/bds >>> >>> _______________________________________________ >>> Cppcms-users mailing list >>> Cpp...@li... >>> https://lists.sourceforge.net/lists/listinfo/cppcms-users >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Want fast and easy access to all the code in your enterprise? Index and >>> search up to 200,000 lines of code with a free copy of Black Duck >>> Code Sight - the same software that powers the world's largest code >>> search on Ohloh, the Black Duck Open Hub! Try it now. >>> http://p.sf.net/sfu/bds >>> _______________________________________________ >>> Cppcms-users mailing list >>> Cpp...@li... >>> https://lists.sourceforge.net/lists/listinfo/cppcms-users >>> >>> >> >> ------------------------------------------------------------------------------ >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
|
From: Ross R. <ros...@gm...> - 2014-07-28 16:17:13
|
For those who wish to git svn clone the repos, this is how I did it in bash:
for d in blog boost_locale cppdb dbixx framework packaging wikipp ; do
git svn clone -s --prefix=origin/ --no-minimize-url \
https://svn.code.sf.net/p/cppcms/code/$d cppcms_$d ;
done
There is one nested SVN repository under wikipp at wikipp/media/sh:
You can mirror that repo with
git svn clone -s --prefix=origin/
http://syntaxhighlighter.googlecode.com/svn/ syntaxhighlighter
Then add that repo as a submodule in wikipp:
cd wikipp/media
git submodule add /path/to/syntaxhighlighter sh
cd sh
git checkout origin/tags/1.5.1
cd ../../
git commit -a -m "Adding syntaxhighlighter version 1.5.1 as submodule"
After all those efforts, an svn co of each respective trunk matches the git
clone except for the svn/git cruft.
I've put the repos on github for my own use in the future:
blog <https://github.com/RossRogers/cppcms_blog>
boost_locale <https://github.com/RossRogers/cppcms_boost_locale>
cppdb <https://github.com/RossRogers/cppcms_cppdb>
dbixx <https://github.com/RossRogers/cppcms_dbixx>
framework <https://github.com/RossRogers/cppcms_framework>
packaging <https://github.com/RossRogers/cppcms_packaging>
wikipp <https://github.com/RossRogers/cppcms_wikipp> ( wikipp doesn't have
the syntaxhighlighter submodule stuff)
Mr. Beilis,
If you wish, I'll make my github mirrors private. Let me know.
- Ross
On Sat, Jul 26, 2014 at 9:30 PM, Lee Elenbaas <le...@el...> wrote:
> I agree that github pull request flow will make it easier to contribute.
> And i love the offline nature of git for my own work.
> I understand your reasons not wanting to move. It does takes time to learn
> a new system and even more to convert an existing build and test
> envirenment.
> The real benefit of git comes from developers colaboration, and as long as
> cppcms is a one man project the benefits from switching are shadowed by the
> cost.
> Consider moving the contrib folder alone (or some other part that can
> easily decoupled) as a start or a test case.
> In any case i offer my help in the process if you want to give it a go
> בתאריך 26 ביול 2014 22:48, "Artyom Beilis" <art...@ya...> כתב:
>
>> Several reasons we are still with SVN.
>>
>> 1st there are too many scripts (like nightly builds or automatic deb
>> building) that use svn.
>> 2nd I'm not that familiar with git. It takes a great deal of time to
>> convert the repository and get used to git that I'd prefer to spend on
>> code development. I know svn very-very well and it is fine source
>> control system.
>> 3rd there is always "svn-git" bridge that works quite well, so if you
>> want to contribute svn wouldn't be a problem
>> 4th it hadn't stopped anybody to send me patches so far because it wasn't
>> git.
>>
>> So not in the near future.
>>
>> Artyom Beilis
>> --------------
>> CppCMS - C++ Web Framework: http://cppcms.com/
>> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
>>
>> ------------------------------
>> *From:* sergey lavrov <ccp...@gm...>
>> *To:* cpp...@li...
>> *Sent:* Saturday, July 26, 2014 6:48 PM
>> *Subject:* Re: [Cppcms-users] possible to convert to git?
>>
>> +1 for github
>>
>>
>> On Thu, Jul 24, 2014 at 6:02 PM, Ross Rogers <ros...@gm...>
>> wrote:
>>
>> Mr. Beilis,
>>
>> Have you given thought to switching to the git version control system?
>> I'd be happy to help you put your code on github as I have replicated your
>> SVN repository with git before. Personally, I find it much easier to
>> contribute to a product using the github pull-request process than talking
>> about patches on a subversion repository.
>>
>> What are your thoughts?
>>
>> - Ross
>>
>>
>> ------------------------------------------------------------------------------
>> Want fast and easy access to all the code in your enterprise? Index and
>> search up to 200,000 lines of code with a free copy of Black Duck
>> Code Sight - the same software that powers the world's largest code
>> search on Ohloh, the Black Duck Open Hub! Try it now.
>> http://p.sf.net/sfu/bds
>> _______________________________________________
>> Cppcms-users mailing list
>> Cpp...@li...
>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Want fast and easy access to all the code in your enterprise? Index and
>> search up to 200,000 lines of code with a free copy of Black Duck
>> Code Sight - the same software that powers the world's largest code
>> search on Ohloh, the Black Duck Open Hub! Try it now.
>> http://p.sf.net/sfu/bds
>>
>> _______________________________________________
>> Cppcms-users mailing list
>> Cpp...@li...
>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Want fast and easy access to all the code in your enterprise? Index and
>> search up to 200,000 lines of code with a free copy of Black Duck
>> Code Sight - the same software that powers the world's largest code
>> search on Ohloh, the Black Duck Open Hub! Try it now.
>> http://p.sf.net/sfu/bds
>> _______________________________________________
>> Cppcms-users mailing list
>> Cpp...@li...
>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>
>>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
|
|
From: Lee E. <le...@el...> - 2014-07-27 04:30:24
|
I agree that github pull request flow will make it easier to contribute. And i love the offline nature of git for my own work. I understand your reasons not wanting to move. It does takes time to learn a new system and even more to convert an existing build and test envirenment. The real benefit of git comes from developers colaboration, and as long as cppcms is a one man project the benefits from switching are shadowed by the cost. Consider moving the contrib folder alone (or some other part that can easily decoupled) as a start or a test case. In any case i offer my help in the process if you want to give it a go בתאריך 26 ביול 2014 22:48, "Artyom Beilis" <art...@ya...> כתב: > Several reasons we are still with SVN. > > 1st there are too many scripts (like nightly builds or automatic deb > building) that use svn. > 2nd I'm not that familiar with git. It takes a great deal of time to > convert the repository and get used to git that I'd prefer to spend on > code development. I know svn very-very well and it is fine source control > system. > 3rd there is always "svn-git" bridge that works quite well, so if you want > to contribute svn wouldn't be a problem > 4th it hadn't stopped anybody to send me patches so far because it wasn't > git. > > So not in the near future. > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > ------------------------------ > *From:* sergey lavrov <ccp...@gm...> > *To:* cpp...@li... > *Sent:* Saturday, July 26, 2014 6:48 PM > *Subject:* Re: [Cppcms-users] possible to convert to git? > > +1 for github > > > On Thu, Jul 24, 2014 at 6:02 PM, Ross Rogers <ros...@gm...> > wrote: > > Mr. Beilis, > > Have you given thought to switching to the git version control system? > I'd be happy to help you put your code on github as I have replicated your > SVN repository with git before. Personally, I find it much easier to > contribute to a product using the github pull-request process than talking > about patches on a subversion repository. > > What are your thoughts? > > - Ross > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
|
From: Artyom B. <art...@ya...> - 2014-07-26 19:48:20
|
Several reasons we are still with SVN. 1st there are too many scripts (like nightly builds or automatic deb building) that use svn. 2nd I'm not that familiar with git. It takes a great deal of time to convert the repository and get used to git that I'd prefer to spend on code development. I know svn very-very well and it is fine source control system. 3rd there is always "svn-git" bridge that works quite well, so if you want to contribute svn wouldn't be a problem 4th it hadn't stopped anybody to send me patches so far because it wasn't git. So not in the near future. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: sergey lavrov <ccp...@gm...> >To: cpp...@li... >Sent: Saturday, July 26, 2014 6:48 PM >Subject: Re: [Cppcms-users] possible to convert to git? > > > >+1 for github > > > >On Thu, Jul 24, 2014 at 6:02 PM, Ross Rogers <ros...@gm...> wrote: > >Mr. Beilis, >> >>Have you given thought to switching to the git version control system? I'd be happy to help you put your code on github as I have replicated your SVN repository with git before. Personally, I find it much easier to contribute to a product using the github pull-request process than talking about patches on a subversion repository. >> >>What are your thoughts? >> >>- Ross >> >>------------------------------------------------------------------------------ >>Want fast and easy access to all the code in your enterprise? Index and >>search up to 200,000 lines of code with a free copy of Black Duck >>Code Sight - the same software that powers the world's largest code >>search on Ohloh, the Black Duck Open Hub! Try it now. >>http://p.sf.net/sfu/bds >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > >------------------------------------------------------------------------------ >Want fast and easy access to all the code in your enterprise? Index and >search up to 200,000 lines of code with a free copy of Black Duck >Code Sight - the same software that powers the world's largest code >search on Ohloh, the Black Duck Open Hub! Try it now. >http://p.sf.net/sfu/bds > >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: sergey l. <ccp...@gm...> - 2014-07-26 15:48:14
|
+1 for github On Thu, Jul 24, 2014 at 6:02 PM, Ross Rogers <ros...@gm...> wrote: > Mr. Beilis, > > Have you given thought to switching to the git version control system? > I'd be happy to help you put your code on github as I have replicated your > SVN repository with git before. Personally, I find it much easier to > contribute to a product using the github pull-request process than talking > about patches on a subversion repository. > > What are your thoughts? > > - Ross > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
|
From: Ross R. <ros...@gm...> - 2014-07-24 14:02:40
|
Mr. Beilis, Have you given thought to switching to the git version control system? I'd be happy to help you put your code on github as I have replicated your SVN repository with git before. Personally, I find it much easier to contribute to a product using the github pull-request process than talking about patches on a subversion repository. What are your thoughts? - Ross |
|
From: Abhishek K. <abh...@gm...> - 2014-07-24 09:17:58
|
Dear OP You didn't mention as to how exactly you used using mac-gcc... however, I am writing these steps, in case it helps for someone stuck. I had faced this exact problem. I had OSX 10.8, which contained gcc & g++, where cppcms compilation and tests worked perfectly. It was actually some apple-gcc 4.2 However, after I upgraded to OSX 10.9.4, I started facing errors. gcc and g++ were actually pointing to clang compiler. I installed gcc using "brew install gcc49", and corrected cc,gcc,c++,g++ commands to gcc-4.9 binary files, but didn't workout. I tried the same for gcc-4.6. Finally I tried it with old apple-gcc, I installed using command "brew install apple-gcc42" and this time it did work. Hope this helps someone. Regards, Abhishek |
|
From: CN <cn...@fa...> - 2014-07-22 10:17:57
|
Yes, your magic JsonRPC is loaded. Thanks a lot!
My script begin to work after rpc.get.on_result and
rpc.get.on_error are moved "inside" function init(). So, my
question can be ignored now.
Javascript to me is a language difficult to get it right :-)
--incorrect version starts--
function init(url){
rpc=new JsonRPC(url,['get'],[]);}
}
rpc.get.on_result=function(r){ alert(r); }
rpc.get.on_error=function(e){ alert(e); }
--incorrect version ends--
<html>
<head>
<title>My Title</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="json2.js"></script>
<script type="text/javascript" src="jsonrpc.js"></script>
<script type="text/javascript" src="myscript.js"></script>
</head>
<body>
<script type="text/javascript">
$(document).ready(function(){
init('<%= url %>');
rpc.get();
});
</script>
</body>
</html>
--correct version starts--
function init(url){
rpc=new JsonRPC(url,['get'],[]);}
rpc.get.on_result=function(r){ alert(r); }
rpc.get.on_error=function(e){ alert(e); }
}
Regards,
CN
On Tue, Jul 22, 2014, at 03:53 PM, Artyom Beilis wrote:
Show the full HTML...
Have you loaded the JsonRPC script from the contrib section -
the script that actually defines the JsonRPC object?
Artyom Beilis
--------------
CppCMS - C++ Web Framework: http://cppcms.com/
CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
__________________________________________________________
From: CN <cn...@fa...>
To: cpp...@li...
Sent: Tuesday, July 22, 2014 8:50 AM
Subject: Re: [Cppcms-users] Instantiate JsonRPC with dynamic
URL path
I am trying to answer my own question. This variation seems to
be working:
html:
<body onload="init('<%= url %>');rpc.get()">
myscript.js:
function init(url){
rpc=new JsonRPC(url,['get'],[]);}
rpc.get.on_result=function(r){ alert(r); }
rpc.get.on_error=function(e){ alert(e); }
}
To me, javascript is a new world yet to be explored.
Regards,
CN
On Tue, Jul 22, 2014, at 11:24 AM, Lee Elenbaas wrote:
You can still place static files at other urls (even other
domain) and have the html refer to them and use them.
If you absolutely need the js url to change you can serve
static files from cppcms app
בתאריך 21 ביול 2014 17:39, "CN" <[1]cn...@fa...> כתב:
Please pardon me for asking client question. I have no idea
what else
place I can ask for help.
I prefer to place myscript.js as an external file than to
in-line it in
HTML page.
The URL passed to JsonRPC is determined in run time. As a
result,
myscript.js can not be coded as below because "/run/time/url"
is not
static. It is volatile:
var rpc=new JsonRPC('/run/time/url',['get'],[]);
rpc.get.on_result=function(r){ alert(r); }
rpc.get.on_error=function(e){ alert(e); }
I also tried this variation:
html:
<body onload="init('<%= url %>');rpc.get()">
myscript.js:
function init(url){ rpc=new JsonRPC(url,['get'],[]); }
rpc.get.on_result=function(r){ alert(r); } //variable "rpc" is
unknown
rpc.get.on_error=function(e){ alert(e); } //variable "rpc" is
unknown
However, my browser complains that variable "rpc" is unknown.
Would someone please help me out?
Regards,
CN
--
http://www.fastmail.fm - The way an email service should be
---------------------------------------------------------------
---------------
Want fast and easy access to all the code in your enterprise?
Index and
search up to 200,000 lines of code with a free copy of Black
Duck
Code Sight - the same software that powers the world's largest
code
search on Ohloh, the Black Duck Open Hub! Try it now.
[2]http://p.sf.net/sfu/bds
_______________________________________________
Cppcms-users mailing list
[3]Cpp...@li...
[4]https://lists.sourceforge.net/lists/listinfo/cppcms-users
---------------------------------------------------------------
---------------
Want fast and easy access to all the code in your enterprise?
Index and
search up to 200,000 lines of code with a free copy of Black
Duck
Code Sight - the same software that powers the world's largest
code
search on Ohloh, the Black Duck Open Hub! Try it now.
[5]http://p.sf.net/sfu/bds
_______________________________________________
Cppcms-users mailing list
[6]Cpp...@li...
[7]https://lists.sourceforge.net/lists/listinfo/cppcms-users
References
1. mailto:cn...@fa...
2. http://p.sf.net/sfu/bds
3. mailto:Cpp...@li...
4. https://lists.sourceforge.net/lists/listinfo/cppcms-users
5. http://p.sf.net/sfu/bds
6. mailto:Cpp...@li...
7. https://lists.sourceforge.net/lists/listinfo/cppcms-users
--
http://www.fastmail.fm - Access your email from home and the web
|
|
From: Artyom B. <art...@ya...> - 2014-07-22 07:54:04
|
Show the full HTML... Have you loaded the JsonRPC script from the contrib section - the script that actually defines the JsonRPC object? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: CN <cn...@fa...> >To: cpp...@li... >Sent: Tuesday, July 22, 2014 8:50 AM >Subject: Re: [Cppcms-users] Instantiate JsonRPC with dynamic URL path > > > >I am trying to answer my own question. This variation seems to be working: > >html: ><body onload="init('<%= url %>');rpc.get()"> > >myscript.js: > >function init(url){ > rpc=new JsonRPC(url,['get'],[]);} > rpc.get.on_result=function(r){ alert(r); } > rpc.get.on_error=function(e){ alert(e); } >} > >To me, javascript is a new world yet to be explored. > >Regards, >CN > > > > >On Tue, Jul 22, 2014, at 11:24 AM, Lee Elenbaas wrote: >You can still place static files at other urls (even other domain) and have the html refer to them and use them. >>If you absolutely need the js url to change you can serve static files from cppcms app >>בתאריך 21 ביול 2014 17:39, "CN" <cn...@fa...> כתב: >>Please pardon me for asking client question. I have no idea what else >>>place I can ask for help. >>> >>>I prefer to place myscript.js as an external file than to in-line it in >>>HTML page. >>> >>>The URL passed to JsonRPC is determined in run time. As a result, >>>myscript.js can not be coded as below because "/run/time/url" is not >>>static. It is volatile: >>> >>>var rpc=new JsonRPC('/run/time/url',['get'],[]); >>>rpc.get.on_result=function(r){ alert(r); } >>>rpc.get.on_error=function(e){ alert(e); } >>> >>>I also tried this variation: >>> >>>html: >>><body onload="init('<%= url %>');rpc.get()"> >>> >>>myscript.js: >>> >>>function init(url){ rpc=new JsonRPC(url,['get'],[]); } >>>rpc.get.on_result=function(r){ alert(r); } //variable "rpc" is unknown >>>rpc.get.on_error=function(e){ alert(e); } //variable "rpc" is unknown >>> >>>However, my browser complains that variable "rpc" is unknown. >>> >>>Would someone please help me out? >>> >>>Regards, >>>CN > >-- http://www.fastmail.fm - The way an email service should be > >------------------------------------------------------------------------------ >Want fast and easy access to all the code in your enterprise? Index and >search up to 200,000 lines of code with a free copy of Black Duck >Code Sight - the same software that powers the world's largest code >search on Ohloh, the Black Duck Open Hub! Try it now. >http://p.sf.net/sfu/bds > >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: CN <cn...@fa...> - 2014-07-22 05:50:21
|
I am trying to answer my own question. This variation seems to
be working:
html:
<body onload="init('<%= url %>');rpc.get()">
myscript.js:
function init(url){
rpc=new JsonRPC(url,['get'],[]);}
rpc.get.on_result=function(r){ alert(r); }
rpc.get.on_error=function(e){ alert(e); }
}
To me, javascript is a new world yet to be explored.
Regards,
CN
On Tue, Jul 22, 2014, at 11:24 AM, Lee Elenbaas wrote:
You can still place static files at other urls (even other
domain) and have the html refer to them and use them.
If you absolutely need the js url to change you can serve
static files from cppcms app
בתאריך 21 ביול 2014 17:39, "CN" <[1]cn...@fa...> כתב:
Please pardon me for asking client question. I have no idea
what else
place I can ask for help.
I prefer to place myscript.js as an external file than to
in-line it in
HTML page.
The URL passed to JsonRPC is determined in run time. As a
result,
myscript.js can not be coded as below because "/run/time/url"
is not
static. It is volatile:
var rpc=new JsonRPC('/run/time/url',['get'],[]);
rpc.get.on_result=function(r){ alert(r); }
rpc.get.on_error=function(e){ alert(e); }
I also tried this variation:
html:
<body onload="init('<%= url %>');rpc.get()">
myscript.js:
function init(url){ rpc=new JsonRPC(url,['get'],[]); }
rpc.get.on_result=function(r){ alert(r); } //variable "rpc" is
unknown
rpc.get.on_error=function(e){ alert(e); } //variable "rpc" is
unknown
However, my browser complains that variable "rpc" is unknown.
Would someone please help me out?
Regards,
CN
References
1. mailto:cn...@fa...
--
http://www.fastmail.fm - The way an email service should be
|
|
From: Lee E. <le...@el...> - 2014-07-22 03:24:24
|
You can still place static files at other urls (even other domain) and have
the html refer to them and use them.
If you absolutely need the js url to change you can serve static files from
cppcms app
בתאריך 21 ביול 2014 17:39, "CN" <cn...@fa...> כתב:
> Please pardon me for asking client question. I have no idea what else
> place I can ask for help.
>
> I prefer to place myscript.js as an external file than to in-line it in
> HTML page.
>
> The URL passed to JsonRPC is determined in run time. As a result,
> myscript.js can not be coded as below because "/run/time/url" is not
> static. It is volatile:
>
> var rpc=new JsonRPC('/run/time/url',['get'],[]);
> rpc.get.on_result=function(r){ alert(r); }
> rpc.get.on_error=function(e){ alert(e); }
>
> I also tried this variation:
>
> html:
> <body onload="init('<%= url %>');rpc.get()">
>
> myscript.js:
>
> function init(url){ rpc=new JsonRPC(url,['get'],[]); }
> rpc.get.on_result=function(r){ alert(r); } //variable "rpc" is unknown
> rpc.get.on_error=function(e){ alert(e); } //variable "rpc" is unknown
>
> However, my browser complains that variable "rpc" is unknown.
>
> Would someone please help me out?
>
> Regards,
> CN
>
> --
> http://www.fastmail.fm - A fast, anti-spam email service.
>
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
|
|
From: CN <cn...@fa...> - 2014-07-21 14:39:25
|
Please pardon me for asking client question. I have no idea what else
place I can ask for help.
I prefer to place myscript.js as an external file than to in-line it in
HTML page.
The URL passed to JsonRPC is determined in run time. As a result,
myscript.js can not be coded as below because "/run/time/url" is not
static. It is volatile:
var rpc=new JsonRPC('/run/time/url',['get'],[]);
rpc.get.on_result=function(r){ alert(r); }
rpc.get.on_error=function(e){ alert(e); }
I also tried this variation:
html:
<body onload="init('<%= url %>');rpc.get()">
myscript.js:
function init(url){ rpc=new JsonRPC(url,['get'],[]); }
rpc.get.on_result=function(r){ alert(r); } //variable "rpc" is unknown
rpc.get.on_error=function(e){ alert(e); } //variable "rpc" is unknown
However, my browser complains that variable "rpc" is unknown.
Would someone please help me out?
Regards,
CN
--
http://www.fastmail.fm - A fast, anti-spam email service.
|