" a namespace name is not allowed" javacpp 中的错误
" a namespace name is not allowed" error in javacpp
我试图在我的java应用程序中使用这个例子,这是使用maven构建的。pom.xml包括
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>javacpp</id>
<phase>process-classes</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-jar</argument> <argument>/home/JCuda/javacpp.jar</argument>
<argument>-classpath</argument> <argument>${project.build.outputDirectory}:/home/JCuda/jcuda-0.5.0.jar:/home/JCuda/jcusparse-0.5.0.jar</argument>
<argument>-d</argument> <argument>${project.build.outputDirectory}/lib/</argument>
<argument>-properties</argument> <argument>linux-x86_64-cuda</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
nvcc编译.cu文件时显示错误
/home/TestWebapp6/target/classes/lib/jniCudaOps.cu(1154):错误:命名空间名称不允许
在代码中是这一行
JNIEXPORT void JNICALL Java_com_skenzo_cuda_CudaOps_copy(JNIEnv* env, jclass cls, jobject arg0, jobject arg1, jobject arg2) {
thrust* ptr0 = arg0; //line showing the first error
thrust* ptr1 = arg1;
....
什么线索吗?
这个问题可能更适合javacpp邮件列表。
相关文章:
- 警告处理为错误这里有什么问题
- "error: no matching function for call to"构造函数错误
- boost::进程间消息队列引发错误
- C++,OpenCV,尝试显示图像时"OpenCV(4.3.0) Error: Assertion failed (size.width>0 && size.height>0)"此错误
- 有关插入适配器的错误。[错误]请求从 'back_insert_iterator<vector<>>' 类型转换为非标量类型
- QT在错误的班级中寻找空位
- vector.resize()中的分配错误
- 代码在main()中运行,但在函数中出现错误
- 释放错误后堆使用
- (C++)分析树以计算返回错误值的简单算术表达式
- Project Euler问题4的错误解决方案
- 我的字符计数代码计算错误.为什么
- 从"int*"强制转换为"unsigned int"会丢失精度错误
- 尝试导入pybind-opencv模块时出现libgtk错误
- CMake项目Boost库错误:Boost/config/compiler/gcc.hpp:165:10:致命错误:cs
- 在某些循环内使用vector.push_back时出现分段错误
- MSVC多行宏编译器错误
- JavaCPP 错误:无法将参数"1"的"char*"转换为"Abc*
- 不满意的链接错误,当使用LLVM运行javacpp预设时
- " a namespace name is not allowed" javacpp 中的错误