EOSERV Forum > EOSERV > Compiling error
Page: << 1 >>
Compiling error
Author Message
Post #204873 Compiling error

Currently getting this error, i've followed everything in the tutorial step by step and i get this..



d:\development\eoserver\src\extra\ntservice.cpp: In function 'void service_handler(int)':

d:\development\eoserver\src\extra\ntservice.cpp:70:43: error: 'NO_ERROR' was not declared in this scope

    service_update_status(SERVICE_STOPPED, NO_ERROR, 0, 0, 0);

                                           ^~~~~~~~

d:\development\eoserver\src\extra\ntservice.cpp:75:39: error: 'NO_ERROR' was not declared in this scope

  service_update_status(service_state, NO_ERROR, 0, 0, 0);

                                       ^~~~~~~~

d:\development\eoserver\src\extra\ntservice.cpp: In function 'void service_main(int, char**)':

d:\development\eoserver\src\extra\ntservice.cpp:90:47: error: 'NO_ERROR' was not declared in this scope

  service_update_status(SERVICE_START_PENDING, NO_ERROR, 0, 1, 6000);

Any idea on how to fix this, i've been looking in the forum but theres no real answer

4 years, 35 weeks ago
Post #204874 Re: Compiling error

Sounds like a mismatch of header versions. Have you tried either including winerror.h in eoserv_windows.h or manulally defining NO_ERROR as zero?


---
http://sordie.co.uk
http://twitter.com/@SordieEO
4 years, 35 weeks ago
Post #204880 Re: Compiling error

I got this same error and Apollo helped me to fix it.

All you need to do is add the following to the top of the ntservice.cpp tab while you have CodeBlocks open:

#include "winerror.h"

Once you compile after adding that it should no longer produce those four errors.

4 years, 33 weeks ago
Page: << 1 >>

EOSERV Forum > EOSERV > Compiling error