[Opentnl-general] segmentation fault in hello world example
Brought to you by:
mark_frohnmayer,
s_alanet
From: Brian P. <bpa...@gm...> - 2007-03-11 17:51:05
|
Hi, I started using the opentnl library recently and ran into a question. I have compiled and run both the tnltest example and the simplenet "hello world" example from the opentnl website. Both have a segmentation fault when the client tries to execute a RPC on the server. I'm hoping someone can point me in the right direction in solving this. I compiled opentnl 1.5.0 using g++34 (under Fedora 5 Linux) and in order to get both examples to compile I had to use the "-fpermissive" option. I'm not sure if this has something to do with it, but thats what the compiler suggested. I'm running the client and server on the same machine, but that seemed to be what the simplenet.cpp example suggested: ./simple -server 127.0.0.1:28000 new terminal ./simple -client 127.0.0.1:28000 (the client runs and the server program segmentation faults). Also the simplenet.ccp example seems to be a little outdated as I had to add a parameter argument to the RPC_FUNCTION() macro. Any suggestions would be great. Brian |