BRL: not able to wrap multithreaded lib

BlitzMax Forums/BlitzMax Programming/BRL: not able to wrap multithreaded lib

So I tried:
- adding ?NODEBUG at the beginning of the module gave me errors when trying to run a test program:
C:/Program Files/BlitzMax/mod/ru.mod/raknet.mod/raknet.debug.win32.x86.a(raknet.bmx.debug.win32.x86.o.b)(code+0x71): undefined reference to `RN_PacketGetData'
(all the import "myfile.cpp" are included in the ?NODEBUG)
So the functions are not included in the *.debug.* file

- adding ?NODEBUG around the extern block
(eg:
?NODEBUG
Extern
  Function RN_GetRakPeerInterface%()
End Extern

)
-> I am able to run my test program but there is still a problem with the RakNet wrapper, whereas it is working on release mode (so nothing changed)

- adding NODEBUG after the function name (but in the extern block, as all my functions are there), eg:
Extern
  Function RN_GetRakPeerInterface%() NODEBUG
End Extern

-> Compiling the module, I get a compiler error: "syntax error in extern block - expecting const, global, blah". So I can not do that in an extern block. And I don't want to duplicate all my functions to do that outside the block...