Yester
Joined: 30 Nov 2012 Posts: 1
|
Posted: Fri Nov 30, 2012 0:55 Post subject: Compiling NWNx under g++ 4.4.5 |
|
|
Hi,
I just downloaded
linnwnx2-2.5.3-rc1.tar.gz
and i had following problems:
-> autotools are not checking if there are mysql devel installed
-> there are some missing includes in many files (mostly cstdlib aka stdlib.h and cstring aka string.h).
-> there is one casting error (const char* to char*) in mnx/NWNXmnx.cpp. Quick fix is to make pStr const char* instead of char* (it's never changed anyways).
Hope that helps someone
Those bugs aren't hard to fix but only for someone who knows basics of C
g++ version:
Code: | └─[%]─> g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix |
Have a nice day |
|