CUDA wrapper

Juan Lang juan.lang at gmail.com
Mon Jul 7 16:59:55 CDT 2008


> I have #include <GL/gl.h>, maybe I do not have my makefile correct. I've
> attached the makefile, the cudart.c and all the nvidia header's need (14 of
> them) in one tar.bz2 file. Can someone check my makefile and all? I read
> through the nvidia license and it is ok to redistribute the headers.

Nothing to do with the makefile.  Your includes are wrong.  I changed
your includes as follows:
--- cudart.c.orig       2008-07-07 14:54:51.000000000 -0700
+++ cudart.c    2008-07-07 14:54:57.000000000 -0700
@@ -1,8 +1,9 @@
 /*This is a wrapper for cudart.dll and libdudart.so.2.0*/


-#include <GL/gl.h>
 #include <stdlib.h>
+#include <windows.h>
+#include <GL/gl.h>
 #include <string.h>
 #include "cuda_runtime.h"
 #include "cuda_runtime_api.h" /*I am unsure if both these headers are
needed, both do contain some of the functions*/

This gets a lot of the compile errors to go away, but not all of them.
 In several places you misspelled GLuint as GLUint.  In the future
please be more careful, discussing basic stuff like this gets a little
tedious.
--Juan



More information about the wine-devel mailing list