Open GrandFunkR opened 8 years ago
you're trying to build an executable but don't have a main() function anywhere in your sources. you probably want to use CMake (www.cmake.org) to build RakNet as a library and then use it in your code.
Unfortunately the documentation is about as outdated/unmaintained as the whole library since Facebook took over OcculusVR.
Try the following (can't test it right now since I'm nowhere near my development box so it might be a little off):
` cd /home/user
mkdir RakNet-build
cd RakNet-build
cmake ../RakNet
make ` and after a while you'll end up with RakNet built as a library that you can link into your code.
Unfortunately the whole repository here is kind of unmaintained at the moment so you might want to look at one of the forks that have more activity.
I had the same issue with the straight compilation instructions from the readme.md. Using g++ 5.3 it gave exactly the same error as OP. I guess missing a parameter?
Cmake option does work.
There's a lot of forks, any suggestions, png85?
using this following command in Source directory g++ -pthread -g -I./../DependentExtensions *.cpp
i have this error:
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib/crt1.o: nella funzione "_start": (.text+0x20): riferimento non definito a "main" collect2: error: ld returned 1 exit status