I'm going through the JNI Tutorial on Sun's Website. I'm on step 5 and I can't seem to get the C file compiled into a DLL. I understand that this isn't really a Java question, but I'm not a C guy, I have nowhere else to go, and I encountered this problem in the midst of a Java tutorial, so... Can someone tell me how to compile the C file into a DLL? I'm entering the following on the command line:And I get the following error: I copied stdio.h into the same folder as my Java, header, and C files. But, it still gives me this error. Can anyone help?
I think it requires the standard stdio.h files for the VC++ compiler. Usually it should be there ur msvc++ directory. Try using the -I flag and initialize it to the VC++ include files. For example -I c:\msvc++\include. Hope it works.. --Vikas
Thanks Vikas. Thanks to this page I found out that I needed to run in order to setup the environment. Why I should have to do that on Windows, I don't know. I then got the following response which I assume is successful: On to step 6! [ February 13, 2003: Message edited by: Michael Brewer ]
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
a bit of art, as a gift, the permaculture playing cards