radioegor146 / native-obfuscator

Java .class to .cpp converter for use with JNI
GNU General Public License v3.0
499 stars 67 forks source link

Windows compiler error #81

Closed 00110001011100010111100001111010 closed 2 months ago

00110001011100010111100001111010 commented 2 months ago

Can't compile in Windows.

MSBuild version 17.10.4+10fbfbf2e for .NET Framework
  1>Checking Build System
  Building Custom Rule D:/a/RatPlugin/RatPlugin/CMakeLists.txt
  native_jvm.cpp
  native_jvm_output.cpp
  string_pool.cpp
D:\a\RatPlugin\RatPlugin\string_pool.cpp(4,17): error C2466: cannot allocate an array of constant size 0 [D:\a\RatPlugin\RatPlugin\build\native_library.vcxproj]
D:\a\RatPlugin\RatPlugin\native_jvm_output.cpp(11,16): error C2466: cannot allocate an array of constant size 0 [D:\a\RatPlugin\RatPlugin\build\native_library.vcxproj]

native_jvm_output.cpp, 11

reg_method reg_methods[0];

string_pool.cpp, 4

static char pool[0LL] = {  };

but compiles well in linux chrome_9rr6J0hJUE

radioegor146 commented 2 months ago

Well, I believe that bug is because you don't have any classes to compile for native

radioegor146 commented 2 months ago

Fixed in b05429f