⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jni_cpp_src.plg

📁 C调用Java的一个例子程序
💻 PLG
字号:
<html>
<body>
<pre>
<h1>Build Log</h1>
<h3>
--------------------Configuration: jni_cpp_src - Win32 Debug--------------------
</h3>
<h3>Command Lines</h3>
Creating temporary file "D:\DOCUME~1\guest1\LOCALS~1\Temp\RSP547.tmp" with contents
[
/nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "_UNICODE" /Fp"Debug/jni_cpp_src.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c 
"J:\C++调用Java\jni_cpp\source\JAVA_VM.cpp"
]
Creating command line "cl.exe @D:\DOCUME~1\guest1\LOCALS~1\Temp\RSP547.tmp" 
Creating temporary file "D:\DOCUME~1\guest1\LOCALS~1\Temp\RSP548.tmp" with contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/jni_cpp_src.pdb" /debug /machine:I386 /out:"../app/Debug/jni_cpp_src.exe" /pdbtype:sept 
".\Debug\JAVA_Base.obj"
".\Debug\JAVA_Class.obj"
".\Debug\JAVA_Field.obj"
".\Debug\JAVA_Method.obj"
".\Debug\JAVA_Object.obj"
".\Debug\JAVA_StaticField.obj"
".\Debug\JAVA_StaticMethod.obj"
".\Debug\JAVA_String.obj"
".\Debug\JAVA_StringData.obj"
".\Debug\JAVA_VM.obj"
".\Debug\jni_cpp.obj"
".\Debug\jni_cpp_src.obj"
".\Debug\StdAfx.obj"
".\Debug\JAVA_JarDumpClass.obj"
]
Creating command line "link.exe @D:\DOCUME~1\guest1\LOCALS~1\Temp\RSP548.tmp"
<h3>Output Window</h3>
Compiling...
JAVA_VM.cpp
j:\c++调用java\jni_cpp\source\java_vm.cpp(15) : error C2664: '__thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >(const class std::allocator<unsigned short> &)' : cannot convert parameter 1 from 'char [1]' to 'const class std::allocator<unsigned short> &'
        Reason: cannot convert from 'char [1]' to 'const class std::allocator<unsigned short>'
        No constructor could take the source type, or constructor overload resolution was ambiguous
j:\c++调用java\jni_cpp\source\java_vm.cpp(82) : error C2440: 'initializing' : cannot convert from 'const char *' to 'class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >'
        No constructor could take the source type, or constructor overload resolution was ambiguous
j:\c++调用java\jni_cpp\source\java_vm.cpp(84) : error C2784: 'class std::basic_string<_E,_Tr,_A> __cdecl std::operator +(const class std::basic_string<_E,_Tr,_A> &,const _E)' : could not deduce template argument for 'const class std::basic_string<_E,_Tr,_A> &' from 'char [19]'
j:\c++调用java\jni_cpp\source\java_vm.cpp(84) : error C2784: 'class std::basic_string<_E,_Tr,_A> __cdecl std::operator +(const class std::basic_string<_E,_Tr,_A> &,const _E *)' : could not deduce template argument for 'const class std::basic_string<_E,_Tr,_A> &' from 'char [19]'
j:\c++调用java\jni_cpp\source\java_vm.cpp(84) : error C2782: 'class std::basic_string<_E,_Tr,_A> __cdecl std::operator +(const _E,const class std::basic_string<_E,_Tr,_A> &)' : template parameter '_E' is ambiguous
        could be 'unsigned short'
        or       'char *'
j:\c++调用java\jni_cpp\source\java_vm.cpp(84) : error C2782: 'class std::basic_string<_E,_Tr,_A> __cdecl std::operator +(const _E *,const class std::basic_string<_E,_Tr,_A> &)' : template parameter '_E' is ambiguous
        could be 'unsigned short'
        or       'char'
j:\c++调用java\jni_cpp\source\java_vm.cpp(84) : error C2784: 'class std::basic_string<_E,_Tr,_A> __cdecl std::operator +(const class std::basic_string<_E,_Tr,_A> &,const class std::basic_string<_E,_Tr,_A> &)' : could not deduce template argument for 'const class std::basic_string<_E,_Tr,_A> &' from 'char [19]'
j:\c++调用java\jni_cpp\source\java_vm.cpp(84) : error C2784: 'class std::reverse_iterator<_RI,_Ty,_Rt,_Pt,_D> __cdecl std::operator +(_D,const class std::reverse_iterator<_RI,_Ty,_Rt,_Pt,_D> &)' : could not deduce template argument for '' from 'char [19]'
j:\c++调用java\jni_cpp\source\java_vm.cpp(84) : error C2677: binary '+' : no global operator defined which takes type 'class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >' (or there is no acceptable conversion)
j:\c++调用java\jni_cpp\source\java_vm.cpp(88) : error C2679: binary '+=' : no operator defined which takes a right-hand operand of type 'char [2]' (or there is no acceptable conversion)
j:\c++调用java\jni_cpp\source\java_vm.cpp(93) : error C2440: 'const_cast' : cannot convert from 'const unsigned short *' to 'char *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
j:\c++调用java\jni_cpp\source\java_vm.cpp(160) : error C2664: 'GetFullPathNameA' : cannot convert parameter 1 from 'const unsigned short *' to 'const char *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
j:\c++调用java\jni_cpp\source\java_vm.cpp(162) : error C2679: binary '+=' : no operator defined which takes a right-hand operand of type 'char [260]' (or there is no acceptable conversion)
j:\c++调用java\jni_cpp\source\java_vm.cpp(163) : error C2679: binary '+=' : no operator defined which takes a right-hand operand of type 'char [2]' (or there is no acceptable conversion)
j:\c++调用java\jni_cpp\source\java_vm.cpp(165) : error C2440: 'initializing' : cannot convert from 'char [23]' to 'class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >'
        No constructor could take the source type, or constructor overload resolution was ambiguous
j:\c++调用java\jni_cpp\source\java_vm.cpp(166) : error C2679: binary '+=' : no operator defined which takes a right-hand operand of type 'const char *' (or there is no acceptable conversion)
j:\c++调用java\jni_cpp\source\java_vm.cpp(177) : error C2440: 'initializing' : cannot convert from 'const char *' to 'class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >'
        No constructor could take the source type, or constructor overload resolution was ambiguous
j:\c++调用java\jni_cpp\source\java_vm.cpp(248) : error C2679: binary '+=' : no operator defined which takes a right-hand operand of type 'const char *' (or there is no acceptable conversion)
j:\c++调用java\jni_cpp\source\java_vm.cpp(249) : error C2664: '__isFileExist' : cannot convert parameter 1 from 'const unsigned short *' to 'const char *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
j:\c++调用java\jni_cpp\source\java_vm.cpp(253) : error C2440: 'type cast' : cannot convert from 'char [1]' to 'class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >'
        No constructor could take the source type, or constructor overload resolution was ambiguous
j:\c++调用java\jni_cpp\source\java_vm.cpp(259) : error C2440: 'initializing' : cannot convert from 'const char *' to 'class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >'
        No constructor could take the source type, or constructor overload resolution was ambiguous
j:\c++调用java\jni_cpp\source\java_vm.cpp(261) : error C2440: 'type cast' : cannot convert from 'const char *' to 'class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >'
        No constructor could take the source type, or constructor overload resolution was ambiguous
j:\c++调用java\jni_cpp\source\java_vm.cpp(265) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'const char *' (or there is no acceptable conversion)
j:\c++调用java\jni_cpp\source\java_vm.cpp(271) : error C2679: binary '+=' : no operator defined which takes a right-hand operand of type 'char [2]' (or there is no acceptable conversion)
j:\c++调用java\jni_cpp\source\java_vm.cpp(272) : error C2679: binary '+=' : no operator defined which takes a right-hand operand of type 'const char *' (or there is no acceptable conversion)
j:\c++调用java\jni_cpp\source\java_vm.cpp(273) : error C2664: '__isFileExist' : cannot convert parameter 1 from 'const unsigned short *' to 'const char *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
j:\c++调用java\jni_cpp\source\java_vm.cpp(296) : error C2440: 'initializing' : cannot convert from 'char *' to 'class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >'
        No constructor could take the source type, or constructor overload resolution was ambiguous
j:\c++调用java\jni_cpp\source\java_vm.cpp(301) : error C2664: '__thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >(const unsigned short *,unsigned int,const class std::allocator<unsigned short> &)' : cannot convert parameter 1 from 'char *' to 'const unsigned short *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
j:\c++调用java\jni_cpp\source\java_vm.cpp(306) : error C2679: binary '+=' : no operator defined which takes a right-hand operand of type 'char [2]' (or there is no acceptable conversion)
Error executing cl.exe.



<h3>Results</h3>
jni_cpp_src.exe - 29 error(s), 0 warning(s)
</pre>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -