java调用c的dll的时候,cpp文件中不识别JNIEXPORT和JNICALL关键字怎么解决?

makeppy 2010-04-22 10:31:53
RT,谢谢
QQ:582044384
...全文
423 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
makeppy 2010-04-23
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 rumlee 的回复:]
好像有两几个头文件要包含一下。
[/Quote]是啊,头文件忘记包含了,呵呵,谢谢结贴
makeppy 2010-04-22
  • 打赏
  • 举报
回复
错误提示——
C:\Program Files\Microsoft Visual Studio\MyProjects\examdll\helloWorld.cpp(6) : error C2144: syntax error : missing ';' before type 'void'
C:\Program Files\Microsoft Visual Studio\MyProjects\examdll\helloWorld.cpp(6) : error C2501: 'JNIEXPORT' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\MyProjects\examdll\helloWorld.cpp(6) : fatal error C1004: unexpected end of file found
rumlee 2010-04-22
  • 打赏
  • 举报
回复
好像有两几个头文件要包含一下。

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧