logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Compiling NWNx under g++ 4.4.5

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
Yester



Joined: 30 Nov 2012
Posts: 1

PostPosted: Fri Nov 30, 2012 0:55    Post subject: Compiling NWNx under g++ 4.4.5 Reply with quote

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 Wink
Those bugs aren't hard to fix but only for someone who knows basics of C Wink

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 Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group