Hi Tommi,

On 01. jan. 2014 14:13, Tommi Mäkitalo wrote:
> I created and uploaded a small demo application, which generates dynamic
> images using the famous gd library. You find the application at
> http://www.tntnet.org/download/gd-demo.tar.gz.

Many, many thanks for this! I have downloaded and tried it, and in the 
process of studying how it works.  It seems you are using a subcomponent 
"imgstr" to produce the image and return it as a string via reply.out() 
like before, but you refer it using a proper url

   <img src="imgstr?<$ q.getUrl() $>">

That makes sense I guess, it was the part I could not figure out. But 
now I have an example to use as reference.

> You put your code into a shared library and had problems loading the web
> application in tntnet. It looks like you have unresolved external
> symbols. When linking a shared library with unresolved external symbols,
> the linker do not complain as it does when linking applications. But the
> library is not loadable. You can test it using "ldd -r yourlibrary.so".
> In your case you should test "ldd -r libfilepicker.so". I guess you did
> not link the so against boost and hence get some unresolved symbols with
> boost-something. The solution is to link the so against the needed boost
> library. In application mode you linked the applications against boost I
> guess and hence the linker found the symbols.

You are 100% correct. It is exactly what happened. I wasn't aware that 
you don't get g++ linker complaints when there are unresolved external 
systems for shared libraries (it is different compared to linking DLLs 
with MSVC under Windows, I have more experience with that), but now I 
see what is going on. Yes, I linked the application against boost. I 
think am going to use tntnet in application mode in the future, but this 
is still very useful information, thank you very much!

Best regards
Carsten Arnholm


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to