Ah ok, now I understand.<br><br>I am having a problem with the opengl section of it. It doesn&#39;t like GLuint . I&#39;ve added the gl.h file to my list of headers as I thought maybe I needed the header to define it. But it still doesn&#39;t like it. Here are the errors, and one of the lines of code. I&#39;ve googled it and GLuint is proper. It&#39;s just an unsigned int. It is also &quot;c&quot; code not c++, so I&#39;m not sure what it is complaining about. Any ideas?<br>
<br>cudart.c:261: error: expected ')' before 'bufferObj'<br>cudart.c:265: error: expected declaration specifiers or '...' before 'GLuint'<br><br><br><br>cudaError_t WINAPI wine_cudaGLRegisterBufferObject( GLuint bufferObj ){<br>
<br><br><br>Thanks<br><br><br><div class="gmail_quote">On Mon, Jul 7, 2008 at 1:21 PM, Juan Lang &lt;<a href="mailto:juan.lang@gmail.com">juan.lang@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Seth,<br>
<div class="Ih2E3d"><br>
&gt; Now are you saying the code should be,<br>
&gt; retval, WINAPI wine_cudaGetDeviceCount( int* count ){<br>
&gt; &nbsp; &nbsp; return cudaGetDeviceCount( count );<br>
&gt; }<br>
&gt;<br>
&gt; or should it be<br>
&gt;<br>
&gt; retval, WINAPI wine_cudaGetDeviceCount( int* count )<br>
&gt;<br>
&gt; or<br>
&gt;<br>
&gt; retval = WINAPI wine_cudaGetDeviceCount( int* count ){<br>
&gt; &nbsp; &nbsp; return cudaGetDeviceCount( retval );<br>
&gt; }<br>
<br>
</div>None of the above. &nbsp;retval was just a standin for a type declaration.<br>
I don&#39;t know what the proper return type is, but Google does: &nbsp;it&#39;s<br>
cudaError_t. &nbsp;So the proper declaration is likely to be:<br>
<br>
cudaError_t WINAPI wine_cudaGetDeviceCount(int *count) {<br>
 &nbsp; &nbsp;return cudaGetDeviceCount(count);<br>
}<br>
<font color="#888888"><br>
--Juan<br>
</font></blockquote></div><br>