Monday, October 23rd 2017, 8:48pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

SvenKBach

Beginner

Date of registration: Feb 22nd 2016

Posts: 4

1

Thursday, November 24th 2016, 3:40pm

Generation of COPILE_TIME as a type of time_t

Hi!

I followed advice described at stackoverflow
but I could not get the project options correct to run either a pre-compile command

Source code

1
echo "#define COMPILE_TIME $(date '+%s')" > $(ProjectDir)/timestamp.h


or supply any additional arguments to the compiler like

Source code

1
-DCOMPILE_TIME=`date '+%s'`


What I am missing or not noticing?

SEGGER - Johannes

Super Moderator

Date of registration: Aug 31st 2012

Posts: 362

2

Wednesday, December 21st 2016, 9:47am

Hi,

data is an external tool, which is most probably only available on Linux.

Best regards
Johannes