BennuPlayNet nueva version.

Started by Milton884, November 17, 2012, 10:34:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Milton884

Hola que tal? Vi que publicaron la nueva version, pero hay que compilar el codigo fuente, alguien podria compilar la DLL ? y publicarla ? Se agradeceria mucho...
Viene solo el codigo, por eso...

Milton884

Intente con el Dev C++ pero tiene muchisimos errores de compilacion ..

l1nk3rn3l

LO MEJOR PARA COMPILAR DLLS EN WINDOWS ES CODEBLOCKS INCLUYE COMPILADOR GCC

Milton884

Como se llama la variable para cambiar el Maximo de Replicas ? ¿

Milton884

Estoy probando Compilar con lo que me dijiste pero, me tira 50 errores:


-------------- Build: Release in bennuplaynet ---------------

Linking dynamic library: bin\bennuplaynet.dll
obj\Release\main.o(.text+0x269):main.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj\Release\main.o(.text+0x292):main.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj\Release\main.o(.text+0x2bd):main.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
obj\Release\main.o(.text+0x52c):main.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj\Release\main.o(.text+0x557):main.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
obj\Release\main.o(.text$_ZN17ServerNetCallback12onDisconnectEt[ServerNetCallback::onDisconnect(unsigned short)]+0x2b):main.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj\Release\main.o(.text$_ZN17ServerNetCallback12onDisconnectEt[ServerNetCallback::onDisconnect(unsigned short)]+0x3b):main.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
obj\Release\main.o(.text$_ZN17ServerNetCallback12onDisconnectEt[ServerNetCallback::onDisconnect(unsigned short)]+0x63):main.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
obj\Release\main.o(.text$_ZN17ServerNetCallback9onConnectEt[ServerNetCallback::onConnect(unsigned short)]+0x53):main.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj\Release\main.o(.text$_ZN17ServerNetCallback9onConnectEt[ServerNetCallback::onConnect(unsigned short)]+0x63):main.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
obj\Release\main.o(.text$_ZN17ServerNetCallback9onConnectEt[ServerNetCallback::onConnect(unsigned short)]+0x8b):main.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
obj\Release\main.o(.text$_ZN17ServerNetCallback9onConnectEt[ServerNetCallback::onConnect(unsigned short)]+0xd3):main.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj\Release\main.o(.text$_ZN17ServerNetCallback9onConnectEt[ServerNetCallback::onConnect(unsigned short)]+0xe3):main.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
obj\Release\main.o(.text$_ZN17ServerNetCallback9onConnectEt[ServerNetCallback::onConnect(unsigned short)]+0x10b):main.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x3b7):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x418):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x440):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x4a0):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x4d1):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x4ed):CNetManager.cpp: more undefined references to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)' follow
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x500):CNetManager.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x540):CNetManager.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x560):CNetManager.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x5a8):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x5bb):CNetManager.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x5d3):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x62c):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x652):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x846):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x974):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0xf52):CNetManager.cpp: more undefined references to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)' follow
enet\lib\irrNetLite.a(CNetManager.o)(.text+0xf68):CNetManager.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0xf86):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0xf98):CNetManager.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x10c7):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x10dd):CNetManager.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x10f5):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x1122):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x11af):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x11c5):CNetManager.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x11e3):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x11fc):CNetManager.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x1214):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x1252):CNetManager.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x1282):CNetManager.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x141e):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x14c3):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x14d9):CNetManager.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x14f1):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
enet\lib\irrNetLite.a(CNetManager.o)(.text+0x1668):CNetManager.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
Process terminated with status 1 (0 minutes, 0 seconds)
50 errors, 0 warnings



Milton884

Ya pude compilar, cual seria la variable que contiene el maximo de replicas ? ¿

l1nk3rn3l

#6
LINEA  38 archivo MAIN.C

#define  MAX_REPLICAS 20

DEBES USAR EL MISMO PROYECTO EN CODEBLOCKS  QUE SE LLAMA  HOLA.CBP


LO UNICO QUE DEBES CAMBIAR ES LAS RUTAS DE LAS DEPENDENCIAS
PARA COMPILAR

PROJECT ---- PROJECT BUILD OPTIONS ---- SEARCH DIRECTORIES  y LINKER


y listoooooo


pero bueno aqui esta compilado con 100 replicas (no lo incluimos en la pagina del proyecto
ya que demasiadas replicas pueden volver inestable las conexiones   de red del juego  y decrementar
la calidad de la libreria )


solo para tu  proyecto aqui vaaa de parte del grupo   100 REPLICAS y nos cuentas
http://www.mediafire.com/?9gv1jmqwtmsprtv


Milton884

gracias, ahi lo descargue, viene con la dll compilada ? ¿


SplinterGU

link, por que no intentan usar configure/makefile? es siempre mas sencillo, mas portable y da menos problemas.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

l1nk3rn3l

Quote from: Milton884 on November 19, 2012, 07:09:25 PM
gracias, ahi lo descargue, viene con la dll compilada ? ¿


claroo


Quote from: SplinterGU on November 19, 2012, 08:31:45 PM
link, por que no intentan usar configure/makefile? es siempre mas sencillo, mas portable y da menos problemas.

bueno indicanos donde podemos aprender estas herramientas.. hemos usado makefiles con el port de dreamcast
y ps2 y la verdad es complicadillo


donde aprender configure.. combinado con el makefile???

gracias por la sugerencia

SplinterGU

podria ser complicado crear el configure (no tanto el makefile), pero luego para los usuarios es super sencillo.

para usarlo con configure, solo necesitas armar makefile.am y luego configure.in (o configure.ac, creo), luego las herramientas autotools se encargan de todo... busca un tutorial de autotools, es bastante simple, tambien puedes ver bennugd, pero no mires los Makefile, Makefile.in, ni confingure... solo mira Makefile.am, y configure.in. Esos son los archivos que tienes que crear, el resto los genera autotools, busca un tutorial de autotools.

y luego pregunta c ualquier duda que tengas, si se como resolverla, te ayudare con placer.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2