Am 15.02.2016 um 19:06 schrieb Raphael Fuchs:
> Hello,
>
> two more questions:
>
> 1. my current approach to keep the cpp is to stop using ctr-z, is 
> there a better way to keep the intermediate cpp?
>
I guess you mean the build system. You want to see the cpp, which is a 
intermediate file when compiling from .ecpp to .o. You can use it as a 
build target. E.g. you have a file mypage.ecpp and you want to see the 
intermediate mypage.cpp you can just run <make mypage.cpp> and make 
builds just that file.
> 2. What is <%request scope="shared"> doing? Is there a documentation 
> of all possible parts of an ecpp file somewhere?
>
There is a man page ecpp, where all the fine tags are documented.

This <%request ...> means, that the lifetime of the variable is just the 
request (the variable is forgotten at the end of the request) and the 
scope="shared" specifies, that the variable is visible in all components.

That means that if you have a component mypage.ecpp and you declare a 
variable "int A" in that page with scope="shared" and you call a subpage 
using <% mysubpage > and declare the same variable "int A" with the same 
scope, you see the same variable. If you omit the scope, you get your 
own instance.


> Thank you,
> Raphael
>
>
> PS: I had to add  -lcxxtools to all the tntnet demos, these were my 
> settings:
>
> export CXXFLAGS="-DDEBUG -g"
> export CCFLAGS="-DDEBUG -g"
>
> git pull
> ./configure --enable-demos
>
> I think these should be added.
>
I have to add this -lcxxtools to the demos since ecpp files use cxxtools 
directly. It is not enough to link against libtntnet, which links 
against cxxtools. At least ubuntu is pinky about that transitive dependency.

Tommi

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to