Add link timestamp to program

Sysprogs forums Forums VisualGDB Add link timestamp to program

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32493
    andrew
    Participant

    I’m trying to use the Project Properties’ “Linker -> Command Line -> Additional options” setting to add a build-timestamp to the program. It’s a beaglebone linux project being cross-compiled on Windows 10.

    Here is what I’ve tried:

    -Wl,--defsym,MVV2_TIMESTAMP="$(shell date /t)"

    -Wl,--defsym,MVV2_TIMESTAMP="$(shell date +s%)"

    -Wl,--defsym,MVV2_TIMESTAMP="$(date /t)"

    -Wl,--defsym,MVV2_TIMESTAMP="'date /t'"

    When I try to build the program using any of the above settings I get ld.exe:--defsym:0: syntax error

    What is the correct syntax? How can I see the exact command that VisualGDB is trying to execute?

    #32494
    support
    Keymaster

    It looks like your technical support period has expired. We would be happy to help you, however we would kindly ask you to renew your technical support on the following page first: https://sysprogs.com/splm/mykey

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.