cppcms-users Mailing List for CppCMS C++ Web Framework (Page 50)
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: Petr J. <ele...@ex...> - 2013-07-14 22:01:09
|
Suggest you use mapper(value), instead of mapper(key, value) for
index-style pages. Saves typing and is more clear, imo.
ie. call to url("") will create a link to the root(the so called "index"
page) of the current application.
Petr
On 15/07/2013 7:53 AM, Petr Janda wrote:
> And calling url("/bar/index") doesn't work? It should if Bar is a
> sub-application.
>
> The URL helper can take an absolute path, provided that you're mapping
> is set up correctly.
>
> For example:
>
> MyMainApp/SubApp1/show
> MyMainApp/SubApp2/update
>
> In the template of SubApp1::show, you can call url("/SubApp2/update")
> provided that your SubApps are mounted correctly and mapper is properly
> set up in each sub application.
>
>
> On 15/07/2013 6:33 AM, Marcel Hellwig wrote:
>> On 14.07.2013 22:31, Petr Janda wrote:
>>> Why are you trying to call rpc server function via "url" helper?
>> Because I have a template where I'd like to call some rpc methods. The
>> current status is hard-coded links, but I don't like that. If I change
>> any url, everything else has to be changed, that's sad :/
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>>
>>
>>
>> _______________________________________________
>> Cppcms-users mailing list
>> Cpp...@li...
>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>
>
>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
Please use PGP to encrypt your email to ensure our privacy is respected.
|
|
From: Petr J. <ele...@ex...> - 2013-07-14 21:53:22
|
And calling url("/bar/index") doesn't work? It should if Bar is a
sub-application.
The URL helper can take an absolute path, provided that you're mapping
is set up correctly.
For example:
MyMainApp/SubApp1/show
MyMainApp/SubApp2/update
In the template of SubApp1::show, you can call url("/SubApp2/update")
provided that your SubApps are mounted correctly and mapper is properly
set up in each sub application.
On 15/07/2013 6:33 AM, Marcel Hellwig wrote:
> On 14.07.2013 22:31, Petr Janda wrote:
>> Why are you trying to call rpc server function via "url" helper?
> Because I have a template where I'd like to call some rpc methods. The
> current status is hard-coded links, but I don't like that. If I change
> any url, everything else has to be changed, that's sad :/
>
>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
Please use PGP to encrypt your email to ensure our privacy is respected.
|
|
From: Marcel H. <ke...@co...> - 2013-07-14 20:34:09
|
On 14.07.2013 22:31, Petr Janda wrote: > Why are you trying to call rpc server function via "url" helper? Because I have a template where I'd like to call some rpc methods. The current status is hard-coded links, but I don't like that. If I change any url, everything else has to be changed, that's sad :/ |
|
From: Petr J. <ele...@ex...> - 2013-07-14 20:31:50
|
Why are you trying to call rpc server function via "url" helper? On 15/07/2013 12:22 AM, Marcel Hellwig wrote: > On 14.07.2013 16:01, Artyom Beilis wrote: >> The url/mapping works for a specific application hierarchy. And each >> application hierarchy is mounted to a specific mount point. >> So you can't access to the url mapper of different hierarchy. > Hmm, is there a way to specify application wide mappings? >> >> You can create app3 that would have app1 and app2 connected via /foo >> and /bar. > Not possible that easy. App1 is sync, and app2 is a rpc_server, tell me > how ;) But I think that would end in a mess. >> So to make two applications to share the mapping they should be in one >> hierarchy. >> >> Artyom Beilis >> -------------- >> CppCMS - C++ Web Framework: http://cppcms.com/ >> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Please use PGP to encrypt your email to ensure our privacy is respected. |
|
From: Marcel H. <ke...@co...> - 2013-07-14 14:22:54
|
On 14.07.2013 16:01, Artyom Beilis wrote: > The url/mapping works for a specific application hierarchy. And each > application hierarchy is mounted to a specific mount point. > So you can't access to the url mapper of different hierarchy. Hmm, is there a way to specify application wide mappings? > > You can create app3 that would have app1 and app2 connected via /foo > and /bar. Not possible that easy. App1 is sync, and app2 is a rpc_server, tell me how ;) But I think that would end in a mess. > So to make two applications to share the mapping they should be in one > hierarchy. > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
|
From: Artyom B. <art...@ya...> - 2013-07-14 14:01:38
|
The url/mapping works for a specific application hierarchy. And each application hierarchy is mounted to a specific mount point. So you can't access to the url mapper of different hierarchy. You can create app3 that would have app1 and app2 connected via /foo and /bar. So to make two applications to share the mapping they should be in one hierarchy. 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: Sunday, July 14, 2013 3:53 PM >Subject: [Cppcms-users] mapping across mount_points > > >Hi *, > >I get a invalid url everytime I try the following: > >App1 in mount_point "/foo" with mapped url "index" >App2 in mount_point "/bar" > >Now I'd like to call url("index") in App2, but it does not work. >Is there a workaround, fix, bug? > >Regards > >------------------------------------------------------------------------------ >See everything from the browser to the database with AppDynamics >Get end-to-end visibility with application monitoring from AppDynamics >Isolate bottlenecks and diagnose root cause in seconds. >Start your free trial of AppDynamics Pro today! >http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Marcel H. <ke...@co...> - 2013-07-14 12:54:04
|
Hi *,
I get a invalid url everytime I try the following:
App1 in mount_point "/foo" with mapped url "index"
App2 in mount_point "/bar"
Now I'd like to call url("index") in App2, but it does not work.
Is there a workaround, fix, bug?
Regards
|
|
From: CN L. <cn...@gr...> - 2013-07-13 16:08:31
|
Hi!
CppBlog compiles with these two commands added to CMakeLists.txt:
find_package(ImageMagick COMPONENTS Magick++)
include_directories(${ImageMagick_INCLUDE_DIRS})
Regards,
CN
----- Original Message -----
From: CN Liu
Sent: 07/13/13 05:59 PM
To: cpp...@li...
Subject: Re: [Cppcms-users] Fail to build cppblog
----- Original Message -----
My first advice is not to set CMAKE_INCLUDE_PATH by yourself, let cmake do the thing. Next, see if you find something in the CMakeLists.txt that will find imagemagick like
find_package(ImageMagick COMPONENTS Magick++)
With your command added, cmake appears to have successfully found the package. Message follows:
-- Found ImageMagick: /usr/lib/i386-linux-gnu/libMagick++.so (found version "6.7.7-10")
However, "Makefile" still does not include path "/usr/include/ImageMagick/" which holds Magick++.h.
Regards,
CN
|
|
From: CN L. <cn...@gr...> - 2013-07-13 09:59:26
|
----- Original Message ----- My first advice is not to set CMAKE_INCLUDE_PATH by yourself, let cmake do the thing. Next, see if you find something in the CMakeLists.txt that will find imagemagick like find_package(ImageMagick COMPONENTS Magick++) With your command added, cmake appears to have successfully found the package. Message follows: -- Found ImageMagick: /usr/lib/i386-linux-gnu/libMagick++.so (found version "6.7.7-10") However, "Makefile" still does not include path "/usr/include/ImageMagick/" which holds Magick++.h. Regards, CN |
|
From: CN L. <cn...@gr...> - 2013-07-13 09:48:35
|
Debian package "imagemagick" had also been installed. I did not mention it in my original post as I thought it was irrevelant to the error messages. /usr/include/ImageMagick/Magick++.h has been there after libmagick++-dev was installed. I have had a hard time figuring out the rationale of CMakeLists.txt. Regards, CN ----- Original Message ----- From: Marcel Hellwig Sent: 07/13/13 05:34 PM To: cpp...@li... Subject: Re: [Cppcms-users] Fail to build cppblog On 13.07.2013 11:13, CN Liu wrote: Both Debian packages libmagick++-dev and graphicsmagick++1-dev are installed. both /usr/include/ImageMagick/Magick++.h /usr/include/GraphicsMagick/Magick++.h exist. cmake .. cmake -DCMAKE_INCLUDE_PATH=/usr/include/ImageMagick .. cmake -DCMAKE_INCLUDE_PATH=/usr/include/GraphicsMagick .. All the above commands yield the following result: -- The C compiler identification is GNU 4.4.6 -- The CXX compiler identification is GNU 4.4.6 -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") -- checking for one of the modules 'ImageMagick++;GraphicsMagick++' -- Configuring done -- Generating done -- Build files have been written to: /home/john/src/cppcms.svn/blog/trunk/build Make yields the following messages: [ 3%] Generating contendend.cpp Scanning dependencies of target contendend [ 6%] Building CXX object CMakeFiles/contendend.dir/contendend.cpp.o Linking CXX shared library libcontendend.so [ 6%] Built target contendend [ 10%] Generating admin.cpp [ 13%] Generating feed.cpp Scanning dependencies of target cppblog [ 16%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/master.cpp.o [ 20%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/post.cpp.o [ 23%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/page.cpp.o [ 26%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/blog.cpp.o [ 30%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/summary.cpp.o [ 33%] Building CXX object CMakeFiles/cppblog.dir/apps/feed/feed.cpp.o [ 36%] Building CXX object CMakeFiles/cppblog.dir/apps/basic_master.cpp.o In file included from /usr/include/asm/sigcontext.h:5, from /usr/include/i386-linux-gnu/bits/sigcontext.h:28, from /usr/include/signal.h:339, from /usr/include/i386-linux-gnu/sys/wait.h:31, from /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/basic_master.cpp:13: /usr/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders " [ 40%] Building CXX object CMakeFiles/cppblog.dir/apps/captcha.cpp.o /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/captcha.cpp:10:22: error: Magick++.h: No such file or directory /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/captcha.cpp:154: error: ‘Magick’ was not declared in this scope /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/captcha.cpp:154: error: template argument 1 is invalid ... and more. Can someone help? Best regards, CN See what gcc tells you?error: Magick++.h: No such file or directory You have to install ImageMagick... just 1 Minute of google.... :/ |
|
From: Marcel H. <ke...@co...> - 2013-07-13 09:39:00
|
On 13.07.2013 11:13, CN Liu wrote: > > Both Debian packages libmagick++-dev and graphicsmagick++1-dev are > installed. both /usr/include/ImageMagick/Magick++.h > /usr/include/GraphicsMagick/Magick++.h exist. > > > > cmake .. > > cmake -DCMAKE_INCLUDE_PATH=/usr/include/ImageMagick .. > > cmake -DCMAKE_INCLUDE_PATH=/usr/include/GraphicsMagick .. > > > > All the above commands yield the following result: > > > > -- The C compiler identification is GNU 4.4.6 > -- The CXX compiler identification is GNU 4.4.6 > -- Check for working C compiler: /usr/bin/gcc > -- Check for working C compiler: /usr/bin/gcc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") > -- checking for one of the modules 'ImageMagick++;GraphicsMagick++' > -- Configuring done > -- Generating done > -- Build files have been written to: > /home/john/src/cppcms.svn/blog/trunk/build > > > > Make yields the following messages: > > > > [ 3%] Generating contendend.cpp > Scanning dependencies of target contendend > [ 6%] Building CXX object CMakeFiles/contendend.dir/contendend.cpp.o > Linking CXX shared library libcontendend.so > [ 6%] Built target contendend > [ 10%] Generating admin.cpp > [ 13%] Generating feed.cpp > Scanning dependencies of target cppblog > [ 16%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/master.cpp.o > [ 20%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/post.cpp.o > [ 23%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/page.cpp.o > [ 26%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/blog.cpp.o > [ 30%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/summary.cpp.o > [ 33%] Building CXX object CMakeFiles/cppblog.dir/apps/feed/feed.cpp.o > [ 36%] Building CXX object CMakeFiles/cppblog.dir/apps/basic_master.cpp.o > In file included from /usr/include/asm/sigcontext.h:5, > from /usr/include/i386-linux-gnu/bits/sigcontext.h:28, > from /usr/include/signal.h:339, > from /usr/include/i386-linux-gnu/sys/wait.h:31, > from > /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/basic_master.cpp:13: > /usr/include/linux/types.h:13:2: warning: #warning "Attempt to use > kernel headers from user space, see > http://kernelnewbies.org/KernelHeaders" > [ 40%] Building CXX object CMakeFiles/cppblog.dir/apps/captcha.cpp.o > /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/captcha.cpp:10:22: > error: Magick++.h: No such file or directory > /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/captcha.cpp:154: > error: 'Magick' was not declared in this scope > /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/captcha.cpp:154: > error: template argument 1 is invalid > > > > ... and more. > > > > Can someone help? > > > > Best regards, > > CN > > Sorry, didn't read your first lines. My first advice is not to set CMAKE_INCLUDE_PATH by yourself, let cmake do the thing. Next, see if you find something in the CMakeLists.txt that will find imagemagick like > |find_package(ImageMagick COMPONENTS Magick++)| |
|
From: Marcel H. <ke...@co...> - 2013-07-13 09:34:39
|
On 13.07.2013 11:13, CN Liu wrote: > > Both Debian packages libmagick++-dev and graphicsmagick++1-dev are > installed. both /usr/include/ImageMagick/Magick++.h > /usr/include/GraphicsMagick/Magick++.h exist. > > > > cmake .. > > cmake -DCMAKE_INCLUDE_PATH=/usr/include/ImageMagick .. > > cmake -DCMAKE_INCLUDE_PATH=/usr/include/GraphicsMagick .. > > > > All the above commands yield the following result: > > > > -- The C compiler identification is GNU 4.4.6 > -- The CXX compiler identification is GNU 4.4.6 > -- Check for working C compiler: /usr/bin/gcc > -- Check for working C compiler: /usr/bin/gcc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") > -- checking for one of the modules 'ImageMagick++;GraphicsMagick++' > -- Configuring done > -- Generating done > -- Build files have been written to: > /home/john/src/cppcms.svn/blog/trunk/build > > > > Make yields the following messages: > > > > [ 3%] Generating contendend.cpp > Scanning dependencies of target contendend > [ 6%] Building CXX object CMakeFiles/contendend.dir/contendend.cpp.o > Linking CXX shared library libcontendend.so > [ 6%] Built target contendend > [ 10%] Generating admin.cpp > [ 13%] Generating feed.cpp > Scanning dependencies of target cppblog > [ 16%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/master.cpp.o > [ 20%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/post.cpp.o > [ 23%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/page.cpp.o > [ 26%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/blog.cpp.o > [ 30%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/summary.cpp.o > [ 33%] Building CXX object CMakeFiles/cppblog.dir/apps/feed/feed.cpp.o > [ 36%] Building CXX object CMakeFiles/cppblog.dir/apps/basic_master.cpp.o > In file included from /usr/include/asm/sigcontext.h:5, > from /usr/include/i386-linux-gnu/bits/sigcontext.h:28, > from /usr/include/signal.h:339, > from /usr/include/i386-linux-gnu/sys/wait.h:31, > from > /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/basic_master.cpp:13: > /usr/include/linux/types.h:13:2: warning: #warning "Attempt to use > kernel headers from user space, see > http://kernelnewbies.org/KernelHeaders" > [ 40%] Building CXX object CMakeFiles/cppblog.dir/apps/captcha.cpp.o > /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/captcha.cpp:10:22: > error: Magick++.h: No such file or directory > /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/captcha.cpp:154: > error: 'Magick' was not declared in this scope > /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/captcha.cpp:154: > error: template argument 1 is invalid > > > > ... and more. > > > > Can someone help? > > > > Best regards, > > CN > > See what gcc tells you? > error: Magick++.h: No such file or directory You have to install ImageMagick... just 1 Minute of google.... :/ |
|
From: CN L. <cn...@gr...> - 2013-07-13 09:26:33
|
Both Debian packages libmagick++-dev and graphicsmagick++1-dev are installed. both /usr/include/ImageMagick/Magick++.h /usr/include/GraphicsMagick/Magick++.h exist. cmake .. cmake -DCMAKE_INCLUDE_PATH=/usr/include/ImageMagick .. cmake -DCMAKE_INCLUDE_PATH=/usr/include/GraphicsMagick .. All the above commands yield the following result: -- The C compiler identification is GNU 4.4.6 -- The CXX compiler identification is GNU 4.4.6 -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") -- checking for one of the modules 'ImageMagick++;GraphicsMagick++' -- Configuring done -- Generating done -- Build files have been written to: /home/john/src/cppcms.svn/blog/trunk/build Make yields the following messages: [ 3%] Generating contendend.cpp Scanning dependencies of target contendend [ 6%] Building CXX object CMakeFiles/contendend.dir/contendend.cpp.o Linking CXX shared library libcontendend.so [ 6%] Built target contendend [ 10%] Generating admin.cpp [ 13%] Generating feed.cpp Scanning dependencies of target cppblog [ 16%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/master.cpp.o [ 20%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/post.cpp.o [ 23%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/page.cpp.o [ 26%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/blog.cpp.o [ 30%] Building CXX object CMakeFiles/cppblog.dir/apps/blog/summary.cpp.o [ 33%] Building CXX object CMakeFiles/cppblog.dir/apps/feed/feed.cpp.o [ 36%] Building CXX object CMakeFiles/cppblog.dir/apps/basic_master.cpp.o In file included from /usr/include/asm/sigcontext.h:5, from /usr/include/i386-linux-gnu/bits/sigcontext.h:28, from /usr/include/signal.h:339, from /usr/include/i386-linux-gnu/sys/wait.h:31, from /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/basic_master.cpp:13: /usr/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [ 40%] Building CXX object CMakeFiles/cppblog.dir/apps/captcha.cpp.o /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/captcha.cpp:10:22: error: Magick++.h: No such file or directory /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/captcha.cpp:154: error: ‘Magick’ was not declared in this scope /home/postgres/www/resource/src/cppcms.svn/blog/trunk/apps/captcha.cpp:154: error: template argument 1 is invalid ... and more. Can someone help? Best regards, CN |
|
From: Marcel H. <ke...@co...> - 2013-07-12 08:15:31
|
On 12.07.2013 09:56, la...@sa... wrote: > Nonrepresentable section on output Have you googled your problem? http://stackoverflow.com/questions/1521859/nonrepresentable-section-on-output-error-during-linking-on-linux This is a mailinglist regarding cppcms/cppdb not c++ specific errors, sorry. Regards |
|
From: <la...@sa...> - 2013-07-12 07:56:37
|
Hi,
i had to cross compile the sqlite lib first ... now it creates the lib,
but ends with an error,
[MODUSAT@LOCALHOST CPPDB-TRUNK]$ CMAKE -DCMAKE_INSTALL_PREFIX=/USR
-DCMAKE_SYSTEM_NAME=LINUX -DCMAKE_SYSTEM_PROCESSOR=ARM
-DCMAKE_C_COMPILER=/HOME/COMMON/CODESOURCERY/SOURCERY_G++_LITE/BIN/ARM-NONE-LINUX-GNUEABI-GCC -DCMAKE_CXX_COMPILER=/HOME/COMMON/CODESOURCERY/SOURCERY_G++_LITE/BIN/ARM-NONE-LINUX-GNUEABI-G++ -DCMAKE_FIND_ROOT_PATH=/HOME/COMMON/CODESOURCERY/SOURCERY_G++_LITE/ARM-NONE-LINUX-GNUEABI
-DSQLITE3_PATH=/HOME/COMMON/SQLITE/SQLITE
-DSQLITE3_LIB=/HOME/COMMON/SQLITE/SQLITEINSTALL/LIB/LIBSQLITE3.A
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler:
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc
-- Check for working C compiler:
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc
-- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler:
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++
-- Check for working CXX compiler:
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++
-- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test CPPDB_HAS_GCC_SYNC
-- Performing Test CPPDB_HAS_GCC_SYNC - Success
-- Performing Test CPPDB_HAVE_GCC_BITS_EXCHANGE_AND_ADD
-- Performing Test CPPDB_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed
-- Performing Test CPPDB_HAVE_GCC_EXT_EXCHANGE_AND_ADD
-- Performing Test CPPDB_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success
-- Performing Test CPPDB_HAVE_FREEBSD_ATOMIC
-- Performing Test CPPDB_HAVE_FREEBSD_ATOMIC - Failed
-- Performing Test CPPDB_HAVE_SOLARIS_ATOMIC
-- Performing Test CPPDB_HAVE_SOLARIS_ATOMIC - Failed
-- Performing Test CPPDB_HAVE_MAC_OS_X_ATOMIC
-- Performing Test CPPDB_HAVE_MAC_OS_X_ATOMIC - Failed
-- odbc library was not found, disabling odbc backend
-- libpq not found, disableing postgresql backend
-- mysqlclient not found, disableing mysql backend
-- Configuring done
-- Generating done
-- Build files have been written to: /home/Modusat/cppdb-trunk
[MODUSAT@LOCALHOST CPPDB-TRUNK]$ MAKE
Scanning dependencies of target cppdb
[ 4%] Building CXX object CMakeFiles/cppdb.dir/src/utils.cpp.o
[ 8%] Building CXX object CMakeFiles/cppdb.dir/src/mutex.cpp.o
[ 12%] Building CXX object CMakeFiles/cppdb.dir/src/driver_manager.cpp.o
[ 16%] Building CXX object CMakeFiles/cppdb.dir/src/conn_manager.cpp.o
[ 20%] Building CXX object CMakeFiles/cppdb.dir/src/shared_object.cpp.o
[ 24%] Building CXX object CMakeFiles/cppdb.dir/src/pool.cpp.o
[ 28%] Building CXX object CMakeFiles/cppdb.dir/src/backend.cpp.o
[ 32%] Building CXX object CMakeFiles/cppdb.dir/src/frontend.cpp.o
[ 36%] Building CXX object CMakeFiles/cppdb.dir/src/atomic_counter.cpp.o
Linking CXX shared library libcppdb.so
[ 36%] Built target cppdb
Scanning dependencies of target cppdb-static
[ 40%] Building CXX object CMakeFiles/cppdb-static.dir/src/utils.cpp.o
[ 44%] Building CXX object CMakeFiles/cppdb-static.dir/src/mutex.cpp.o
[ 48%] Building CXX object
CMakeFiles/cppdb-static.dir/src/driver_manager.cpp.o
[ 52%] Building CXX object
CMakeFiles/cppdb-static.dir/src/conn_manager.cpp.o
[ 56%] Building CXX object
CMakeFiles/cppdb-static.dir/src/shared_object.cpp.o
[ 60%] Building CXX object CMakeFiles/cppdb-static.dir/src/pool.cpp.o
[ 64%] Building CXX object CMakeFiles/cppdb-static.dir/src/backend.cpp.o
[ 68%] Building CXX object CMakeFiles/cppdb-static.dir/src/frontend.cpp.o
[ 72%] Building CXX object
CMakeFiles/cppdb-static.dir/src/atomic_counter.cpp.o
Linking CXX static library libcppdb.a
[ 72%] Built target cppdb-static
Scanning dependencies of target cppdb_sqlite3
[ 76%] Building CXX object
CMakeFiles/cppdb_sqlite3.dir/drivers/sqlite3_backend.cpp.o
Linking CXX shared library libcppdb_sqlite3.so
[ 76%] Built target cppdb_sqlite3
Scanning dependencies of target cppdb_sqlite3-static
[ 80%] Building CXX object
CMakeFiles/cppdb_sqlite3-static.dir/drivers/sqlite3_backend.cpp.o
Linking CXX static library libcppdb_sqlite3.a
[ 80%] Built target cppdb_sqlite3-static
Scanning dependencies of target example
[ 84%] Building CXX object CMakeFiles/example.dir/examples/example1.cpp.o
Linking CXX executable example
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: example: hidden symbol `__sync_add_and_fetch_4' in /home/common/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/libgcc.a(linux-atomic.o) is referenced
by
DSO
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section
on
output
collect2: ld returned 1 exit status
make[2]: *** [example] Error 1
make[1]: *** [CMakeFiles/example.dir/all] Error 2
make: *** [all] Error 2
[Modusat@localhost cppdb-trunk]$
Quoting Artyom Beilis <art...@ya...>:
> You are cross compiling... Cross compiling with cmake is done using
> special toolchanin file. See what I had written before and google
> for "cmake cross compilation"
>
> You are doing it wrong.
>
> Artyom Beilis
> --------------
> CppCMS - C++ Web Framework: http://cppcms.com/
> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
>
>>
>> -------------------------
>> FROM: "la...@sa..." <la...@sa...>
>> TO: cpp...@li...
>> SENT: Thursday, July 11, 2013 4:22 PM
>> SUBJECT: Re: [Cppcms-users] CPPDB compile LIB
>>
>> Hi,
>> thanks for the answer ....
>> Now having a strange error for sqlite,
>>
>> CMAKE -DCMAKE_INSTALL_PREFIX=/USR
>> -DCMAKE_C_COMPILER=/HOME/COMMON/CODESOURCERY/SOURCERY_G++_LITE/BIN/ARM-NONE-LINUX-GNUEABI-GCC -DCMAKE_CXX_COMPILER=/HOME/COMMON/CODESOURCERY/SOURCERY_G++_LITE/BIN/ARM-NONE-LINUX-GNUEABI-G++
>> -DSQLITE3_PATH=/HOME/COMMON/TOOLS/SQLLITE/INSTALLATIONARM/INCLUDE
>>
>> -- The C compiler identification is GNU
>> -- The CXX compiler identification is GNU
>> -- Check for working C compiler:
>> /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc
>> -- Check for working C compiler:
>> /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc
>> -- works
>> -- Detecting C compiler ABI info
>> -- Detecting C compiler ABI info - done
>> -- Check for working CXX compiler:
>> /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++
>> -- Check for working CXX compiler:
>> /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++
>> -- works
>> -- Detecting CXX compiler ABI info
>> -- Detecting CXX compiler ABI info - done
>> -- Performing Test CPPDB_HAS_GCC_SYNC
>> -- Performing Test CPPDB_HAS_GCC_SYNC - Success
>> -- Performing Test CPPDB_HAVE_GCC_BITS_EXCHANGE_AND_ADD
>> -- Performing Test CPPDB_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed
>> -- Performing Test CPPDB_HAVE_GCC_EXT_EXCHANGE_AND_ADD
>> -- Performing Test CPPDB_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success
>> -- Performing Test CPPDB_HAVE_FREEBSD_ATOMIC
>> -- Performing Test CPPDB_HAVE_FREEBSD_ATOMIC - Failed
>> -- Performing Test CPPDB_HAVE_SOLARIS_ATOMIC
>> -- Performing Test CPPDB_HAVE_SOLARIS_ATOMIC - Failed
>> -- Performing Test CPPDB_HAVE_MAC_OS_X_ATOMIC
>> -- Performing Test CPPDB_HAVE_MAC_OS_X_ATOMIC - Failed
>> -- odbc library was not found, disabling odbc backend
>> -- libpq not found, disableing postgresql backend
>> -- mysqlclient not found, disableing mysql backend
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to: /home/Modusat/cppdb-trunk
>>
>> [MODUSAT@LOCALHOST CPPDB-TRUNK]$ MAKE
>>
>> Scanning dependencies of target cppdb
>> [ 4%] Building CXX object CMakeFiles/cppdb.dir/src/utils.cpp.o
>> [ 8%] Building CXX object CMakeFiles/cppdb.dir/src/mutex.cpp.o
>> [ 12%] Building CXX object
>> CMakeFiles/cppdb.dir/src/driver_manager.cpp.o
>> [ 16%] Building CXX object
>> CMakeFiles/cppdb.dir/src/conn_manager.cpp.o
>> [ 20%] Building CXX object
>> CMakeFiles/cppdb.dir/src/shared_object.cpp.o
>> [ 24%] Building CXX object CMakeFiles/cppdb.dir/src/pool.cpp.o
>> [ 28%] Building CXX object CMakeFiles/cppdb.dir/src/backend.cpp.o
>> [ 32%] Building CXX object
>> CMakeFiles/cppdb.dir/src/frontend.cpp.o
>> [ 36%] Building CXX object
>> CMakeFiles/cppdb.dir/src/atomic_counter.cpp.o
>> Linking CXX shared library libcppdb.so
>> [ 36%] Built target cppdb
>> Scanning dependencies of target cppdb-static
>> [ 40%] Building CXX object
>> CMakeFiles/cppdb-static.dir/src/utils.cpp.o
>> [ 44%] Building CXX object
>> CMakeFiles/cppdb-static.dir/src/mutex.cpp.o
>> [ 48%] Building CXX object
>> CMakeFiles/cppdb-static.dir/src/driver_manager.cpp.o
>> [ 52%] Building CXX object
>> CMakeFiles/cppdb-static.dir/src/conn_manager.cpp.o
>> [ 56%] Building CXX object
>> CMakeFiles/cppdb-static.dir/src/shared_object.cpp.o
>> [ 60%] Building CXX object
>> CMakeFiles/cppdb-static.dir/src/pool.cpp.o
>> [ 64%] Building CXX object
>> CMakeFiles/cppdb-static.dir/src/backend.cpp.o
>> [ 68%] Building CXX object
>> CMakeFiles/cppdb-static.dir/src/frontend.cpp.o
>> [ 72%] Building CXX object
>> CMakeFiles/cppdb-static.dir/src/atomic_counter.cpp.o
>> Linking CXX static library libcppdb.a
>> [ 72%] Built target cppdb-static
>> Scanning dependencies of target cppdb_sqlite3
>> [ 76%] Building CXX object
>> CMakeFiles/cppdb_sqlite3.dir/drivers/sqlite3_backend.cpp.o
>> Linking CXX shared library libcppdb_sqlite3.so
>>
>> /home/common/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find
>> -lsqlite3
>> collect2: ld returned 1 exit status
>> make[2]: *** [libcppdb_sqlite3.so.0.3.1] Error 1
>> make[1]: *** [CMakeFiles/cppdb_sqlite3.dir/all] Error 2
>> make: *** [all] Error 2
>> [Modusat@localhost cppdb-trunk]$ make install
>> [ 36%] Built target cppdb
>> [ 72%] Built target cppdb-static
>> Linking CXX shared library libcppdb_sqlite3.so
>>
>> /home/common/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find
>> -lsqlite3
>> collect2: ld returned 1 exit status
>> make[2]: *** [libcppdb_sqlite3.so.0.3.1] Error 1
>> make[1]: *** [CMakeFiles/cppdb_sqlite3.dir/all] Error 2
>> make: *** [all] Error 2
>>
>>
>>
>>
>>
>>
>> Quoting Marcel Hellwig <ke...@co...>:
>>> On 11.07.2013 13:31, Marcel Hellwig wrote:
>>>> On 11.07.2013 13:29, la...@sa... wrote:> Hi, did this way:
>>>> but gives an error cmake -DCMAKE_INSTALL_PREFIX=/usr
>>>> -DCMAKE_C_COMPILER =
>>>> /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc -DCMAKE_CXX_COMPILER = /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++ Parse error in command line argument: -DCMAKE_C_COMPILER Should be: VAR:type=value CMake Error: No cmake scrpt provided. CMake Error: Problem processing arguments.
>>>> Aborting.
>>>> get ride of whitespaces! D_CMAKE_C_COMPILER=YOURPATH
>>> sorry, of course without the first underscore, as Artyom said
>>>>
>>>>
>>>> ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today!
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>>>>
>>>> _______________________________________________ Cppcms-users
>>>> mailing list
>>>> Cpp...@li...://lists.sourceforge.net/lists/listinfo/cppcms-users
>>>
>>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from
>> AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Cppcms-users mailing list
>> Cpp...@li...
>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>
>>
>>
>>
>>
>
>
>
|
|
From: nerdux <ne...@ne...> - 2013-07-11 15:35:42
|
Hi... CPPCMS 1.0.4 won't compile with Ubuntu 12.04.2 LTS, dependencies satisfied, everything updated, uname -a gives: Linux ns1 3.2.0-23-virtual #36-Ubuntu SMP Tue Apr 10 22:29:03 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Scanning dependencies of target tc_skin_b [ 69%] Building CXX object CMakeFiles/tc_skin_b.dir/tc_skin_b.cpp.o Linking CXX shared library libtc_skin_b.so [ 69%] Built target tc_skin_b Scanning dependencies of target tc_test [ 69%] Building CXX object CMakeFiles/tc_test.dir/tests/tc_test.cpp.o Linking CXX executable tc_test [ 69%] Built target tc_test Scanning dependencies of target url_mapper_test [ 69%] Building CXX object CMakeFiles/url_mapper_test.dir/tests/url_mapper_test.cpp.o Linking CXX executable url_mapper_test [ 69%] Built target url_mapper_test Scanning dependencies of target xss_test [ 70%] Building CXX object CMakeFiles/xss_test.dir/tests/xss_test.cpp.o c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. make[2]: *** [CMakeFiles/xss_test.dir/tests/xss_test.cpp.o] Error 4 make[1]: *** [CMakeFiles/xss_test.dir/all] Error 2 make: *** [all] Error 2 What should I do now? Regards, Mario |
|
From: Artyom B. <art...@ya...> - 2013-07-11 13:48:47
|
You are cross compiling... Cross compiling with cmake is done using special toolchanin file. See what I had written before and google for "cmake cross compilation" You are doing it wrong. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: "la...@sa..." <la...@sa...> >To: cpp...@li... >Sent: Thursday, July 11, 2013 4:22 PM >Subject: Re: [Cppcms-users] CPPDB compile LIB > > > > >Hi, >thanks for the answer .... >Now having a strange error for sqlite, > >cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_COMPILER=/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc -DCMAKE_CXX_COMPILER=/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++ -DSQLITE3_PATH=/home/common/Tools/SQLLite/InstallationArm/include > >-- The C compiler identification is GNU >-- The CXX compiler identification is GNU >-- Check for working C compiler: /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc >-- Check for working C compiler: /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc -- works >-- Detecting C compiler ABI info >-- Detecting C compiler ABI info - done >-- Check for working CXX compiler: /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++ >-- Check for working CXX compiler: /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++ -- works >-- Detecting CXX compiler ABI info >-- Detecting CXX compiler ABI info - done >-- Performing Test CPPDB_HAS_GCC_SYNC >-- Performing Test CPPDB_HAS_GCC_SYNC - Success >-- Performing Test CPPDB_HAVE_GCC_BITS_EXCHANGE_AND_ADD >-- Performing Test CPPDB_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed >-- Performing Test CPPDB_HAVE_GCC_EXT_EXCHANGE_AND_ADD >-- Performing Test CPPDB_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success >-- Performing Test CPPDB_HAVE_FREEBSD_ATOMIC >-- Performing Test CPPDB_HAVE_FREEBSD_ATOMIC - Failed >-- Performing Test CPPDB_HAVE_SOLARIS_ATOMIC >-- Performing Test CPPDB_HAVE_SOLARIS_ATOMIC - Failed >-- Performing Test CPPDB_HAVE_MAC_OS_X_ATOMIC >-- Performing Test CPPDB_HAVE_MAC_OS_X_ATOMIC - Failed >-- odbc library was not found, disabling odbc backend >-- libpq not found, disableing postgresql backend >-- mysqlclient not found, disableing mysql backend >-- Configuring done >-- Generating done >-- Build files have been written to: /home/Modusat/cppdb-trunk > >[Modusat@localhost cppdb-trunk]$ make > >Scanning dependencies of target cppdb >[ 4%] Building CXX object CMakeFiles/cppdb.dir/src/utils.cpp.o >[ 8%] Building CXX object CMakeFiles/cppdb.dir/src/mutex.cpp.o >[ 12%] Building CXX object CMakeFiles/cppdb.dir/src/driver_manager.cpp.o >[ 16%] Building CXX object CMakeFiles/cppdb.dir/src/conn_manager.cpp.o >[ 20%] Building CXX object CMakeFiles/cppdb.dir/src/shared_object.cpp.o >[ 24%] Building CXX object CMakeFiles/cppdb.dir/src/pool.cpp.o >[ 28%] Building CXX object CMakeFiles/cppdb.dir/src/backend.cpp.o >[ 32%] Building CXX object CMakeFiles/cppdb.dir/src/frontend.cpp.o >[ 36%] Building CXX object CMakeFiles/cppdb.dir/src/atomic_counter.cpp.o >Linking CXX shared library libcppdb.so >[ 36%] Built target cppdb >Scanning dependencies of target cppdb-static >[ 40%] Building CXX object CMakeFiles/cppdb-static.dir/src/utils.cpp.o >[ 44%] Building CXX object CMakeFiles/cppdb-static.dir/src/mutex.cpp.o >[ 48%] Building CXX object CMakeFiles/cppdb-static.dir/src/driver_manager.cpp.o >[ 52%] Building CXX object CMakeFiles/cppdb-static.dir/src/conn_manager.cpp.o >[ 56%] Building CXX object CMakeFiles/cppdb-static.dir/src/shared_object.cpp.o >[ 60%] Building CXX object CMakeFiles/cppdb-static.dir/src/pool.cpp.o >[ 64%] Building CXX object CMakeFiles/cppdb-static.dir/src/backend.cpp.o >[ 68%] Building CXX object CMakeFiles/cppdb-static.dir/src/frontend.cpp.o >[ 72%] Building CXX object CMakeFiles/cppdb-static.dir/src/atomic_counter.cpp.o >Linking CXX static library libcppdb.a >[ 72%] Built target cppdb-static >Scanning dependencies of target cppdb_sqlite3 >[ 76%] Building CXX object CMakeFiles/cppdb_sqlite3.dir/drivers/sqlite3_backend.cpp.o >Linking CXX shared library libcppdb_sqlite3.so >/home/common/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lsqlite3 >collect2: ld returned 1 exit status >make[2]: *** [libcppdb_sqlite3.so.0.3.1] Error 1 >make[1]: *** [CMakeFiles/cppdb_sqlite3.dir/all] Error 2 >make: *** [all] Error 2 >[Modusat@localhost cppdb-trunk]$ make install >[ 36%] Built target cppdb >[ 72%] Built target cppdb-static >Linking CXX shared library libcppdb_sqlite3.so >/home/common/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lsqlite3 >collect2: ld returned 1 exit status >make[2]: *** [libcppdb_sqlite3.so.0.3.1] Error 1 >make[1]: *** [CMakeFiles/cppdb_sqlite3.dir/all] Error 2 >make: *** [all] Error 2 > > > > > > >Quoting Marcel Hellwig <ke...@co...>: >On 11.07.2013 13:31, Marcel Hellwig wrote: >>On 11.07.2013 13:29, la...@sa... wrote: >>>Hi, did this way: but gives an error cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_COMPILER = /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc -DCMAKE_CXX_COMPILER = /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++ Parse error in command line argument: -DCMAKE_C_COMPILER Should be: VAR:type=value CMake Error: No cmake scrpt provided. CMake Error: Problem processing arguments. Aborting. >>>get ride of whitespaces! D_CMAKE_C_COMPILER=YOURPATH >>sorry, of course without the first underscore, as Artyom said >> >>> >>> >>>------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >>> >>> >>> >>>_______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > > >------------------------------------------------------------------------------ >See everything from the browser to the database with AppDynamics >Get end-to-end visibility with application monitoring from AppDynamics >Isolate bottlenecks and diagnose root cause in seconds. >Start your free trial of AppDynamics Pro today! >http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: <la...@sa...> - 2013-07-11 13:22:17
|
Hi,
thanks for the answer ....
Now having a strange error for sqlite,
CMAKE -DCMAKE_INSTALL_PREFIX=/USR
-DCMAKE_C_COMPILER=/HOME/COMMON/CODESOURCERY/SOURCERY_G++_LITE/BIN/ARM-NONE-LINUX-GNUEABI-GCC
-DCMAKE_CXX_COMPILER=/HOME/COMMON/CODESOURCERY/SOURCERY_G++_LITE/BIN/ARM-NONE-LINUX-GNUEABI-G++
-DSQLITE3_PATH=/HOME/COMMON/TOOLS/SQLLITE/INSTALLATIONARM/INCLUDE
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler:
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc
-- Check for working C compiler:
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc
-- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler:
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++
-- Check for working CXX compiler:
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++
-- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test CPPDB_HAS_GCC_SYNC
-- Performing Test CPPDB_HAS_GCC_SYNC - Success
-- Performing Test CPPDB_HAVE_GCC_BITS_EXCHANGE_AND_ADD
-- Performing Test CPPDB_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed
-- Performing Test CPPDB_HAVE_GCC_EXT_EXCHANGE_AND_ADD
-- Performing Test CPPDB_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success
-- Performing Test CPPDB_HAVE_FREEBSD_ATOMIC
-- Performing Test CPPDB_HAVE_FREEBSD_ATOMIC - Failed
-- Performing Test CPPDB_HAVE_SOLARIS_ATOMIC
-- Performing Test CPPDB_HAVE_SOLARIS_ATOMIC - Failed
-- Performing Test CPPDB_HAVE_MAC_OS_X_ATOMIC
-- Performing Test CPPDB_HAVE_MAC_OS_X_ATOMIC - Failed
-- odbc library was not found, disabling odbc backend
-- libpq not found, disableing postgresql backend
-- mysqlclient not found, disableing mysql backend
-- Configuring done
-- Generating done
-- Build files have been written to: /home/Modusat/cppdb-trunk
[MODUSAT@LOCALHOST CPPDB-TRUNK]$ MAKE
Scanning dependencies of target cppdb
[ 4%] Building CXX object CMakeFiles/cppdb.dir/src/utils.cpp.o
[ 8%] Building CXX object CMakeFiles/cppdb.dir/src/mutex.cpp.o
[ 12%] Building CXX object CMakeFiles/cppdb.dir/src/driver_manager.cpp.o
[ 16%] Building CXX object CMakeFiles/cppdb.dir/src/conn_manager.cpp.o
[ 20%] Building CXX object CMakeFiles/cppdb.dir/src/shared_object.cpp.o
[ 24%] Building CXX object CMakeFiles/cppdb.dir/src/pool.cpp.o
[ 28%] Building CXX object CMakeFiles/cppdb.dir/src/backend.cpp.o
[ 32%] Building CXX object CMakeFiles/cppdb.dir/src/frontend.cpp.o
[ 36%] Building CXX object CMakeFiles/cppdb.dir/src/atomic_counter.cpp.o
Linking CXX shared library libcppdb.so
[ 36%] Built target cppdb
Scanning dependencies of target cppdb-static
[ 40%] Building CXX object CMakeFiles/cppdb-static.dir/src/utils.cpp.o
[ 44%] Building CXX object CMakeFiles/cppdb-static.dir/src/mutex.cpp.o
[ 48%] Building CXX object
CMakeFiles/cppdb-static.dir/src/driver_manager.cpp.o
[ 52%] Building CXX object
CMakeFiles/cppdb-static.dir/src/conn_manager.cpp.o
[ 56%] Building CXX object
CMakeFiles/cppdb-static.dir/src/shared_object.cpp.o
[ 60%] Building CXX object CMakeFiles/cppdb-static.dir/src/pool.cpp.o
[ 64%] Building CXX object CMakeFiles/cppdb-static.dir/src/backend.cpp.o
[ 68%] Building CXX object CMakeFiles/cppdb-static.dir/src/frontend.cpp.o
[ 72%] Building CXX object
CMakeFiles/cppdb-static.dir/src/atomic_counter.cpp.o
Linking CXX static library libcppdb.a
[ 72%] Built target cppdb-static
Scanning dependencies of target cppdb_sqlite3
[ 76%] Building CXX object
CMakeFiles/cppdb_sqlite3.dir/drivers/sqlite3_backend.cpp.o
Linking CXX shared library libcppdb_sqlite3.so
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot
find
-lsqlite3
collect2: ld returned 1 exit status
make[2]: *** [libcppdb_sqlite3.so.0.3.1] Error 1
make[1]: *** [CMakeFiles/cppdb_sqlite3.dir/all] Error 2
make: *** [all] Error 2
[Modusat@localhost cppdb-trunk]$ make install
[ 36%] Built target cppdb
[ 72%] Built target cppdb-static
Linking CXX shared library libcppdb_sqlite3.so
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot
find
-lsqlite3
collect2: ld returned 1 exit status
make[2]: *** [libcppdb_sqlite3.so.0.3.1] Error 1
make[1]: *** [CMakeFiles/cppdb_sqlite3.dir/all] Error 2
make: *** [all] Error 2
Quoting Marcel Hellwig <ke...@co...>:
> On 11.07.2013 13:31, Marcel Hellwig wrote:
>> On 11.07.2013 13:29, la...@sa... wrote:> Hi, did this way: but
>> gives an error cmake -DCMAKE_INSTALL_PREFIX=/usr
>> -DCMAKE_C_COMPILER =
>> /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc
>> -DCMAKE_CXX_COMPILER =
>> /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++
>> Parse error in command line argument: -DCMAKE_C_COMPILER Should
>> be: VAR:type=value CMake Error: No cmake scrpt provided. CMake
>> Error: Problem processing arguments. Aborting.
>> get ride of whitespaces! D_CMAKE_C_COMPILER=YOURPATH
>
> sorry, of course without the first underscore, as Artyom said
>>
>>
>>
>> ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>>
>> _______________________________________________ Cppcms-users
>> mailing list
>> Cpp...@li...://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
>
|
|
From: Artyom B. <art...@ya...> - 2013-07-11 11:48:27
|
Yes, the problem is IE. The specifications require to parse "c:\foo\bar" as c:foobar were "\" is escape character. So there is nothing really can be done if you want to follow the standard. The second point... NEVER, EVER EVER use the provided file name for naming files... EVER. Creating file like /tmp/If37354f45a5f672658789c3a33e95e68/user-provided-name.pdf Can expose you to numerous security bugs. The trivial one is use stuff like "user-provided-name/../../../var/www/mycode.php" and save it Of course checking for ".." would not be enough as there may be many interesting stuff to handle for example on windows it may be file named "con" etc. etc. There virtually unlimited number of attacks if the user gives the name to file. So always save files with names you had generated. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Christian Gmeiner <chr...@gm...> >To: cpp...@li... >Sent: Thursday, July 11, 2013 2:21 PM >Subject: Re: [Cppcms-users] Problem with http::file and the returned file name > > >ping >-- >Christian Gmeiner, MSc > > >2013/7/5 Christian Gmeiner <chr...@gm...>: >> Hi all. >> >>> In my web application I make use of a file uploader, which works like >>> a charm. But >>> I run into this problem: >>> >>> Some older IE versions (6,7,8) are sending the full path of the uploaded file >>> in the multipart data - verified via wireshark. >>> All other browsers (chrome, ff, safari) are sending only the filename. >>> >>> This looks like: >>> >>> Jul 5 10:24:51 chgm-pc tssw: Upload: request POST: id 'upload' (upload.cpp:21) >>> Jul 5 10:24:51 chgm-pc tssw: upload: storing file C:Dokumente und >>> EinstellungengmeinerEigene DateienDownloads01_257782.pdf - size: >>> 2947635 (upload.cpp:41) >>> Jul 5 10:24:51 chgm-pc tssw: upload: >>> /tmp/If37354f45a5f672658789c3a33e95e68/C:Dokumente und >>> EinstellungengmeinerEigene DateienDownloads01_257782.pdf >>> (upload.cpp:48) >>> >>> I thought that I could filter out the substring starting from the last >>> \ in the filename, but cppcms filters away all \. >>> Is there a way to configure it or did I found a bug? >>> >>> The file looks in wireshark like: >>> C:\Dokumente und Einstellungen\gmeiner\Eigene Dateien\Download\s01_257782.pdf >>> >> >> Sooo I found the problem in cppcms-1.0.4/private/http_protocol.h: >> >> >> template<typename It> >> std::string unquote(It &begin,It end) >> { >> It p=begin; >> std::string result; >> if(p>=end || *p!='\"') >> return result; >> result.reserve(end-p); >> p++; >> while(p < end) { >> char c=*p++; >> if(c=='\"') { >> begin=p; >> return result; >> } >> else if(c=='\\' && p<end) <-- >> result+= *p++; <-- >> else >> result+=c; >> } >> result.clear(); >> return result; >> } >> >> If I comment out the else if everything works. >> >> How shall I proceed? Send a patch? >> >> -- >> Christian Gmeiner, MSc > >------------------------------------------------------------------------------ >See everything from the browser to the database with AppDynamics >Get end-to-end visibility with application monitoring from AppDynamics >Isolate bottlenecks and diagnose root cause in seconds. >Start your free trial of AppDynamics Pro today! >http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Marcel H. <ke...@co...> - 2013-07-11 11:32:14
|
On 11.07.2013 13:31, Marcel Hellwig wrote: > On 11.07.2013 13:29, la...@sa... wrote: >> Hi, >> did this way: but gives an error >> >> cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_COMPILER = >> /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc >> -DCMAKE_CXX_COMPILER = >> /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++ >> >> >> >> Parse error in command line argument: -DCMAKE_C_COMPILER >> Should be: VAR:type=value >> CMake Error: No cmake scrpt provided. >> CMake Error: Problem processing arguments. Aborting. >> > get ride of whitespaces! > D_CMAKE_C_COMPILER=YOURPATH sorry, of course without the first underscore, as Artyom said > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Marcel H. <ke...@co...> - 2013-07-11 11:31:16
|
On 11.07.2013 13:29, la...@sa... wrote: > > Hi, > did this way: but gives an error > > cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_COMPILER = > /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc > -DCMAKE_CXX_COMPILER = > /home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++ > > > > Parse error in command line argument: -DCMAKE_C_COMPILER > Should be: VAR:type=value > CMake Error: No cmake scrpt provided. > CMake Error: Problem processing arguments. Aborting. > get ride of whitespaces! D_CMAKE_C_COMPILER=YOURPATH |
|
From: Marcel H. <ke...@co...> - 2013-07-11 11:30:28
|
I'm using Fedora 19 with clang and libc++ too but there is no error (except one, where Artyom forgots to include ctime), but it compiles. Send a patch ;) |
|
From: <la...@sa...> - 2013-07-11 11:29:23
|
Hi,
did this way: but gives an error
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_COMPILER =
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc
-DCMAKE_CXX_COMPILER =
/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++
Parse error in command line argument: -DCMAKE_C_COMPILER
Should be: VAR:type=value
CMake Error: No cmake scrpt provided.
CMake Error: Problem processing arguments. Aborting.
Quoting Artyom Beilis <art...@ya...>:
> Not exactly
>
> Use: -DCMAKE_CXX_COMPILER=/path/to/g++ and
> -DCMAKE_C_COMPILER=/path/to/gcc options for cmake when you run
> it first time.
>
> Also note that if you cross-compiling (i.e. building ARM on x86) it
> is different process! Search in the web for CMake cross compiling
> and this may be can help as
> well: http://cppcms.com/wikipp/en/page/cppcms_1x_build#Cross.Compiling
>
> (these are notes for CppCMS but you can easily adopt them for CppDB)
>
> 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: Thursday, July 11, 2013 1:17 PM
>> SUBJECT: Re: [Cppcms-users] CPPDB compile LIB
>>
>> On 11.07.2013 12:01, la...@sa... wrote:
>> > he cppdb with a different compiler. Instead of gcc
>> > I need to compile with arm-non
>> just set your env var CXX to the compiler you want, then
>> execute cmake.
>> Should work ;)
>>
>>
>>
>> ------------------------------------------------------------------------------
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from
>> AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Cppcms-users mailing list
>> Cpp...@li...
>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>
>>
>>
>>
>>
>
>
>
|
|
From: Christian G. <chr...@gm...> - 2013-07-11 11:21:48
|
ping
--
Christian Gmeiner, MSc
2013/7/5 Christian Gmeiner <chr...@gm...>:
> Hi all.
>
>> In my web application I make use of a file uploader, which works like
>> a charm. But
>> I run into this problem:
>>
>> Some older IE versions (6,7,8) are sending the full path of the uploaded file
>> in the multipart data - verified via wireshark.
>> All other browsers (chrome, ff, safari) are sending only the filename.
>>
>> This looks like:
>>
>> Jul 5 10:24:51 chgm-pc tssw: Upload: request POST: id 'upload' (upload.cpp:21)
>> Jul 5 10:24:51 chgm-pc tssw: upload: storing file C:Dokumente und
>> EinstellungengmeinerEigene DateienDownloads01_257782.pdf - size:
>> 2947635 (upload.cpp:41)
>> Jul 5 10:24:51 chgm-pc tssw: upload:
>> /tmp/If37354f45a5f672658789c3a33e95e68/C:Dokumente und
>> EinstellungengmeinerEigene DateienDownloads01_257782.pdf
>> (upload.cpp:48)
>>
>> I thought that I could filter out the substring starting from the last
>> \ in the filename, but cppcms filters away all \.
>> Is there a way to configure it or did I found a bug?
>>
>> The file looks in wireshark like:
>> C:\Dokumente und Einstellungen\gmeiner\Eigene Dateien\Download\s01_257782.pdf
>>
>
> Sooo I found the problem in cppcms-1.0.4/private/http_protocol.h:
>
>
> template<typename It>
> std::string unquote(It &begin,It end)
> {
> It p=begin;
> std::string result;
> if(p>=end || *p!='\"')
> return result;
> result.reserve(end-p);
> p++;
> while(p < end) {
> char c=*p++;
> if(c=='\"') {
> begin=p;
> return result;
> }
> else if(c=='\\' && p<end) <--
> result+= *p++; <--
> else
> result+=c;
> }
> result.clear();
> return result;
> }
>
> If I comment out the else if everything works.
>
> How shall I proceed? Send a patch?
>
> --
> Christian Gmeiner, MSc
|
|
From: Artyom B. <art...@ya...> - 2013-07-11 11:09:15
|
See: http://cppcms.com/wikipp/en/page/cppcms_1x_build_troubleshooting#Lots.of.tests.fails Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Alexey Omelchenko <aom...@gm...> >To: cpp...@li... >Sent: Tuesday, July 9, 2013 3:58 PM >Subject: [Cppcms-users] cache_backend_test > > > >Hello, > >I built current trunk and have cache_backend_test failed. > > >Testing thread cache... Ok >Testing process cache... Ok >Testing cache over ip, single server... >Fail system: Address already in use > > >CentOS 6 >Nginx 1.0.15 >GCC 4.8.0 > > >I would appreciate any guidance. > > >Kind regards, >Alexey. >------------------------------------------------------------------------------ >See everything from the browser to the database with AppDynamics >Get end-to-end visibility with application monitoring from AppDynamics >Isolate bottlenecks and diagnose root cause in seconds. >Start your free trial of AppDynamics Pro today! >http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |