I apologise for the simple mistakes. But I only made those spelling errors after the fact and I was trying to get it working, I saw from google one forums post where the U was capitalised so I thought I'd try it, I just had forgot to put it back.<br>
<br>I have fixed all the error and now it doesn't complain about any errors with the file but I think my make file is not correct. After I fixed the paths to the linking library libcudart.so.2.0, now it is saying it that the linking isn't done.<br>
<br> gcc: /usr/local/cuda/lib/libcudart.so.2.0: linker input file unused because linking not done<br><br>Also after that I get an error about libcudart.so.2-LhAtfa.o is an empty file. What is that LhAtfa.o? Of course it is an empty file as far as I know that isn't a real file. What is it trying to link to?<br>
<br>Thanks,<br><br>Seth Shelnutt<br><br><br><div class="gmail_quote">On Mon, Jul 7, 2008 at 5:59 PM, Juan Lang <<a href="mailto:juan.lang@gmail.com" target="_blank">juan.lang@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>> I have #include <GL/gl.h>, maybe I do not have my makefile correct. I've<br>
> attached the makefile, the cudart.c and all the nvidia header's need (14 of<br>
> them) in one tar.bz2 file. Can someone check my makefile and all? I read<br>
> through the nvidia license and it is ok to redistribute the headers.<br>
<br>
</div>Nothing to do with the makefile. Your includes are wrong. I changed<br>
your includes as follows:<br>
--- cudart.c.orig 2008-07-07 14:54:51.000000000 -0700<br>
+++ cudart.c 2008-07-07 14:54:57.000000000 -0700<br>
@@ -1,8 +1,9 @@<br>
/*This is a wrapper for cudart.dll and libdudart.so.2.0*/<br>
<br>
<br>
-#include <GL/gl.h><br>
#include <stdlib.h><br>
+#include <windows.h><br>
+#include <GL/gl.h><br>
#include <string.h><br>
#include "cuda_runtime.h"<br>
#include "cuda_runtime_api.h" /*I am unsure if both these headers are<br>
needed, both do contain some of the functions*/<br>
<br>
This gets a lot of the compile errors to go away, but not all of them.<br>
In several places you misspelled GLuint as GLUint. In the future<br>
please be more careful, discussing basic stuff like this gets a little<br>
tedious.<br>
<font color="#888888">--Juan<br>
</font></blockquote></div><br>