Dear Antonio,
I use this HB_DateTimeToSeconds() function and get error below:
Compiling...
Harbour 3.2.0dev (r2404101339)
Copyright (c) 1999-2021, https://harbour.github.io/
Compiling 'testfV.prg' and generating preprocessed output to 'testfV.ppo'...
Lines 5063, Functions/Procedures 2
Generating C source output to 'testfV.c'... Done.
Embarcadero C++ 7.70 for Win32 Copyright (c) 1993-2023 Embarcadero Technologies, Inc.
testfV.c:
Turbo Incremental Link 6.97 Copyright (c) 1997-2022 Embarcadero Technologies, Inc.
Error: Unresolved external '_HB_FUN_HB_DATETIMETOSECONDS' referenced from D:\FWH2402\SAMPLES\TESTFV.OBJ
Error: Unable to perform link
* Linking errors *
How to use HB_DateTimeToSeconds() function?
- richard-service
- Posts: 815
- Joined: Tue Oct 16, 2007 8:57 am
- Location: New Taipei City, Taiwan
- Has thanked: 3 times
- Been thanked: 1 time
- Contact:
How to use HB_DateTimeToSeconds() function?
Best Regards,
Richard
Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
Richard
Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
- Enrico Maria Giordano
- Posts: 8783
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 8 times
- Contact:
Re: How to use HB_DateTimeToSeconds() function?
There is no such a function in the whole Harbour and xHarbour repository. Please check the function name.
- Antonio Linares
- Site Admin
- Posts: 42828
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 126 times
- Been thanked: 117 times
- Contact:
Re: How to use HB_DateTimeToSeconds() function?
Dear Richard,
Please copy testfv.prg source code here, thanks
Please copy testfv.prg source code here, thanks
Re: How to use HB_DateTimeToSeconds() function?
Hi Richard,
Could this feature be useful to you?
Massimo
Could this feature be useful to you?
Code: Select all | Expand
SecondsFrom1970()
#pragma BEGINDUMP
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include "hbapi.h"
HB_FUNC( SECONDSFROM1970 )
{
unsigned long count;
time_t *tmppointer=NULL;
count = time( tmppointer ) ;
hb_retnl( count ) ;
}
#pragma ENDDUMP