C, Cygwin and compiling drand and srand
I have C code that I am trying to compile in Cygwin and which contains functions drand()
andsrand()
... I had Windows Vista with Cygwin installed and the code seemed to compile just fine, but my computer crashed and I had to get a new one. The new computer has Windows 7 64-bit. I had a few problems loading Cygwin, but finally managed to do so by only selecting a few packages and then tried to get the rest that I needed. The problem is that I don't have the help that I installed on my other computer, so I don't know what packages I really need, so I was just guessing (all gcc tags), but I shouldn't have one. you need to shit and work. If anyone could point me in the right direction and also maybe just let me know which packages I need to compile C so I can check that I have everything, which would be great.
Thanks a lot for any help.
Sorry, that was a lot of words!
Kaytiana
a source to share
srand()
and the drand()
functions are part of the library <stdlib.h>
and must be included in the cygwin gcc-core package. If not, then I think it will be an issue with 64bit cygwin packages or OS. Since you mentioned that you are having problems with the installation, I am guessing that something went wrong in the process.
a source to share