Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Linker errors when using time() [modified]

Linker errors when using time() [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
testingdebuggingbeta-testinghelpquestion
3 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    capricious_001
    wrote on last edited by
    #1

    Hi guys, Basically I am getting unresolved external errors when trying to use the _strtime and _strdate functions. I have tried to include the following libraries in my project to aid the situation:

    LIBC.LIB
    LIBCMT.LIB
    MSVCRT.LIB

    But alas it doesnt work. Every single one of them conflict with one of the other libraries I have. These are the libraries, options and include files I have:

    shlwapi.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/testing_project.pdb" /debug /machine:I386 /out:"C:\testing_project.exe" /pdbtype:sept
    //Includes #include <windows.h> #include <string> #include <iostream> #include <fstream> #include <iomanip> #include <shlwapi.h> #include <time.h>

    `Anyone able to sign some light on the issue and see what I could do to make this work? Thanks, Robbie -- modified at 18:44 Wednesday 21st June, 2006`

    _ 1 Reply Last reply
    0
    • C capricious_001

      Hi guys, Basically I am getting unresolved external errors when trying to use the _strtime and _strdate functions. I have tried to include the following libraries in my project to aid the situation:

      LIBC.LIB
      LIBCMT.LIB
      MSVCRT.LIB

      But alas it doesnt work. Every single one of them conflict with one of the other libraries I have. These are the libraries, options and include files I have:

      shlwapi.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/testing_project.pdb" /debug /machine:I386 /out:"C:\testing_project.exe" /pdbtype:sept
      //Includes #include <windows.h> #include <string> #include <iostream> #include <fstream> #include <iomanip> #include <shlwapi.h> #include <time.h>

      `Anyone able to sign some light on the issue and see what I could do to make this work? Thanks, Robbie -- modified at 18:44 Wednesday 21st June, 2006`

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      Can you tell what type of application are you working on and what version of Visual Studio? Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

      C 1 Reply Last reply
      0
      • _ _AnsHUMAN_

        Can you tell what type of application are you working on and what version of Visual Studio? Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

        C Offline
        C Offline
        capricious_001
        wrote on last edited by
        #3

        Well its a server-client logging program, and I just want to get a string literal of the date in the form: 06/06/06 12:00:00AM As for the VS version, I'm using VC++ 6.0. Any ideas that could help me out Anshuman?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups