i am trying to compile a fortran 90 program which has a call to POPCNT as follows:
...
print *, popcnt(127)
...
by compiling it as follows:
gfortran prog.f90
it gives me the following:
...: undefined reference to `popcnt_'
plz can anyone suggest the correct way of compiling? thanks.
support for
bitcntis added in version 4.6http://gcc.gnu.org/wiki/GFortran#GCC4.6. So you have to find newer executable, or compile your own.