- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
i am trying to compile a f90 code with ifc compiler using -openmp. The command line that i use for compilation is
"-O3 -align dcommons -align sequence -arch host -tune host -openmp -fpp2".
The compilation of the each subroutine of the code is ok but i keep getting the following error messages during linking :
undefined reference to `__kmpc_for_static_fini'
undefined reference to `omp_in_parallel_'
undefined reference to `__kmpc_end_serialized_parallel'
undefined reference to `omp_get_max_threads_'
undefined reference to `getarg_'
undefined reference to `__kmpc_for_static_init_4'
undefined reference to `kmp_set_stacksize_'
undefined reference to `iargc_'
undefined reference to `__kmpc_serialized_parallel'
undefined reference to `__kmpc_fork_call'
undefined reference to `__kmpc_global_thread_num'
undefined reference to `__kmpc_ok_to_fork'
undefined reference to `omp_in_parallel_'
undefined reference to `__kmpc_end_serialized_parallel'
undefined reference to `omp_get_max_threads_'
undefined reference to `getarg_'
undefined reference to `__kmpc_for_static_init_4'
undefined reference to `kmp_set_stacksize_'
undefined reference to `iargc_'
undefined reference to `__kmpc_serialized_parallel'
undefined reference to `__kmpc_fork_call'
undefined reference to `__kmpc_global_thread_num'
undefined reference to `__kmpc_ok_to_fork'
Any help is appreciated.Thanks.
Andreas
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You must either use
ifc -openmp
as the link command, or supply -lguide as an argument, if you use gcc or ld as the link command.
You won't get anywhere without using one of the programs ifc, ifort, gcc, ld... as the link command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply.
Of course i use the ifc command. I ommited it in the command line posted, because i use a makefile for the compilation and this command line is pasted from there. Nevertheless the ifc command is already set in the Makefile.
Do you haveanother idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like you are not linking against the OpenMP library libguide.a, or the "portability" library.
The function references you quote should be resolved in the link, if the options -Vaxlib and -openmp are included in the ifc link command line.
The function references you quote should be resolved in the link, if the options -Vaxlib and -openmp are included in the ifc link command line.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page