View previous topic :: View next topic |
Author |
Message |
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Sun Dec 21, 2008 16:32 Post subject: |
|
|
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 |
|
|
metamud
Joined: 30 Sep 2008 Posts: 16
|
Posted: Sun Dec 21, 2008 18:50 Post subject: |
|
|
-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 ).
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 |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Mon Dec 22, 2008 17:42 Post subject: |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Mon Feb 22, 2010 11:21 Post subject: |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Wed Feb 24, 2010 0:25 Post subject: |
|
|
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 |
|
|
pixelord
Joined: 24 Oct 2011 Posts: 15
|
Posted: Wed Sep 05, 2012 8:29 Post subject: Problem with release build |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Wed Sep 05, 2012 23:19 Post subject: |
|
|
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 |
|
|
|