Hello, The following question concerns a friend of mine. As I am not at all familiar with GPC it might seem trivial to you. My friend tries to use the random function like this: " rand := random/exp(31*ln(2)); " When she compiles the program she gets the error " In function 'Rand' : undefined reference to 'Random' ". The question is: is the syntax correct or does GPC support random function? Her program runs correctly on UNIX, however UNIX is not always available, hence she needs to use Linux 7. Unfortunately I don't know what version of GPC is installed. Could you please help? Regards
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Charles Keeper wrote:
Hello, The following question concerns a friend of mine. As I am not at all familiar with GPC it might seem trivial to you. My friend tries to use the random function like this: " rand := random/exp(31*ln(2)); " When she compiles the program she gets the error " In function 'Rand' : undefined reference to 'Random' ". The question is: is the syntax correct or does GPC support random function?
Yes.
Her program runs correctly on UNIX, however UNIX is not always available, hence she needs to use Linux 7. Unfortunately I don't know what version of GPC is installed.
`gpc -v' tells the version. Maybe it's to old (several years old) and doesn't know `Random' yet.
Frank