{"id":6154,"date":"2014-04-13T04:35:18","date_gmt":"2014-04-13T04:35:18","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/library-is-linked-but-reference-is-undefined-collection-of-common-programming-errors\/"},"modified":"2014-04-13T04:35:18","modified_gmt":"2014-04-13T04:35:18","slug":"library-is-linked-but-reference-is-undefined-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/library-is-linked-but-reference-is-undefined-collection-of-common-programming-errors\/","title":{"rendered":"library is linked but reference is undefined-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to compile an openCL program on Ubuntu with an NVIDIA card that worked once before,<\/p>\n<pre><code>#include \n#include \n#include \n\nusing namespace std;\n\nint main() {\n  cl_platform_id platform;\n  cl_device_id device;\n  cl_context context;\n  cl_command_queue command_queue;\n  cl_int error;\n\n  if(clGetPlatformIDs(1, &amp;platform, NULL) != CL_SUCCESS) {\n    cout<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to compile an openCL program on Ubuntu with an NVIDIA card that worked once before, #include #include #include using namespace std; int main() { cl_platform_id platform; cl_device_id device; cl_context context; cl_command_queue command_queue; cl_int error; if(clGetPlatformIDs(1, &amp;platform, NULL) != CL_SUCCESS) { cout<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6154","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6154"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6154\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}