Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ohNet Beginner example
29-07-2013, 04:11 PM
Post: #5
RE: ohNet Beginner example
(27-07-2013 07:44 PM)simonc Wrote:  
(27-07-2013 01:59 PM)lion87 Wrote:  hi,
I am using eclipse CDT for development on Linux.
i installed ohNet using make install. This seemed to work.
The files were installed into "/usr/local/lib" and "/usr/local/include".

So i set the gcc c++ Linker option in eclipse to:
Library search path (-L): /usr/local/lib/ohNet
and
Libraries (-l): ohNet and ohNetCore

I think more libraries are not necessary for this example right?
You shouldn't need to link to anything extra. In fact, I think it should be possible to build linking to ohNetCore only.

I don't have a linux box handy though so it'll be Monday before I can confirm this. (My test build was on Windows.)

Your code works for me on linux (debian 2.6.32). I built your code using

Code:
g++ -Wall -pthread -I ohNet/Build/Include/ ohnetdv.cpp ohNet/Build/Obj/Posix/Debug/libohNetCore.a -o ohnet-test

This runs and prints !!!END!!! before exiting cleanly.
Find all posts by this user


Messages In This Thread
ohNet Beginner example - lion87 - 26-07-2013, 09:36 PM
RE: ohNet Beginner example - simonc - 27-07-2013, 12:44 PM
RE: ohNet Beginner example - lion87 - 27-07-2013, 01:59 PM
RE: ohNet Beginner example - simonc - 27-07-2013, 07:44 PM
RE: ohNet Beginner example - simonc - 29-07-2013 04:11 PM

Forum Jump: