Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8282145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:16:15+00:00 2026-06-08T10:16:15+00:00

I have an annoying issue with my C++ programs. I have two programs (a

  • 0

I have an annoying issue with my C++ programs. I have two programs (a main program and a small helper program that feeds it for testing) which I recenty moved from one system to another. On the new system I started getting an unresolved reference error for the strptime method in the main program. The annoying thing is that the helper program also has the same strptime method and is able to call it without any difficulty. Strptime worked on the old system, both systems are running the same version of centos.

I’ve tried the obvious things to determine why my reference is unresolved. I tried copying every header my helper program had to my main program and it’s still unresolved. I checked eclipse compiler/linker settings and while the main program does a few more things (adds some symbols, includes a few extra folders, and links to the libld) none of the changes seem to explain why one program could recognize strptime. I tried to create a demo program that only used strptime and it was recognized. I’m at a lost now for why I’m getting the error. Can anyone suggest something else I could check for the potential caue of the unresolved reference?

I have verifid that time.h, which I’m linking, contains the strptime method, but it’s defined externally. Is there another .h that the time.h file should include which gives an inline definition of the method?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:16:17+00:00Added an answer on June 8, 2026 at 10:16 am

    I haven’t seen this before, but this might help:

    From the linux man pages…

    http://linux.die.net/man/3/strptime

    #define _XOPEN_SOURCE /* See feature_test_macros(7) */
    #include <time.h>
    

    _XOPEN_SOURCE – Feature Test Macro

    Defining this macro causes header files to expose definitions as follows:
    • Defining with any value exposes definitions conforming to POSIX.1, POSIX.2, and XPG4.
    • The value 500 or greater additionally exposes definitions for SUSv2 (UNIX 98).

    • (Since glibc 2.2) The value 600 or greater additionally exposes definitions for SUSv3 (UNIX 03; i.e., the POSIX.1-2001 base specification plus the XSI extension) and C99 definitions.

    • (Since glibc 2.10) The value 700 or greater additionally exposes definitions for SUSv4 (i.e., the POSIX.1-2008 base specification plus the XSI extension).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having an annoying issue. I have a script which uses the $_GET
I have a rather annoying issue that I solved using a simple recursive method
I have an annoying little issue here. I have code which loads content from
I have an annoying display issue in IE (7/8). I have some tabs that
I have ran into a really annoying issue which gives me this error: The
Small but annoying issue with crystal reports. I have a report connecting to a
Have an annoying issue, and I dont essentially know where it comes from :(
I have one very annoying issue with Eclipse under Windows. The key bindings for
We are having an annoying issue with Firefox and cookies. We have the following
I have an issue with importing the scipy.special package. It isn't harmful, just annoying/interesting.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.