View Single Post
Posts: 202 | Thanked: 385 times | Joined on Jul 2018
#110
Originally Posted by pichlo View Post
I haven't got the first idea. Have you tried asking Mr DuckDuckGo?

My naive guess would be that building it on a 32-bit architecture will always create a 32-bit RPM. On a 64-bit architecture you may have a choice. This looks promising, but I have not tried it myself.
How about this one ...

A cpp file has a section like this
Code:
void IpHeartBeatWatcher::run()
{
#ifdef SFOS
    handle_ = iphb_open(NULL);
    if (handle_ != NULL)
    {
        while ( doWatch_ )
        {
            time_t time = iphb_wait(handle_, 0, (2 * IPHB_GS_WAIT_10_MINS), 1);
            printf("%ld seconds since the epoch began\n", (long)time);
            printf("%s", asctime(gmtime(&time)));

            emit triggered();
And the make error says that
Code:
2 * IPHB_GS_WAIT_10_MINS
is 'not declared in this scope'.

I'm not even sure where the variable or the scope is... Seems like the IPBH_GS... line needs to be either declared before, or included in some other declaration, or...?

Thanks

(tried to get past it with a hack :
Code:
time_t seconds;
            seconds = time(NULL);
            printf("%ld seconds since the epoch began\n", (long)time);
but then it complained about ...gmtime(&time) in the next line, that it 'cannot convert' )

Last edited by levone1; 2021-07-30 at 20:29.
 

The Following User Says Thank You to levone1 For This Useful Post: