You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently i tried to include the native.h in multiple files in my project. It seems tha guard headers didnt their job, resulting compiling errors like below:
hlrfrwdr/httpserver.o: In function native::base::_delete_handle(uv_handle_s*)': /opt/node.native/./native/handle.h:71: multiple definition ofnative::base::_delete_handle(uv_handle_s*)'
/tmp/cctxhz6O.o:/opt/node.native/./native/handle.h:71: first defined here
I managed to solve these errors by myself by defining such plain functions as inline functions in order to be able to include the native, many times in the same project (since the guard headers -ifndef etc arent enough).
My question is: this is the correct way for solving this? And if true, it would be perfect if you define these as inline these functions also in node.native project here in github.
The text was updated successfully, but these errors were encountered:
Recently i tried to include the native.h in multiple files in my project. It seems tha guard headers didnt their job, resulting compiling errors like below:
hlrfrwdr/httpserver.o: In function
native::base::_delete_handle(uv_handle_s*)': /opt/node.native/./native/handle.h:71: multiple definition of
native::base::_delete_handle(uv_handle_s*)'/tmp/cctxhz6O.o:/opt/node.native/./native/handle.h:71: first defined here
I managed to solve these errors by myself by defining such plain functions as inline functions in order to be able to include the native, many times in the same project (since the guard headers -ifndef etc arent enough).
My question is: this is the correct way for solving this? And if true, it would be perfect if you define these as inline these functions also in node.native project here in github.
The text was updated successfully, but these errors were encountered: