我試圖做一個原始的數據管理程序,它以表的形式存儲數據並將表保存到文件中供以後使用。Eclipse中的OpenCL:聲明全局類和結構
我還沒有完成該程序,不用說,我的程序效率不高。 問題是,我最近安裝了用於eclipse的OpenCL語法突出顯示擴展,現在它給出了一個全局聲明錯誤。
hu.ngms.opencl.editor.checkers.global_declaration_error
,並警告
hu.ngms.opencl.editor.checkers.assignment_to_wrong_memory_space
我試圖尋找途徑,以避免這些錯誤使用OpenCL的地址空間:__global,但沒有發生(可能用它在錯誤的道路)
然後我嘗試使用預處理指令
#ifdef __OPENCL_VERSION__
並由於所有的挫敗甚至嘗試過decltype和typedef。
我甚至嘗試從日食去除OpenCL的,但是當我嘗試訪問市場
Unexpected exception: loader constraint violation: loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) previously initiated loading for a different type with name "org/apache/http/client/fluent/Executor"
loader constraint violation: loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) previously initiated loading for a different type with name "org/apache/http/client/fluent/Executor"
loader constraint violation: loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) previously initiated loading for a different type with name "org/apache/http/client/fluent/Executor"
loader constraint violation: loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) previously initiated loading for a different type with name "org/apache/http/client/fluent/Executor"
在無論是從Eclipse中刪除的OpenCL或解決錯誤或警告任何幫助是極大的讚賞日食給出了這樣的錯誤。
請幫助
我的Eclipse版本是neon.1 (請讓我知道是否需要任何額外的信息)
代碼:
#include<iostream>
#include<string.h>
#include<fstream>
#include<conio.h>
using namespace std;
//#ifndef __OPENCL_VERSION__
union Cell;
struct table;
class Ctype;
class Cname;
class row;
//#endif
注:我已刪除的身體的代碼,因爲我覺得它並不需要展示。如果需要詳細的代碼,只需要問:)。
主要的錯誤是在上面的代碼結尾給出的。
我基本上有以下全局聲明:
工會細胞
結構表
類CTYPE
類Cname的
類排
在此先感謝
請將代碼量減少到最小可重現大小。 – Roman
感謝您的回覆,我只是通過刪除語法hiliting擴展來解決問題。 – Ramana