[Bug 795426] New: cannot link with _ftime_s

bugzilla at redhat.com bugzilla at redhat.com
Mon Feb 20 13:50:08 UTC 2012

Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: cannot link with _ftime_s


           Summary: cannot link with _ftime_s
           Product: Fedora
           Version: rawhide
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: unspecified
          Priority: unspecified
         Component: mingw32-gcc
        AssignedTo: rjones at redhat.com
        ReportedBy: cfergeau at redhat.com
         QAContact: extras-qa at fedoraproject.org
                CC: rjones at redhat.com, kalevlember at gmail.com,
                    erik-fedora at vanpienbroek.nl,
                    fedora-mingw at lists.fedoraproject.org
    Classification: Fedora
      Story Points: ---
              Type: ---
        Regression: ---
        Mount Type: ---
     Documentation: ---

// $ i686-w64-mingw32-gcc -Wimplicit-function-declaration ./ftime.c
// /tmp/ccdYAiqO.o:ftime.c:(.text+0x16): undefined reference to`_imp___ftime_s'
// collect2: error: ld returned 1 exit status
// No warning, this means the function is declared in headers (gcc -E shows
// it comes from sec_api/sys/timeb_s.h) but it's not available at link time.

$ rpm -qa mingw32*


#include <stdlib.h> // for NULL
#include <sys/timeb.h>

int main(int argc, char **argv)

    return 0;

Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the mingw mailing list