- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are porting a fortran program from OpenVMS to Suse Linux SLES10 an have installed for testing the Intel Compiler Suite Professional Edition for Linux*. The application uses function qsort and mktime (VMS: decc$qsort and decc$mktime from VMS-CRTL-Library).
Function qsort is part of the intel fortran compatibility library, but the reference to function mktime isn't resolved, I get 'undefined reference to mktime_' when linking.
In which library can I find function mktime? Do I have to install the intel c/c++ compiler too for mktime is probably part of a library of the c compiler? What is to do to get the reference resolved?
Function qsort is part of the intel fortran compatibility library, but the reference to function mktime isn't resolved, I get 'undefined reference to mktime_' when linking.
In which library can I find function mktime? Do I have to install the intel c/c++ compiler too for mktime is probably part of a library of the c compiler? What is to do to get the reference resolved?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Michael,
The C-library mktime is defined in libc. To get rid of the trailing underscore, you can try something like this
in your Fortran program:
!dir$ attributes alias: 'mktime' :: mktime
Regards,
Steve D.
Intel Developer Support
The C-library mktime is defined in libc. To get rid of the trailing underscore, you can try something like this
in your Fortran program:
!dir$ attributes alias: 'mktime' :: mktime
Regards,
Steve D.
Intel Developer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
gcc counts as an ifort interoperable compiler for USE iso_c_binding, so you ought to be able to call mktime the portable way.

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