I am trying to make a dll file using code blocks
My cpp file contains ONLY this line of code :
#include <jni.h>
and it's giving me this bunch of errors:
||=== Build: Debug in transparency (compiler: GNU GCC Compiler) ===|
||Warning: resolving _GetModuleHandleA@4 by linking to _GetModuleHandleA|
||Warning: resolving _GetProcAddress@8 by linking to _GetProcAddress|
||Warning: resolving _VirtualQuery@12 by linking to _VirtualQuery|
||Warning: resolving _VirtualProtect@16 by linking to _VirtualProtect|
||Warning: resolving _EnterCriticalSection@4 by linking to _EnterCriticalSection|
||Warning: resolving _TlsGetValue@4 by linking to _TlsGetValue|
||Warning: resolving _GetLastError@0 by linking to _GetLastError|
||Warning: resolving _DeleteCriticalSection@4 by linking to _DeleteCriticalSection|
||Warning: resolving _InitializeCriticalSection@4 by linking to _InitializeCriticalSection|
C:\Program Files (x86)\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\4.9.2\..\..\..\libmingw32.a(tlsthrd.o):tlsthrd.c|| undefined reference to `LeaveCriticalSection@4'|
C:\Program Files (x86)\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\4.9.2\..\..\..\libmingw32.a(tlsthrd.o):tlsthrd.c|| undefined reference to `LeaveCriticalSection@4'|
C:\Program Files (x86)\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\4.9.2\..\..\..\libmingw32.a(tlsthrd.o):tlsthrd.c|| undefined reference to `LeaveCriticalSection@4'|
C:\Program Files (x86)\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\4.9.2\..\..\..\libmingw32.a(tlsthrd.o):tlsthrd.c|| undefined reference to `LeaveCriticalSection@4'|
||error: ld returned 1 exit status|
||=== Build failed: 5 error(s), 9 warning(s) (0 minute(s), 0 second(s)) ===|
I need that jni.h because I'm creating this dll to use it in a java program
EDIT : I'm running windows 10 64 bit