m3g / packmol

Packmol - Initial configurations for molecular dynamics simulations
http://m3g.github.io/packmol
MIT License
228 stars 51 forks source link

Undefined symbol errors for "_ibox_to_ijk_" and "_ijk_to_ibox_" #4

Closed ilovezfs closed 7 years ago

ilovezfs commented 7 years ago

This problem began with 02bcef92668c7ca785025eb524dafdabab9446ee and does not affect the prior commit. So in terms of versions, this affects >= 17.096.

==> ./configure
Setting compiler to /usr/local/opt/gcc/bin/gfortran
==> make
 ------------------------------------------------------ 
 Compiling packmol with /usr/local/opt/gcc/bin/gfortran 
 Flags: -O3 -ffast-math  
 ------------------------------------------------------ 
Undefined symbols for architecture x86_64:
  "_ibox_to_ijk_", referenced from:
      _resetboxes_ in resetboxes.o
      _computef_ in computef.o
      _computeg_ in computeg.o
  "_ijk_to_ibox_", referenced from:
      _computef_ in computef.o
      _computeg_ in computeg.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [all] Error 1

Tested with GCC 6.3.0_1 on OS X 10.11 El Capitan.

m3g commented 7 years ago

I forgot to update the Makefile.default on the last update. Fixed now. Thank you for your report. Please let me know if there is any further problem.