Here is the whole error

Undefined symbols for architecture x86_64:
  "___kmpc_end_master", referenced from:
      _wrf_message_ in module_wrf_error.o
      _wrf_message2_ in module_wrf_error.o      _wrf_check_error_ in 
module_wrf_error.o      _wrf_error_fatal_ in module_wrf_error.o      
_wrf_error_fatal3_ in module_wrf_error.o
  "___kmpc_global_thread_num", referenced from:
      _wrf_message_ in module_wrf_error.o
      _wrf_message2_ in module_wrf_error.o
      _wrf_check_error_ in module_wrf_error.o
      _wrf_error_fatal_ in module_wrf_error.o
      _wrf_error_fatal3_ in module_wrf_error.o
      _module_wrf_error._ in module_wrf_error.o
  "___kmpc_master", referenced from:
      _wrf_message_ in module_wrf_error.o
      _wrf_message2_ in module_wrf_error.o
      _wrf_check_error_ in module_wrf_error.o
      _wrf_error_fatal_ in module_wrf_error.o
      _wrf_error_fatal3_ in module_wrf_error.o
ld: symbol(s) not found for architecture x86_64
make[2]: [diffwrf] Error 1 (ignored)

Actually the code is fine, no error in the code. Because it’s from WRF 
committee. I guess the reason that I get the error is from compiler or its 
flags. But I am not sure currently.

Thank you
Bruce

On Dec 11, 2013, at 10:06 AM, Ryan Schmidt <[email protected]> wrote:

> 
> On Dec 11, 2013, at 01:40, Gmail wrote:
> 
>> When I compile a fortran code, I got the error 
>> Undefined symbols for architecture x86_64
>> 
>> My mac is 64bits. The fortran compiler used here is ifort.
> 
> The relevant information would be *what* symbols were undefined, what your 
> code looks like, and where those symbols are actually defined.
> 
> 

_______________________________________________
macports-users mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to