relocation truncated to fit: R_X86_64_PC32 against `.bss'
I'm getting this linker error in g++ when compiling:
The rest of the code isn't material since this definition breaks my compilation. The time function is found in sys/time.h. Compiled on 64-Bit RHEL.
long ntime() {
struct timeval tp;
gettimeofday(&tp, (struct timezone *)0);
return (tp.tv_sec*1000 + tp.tv_usec / 1000);
}
Tell me why this is wrong?
Thanks in advance.