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 
 
NWNX Core updates
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Sun Dec 21, 2008 16:32    Post subject: Reply with quote

Doesn't -Wall make -Werror obsolete though? -Wall reports all warnings and errors, AFAIK. What exactly does one gain by adding -Werror?
Back to top
View user's profile Send private message
metamud



Joined: 30 Sep 2008
Posts: 16

PostPosted: Sun Dec 21, 2008 18:50    Post subject: Reply with quote

-Werror transmogrifies all warnings into errors. An error halts the compilation process. In effect, -Werror thus forces you to fix all warnings.

By making sure every warning is fixed (because it halts the process), you cannot overlook a warning by mistake (or by late-night induced laziness Wink).

Simple syntax and typographical errors already abort the compiler, the *real* issues are the glitches that only show up as 'warning' (if you are lucky enough to spawn a warning at all, that is), often because of their intrinsic subtlety.
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Mon Dec 22, 2008 17:42    Post subject: Reply with quote

Oh. In that case, I'll leave -Werror off, thanks. I'd rather let it get as far as it possibly can, then fix everything in one go.
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Mon Feb 22, 2010 11:21    Post subject: Reply with quote

First version of NWNX 2.8 inter-plugin communication:
http://nwn.virusman.ru/trac/nwnx2-linux/browser/branches/core-2.8/modules.h?rev=313
An example:
The ODBC plugin (or a core module) hooks SCO/RCO and exposes it as a hookable event. Any other plugin can subscribe to this event.
So basically it'll be possible to have two types of plugins:
* Event and service providers
* Plugins that use these capabilities to implement some logic
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Feb 24, 2010 0:25    Post subject: Reply with quote

Exposed SCO & RCO globally:
http://nwn.virusman.ru/trac/nwnx2-linux/changeset/315

The same can be done for ResMan (i.e. if you want to implement resource storage in the database) and other plugins.

Basically, this API solves the problems of people who want to implement some logic for NWNX in C++, but don't know asm/hooking.
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
pixelord



Joined: 24 Oct 2011
Posts: 15

PostPosted: Wed Sep 05, 2012 8:29    Post subject: Problem with release build Reply with quote

Hi,
I am trying rebuild the nwnx and other plugin for one of my project.
For development ease I decided to build a Netbean C++ project and build the code
with netbeans project.

I successfully built it and running with the server, however, it shows an error while server trying to load a release build. The error is as follows:

./nwserver: symbol lookup error: ./nwnx2.so: undefined symbol: o_esp

Can anyone point me out what wrong I am doing?

Thanks in advance.
_________________
Pixelord
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Sep 05, 2012 23:19    Post subject: Reply with quote

To make sure the files build correctly, use the tools and scripts provided with the sources, and compile with make/cmake + GCC. Otherwise, there is no guarantee that the compiled files will work.
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
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