Project

General

Profile

Bogue #735

utime compilation error

Added by gbdivers over 9 years ago. Updated about 9 years ago.

Status:
Fermé
Priority:
Urgent
Assignee:
Category:
Compilation
Target version:
Start date:
05/25/2010
Due date:
% Done:

0%

Estimated time:

Description

Messages d'erreur de compilation :

../../dev/src/core/utime.cpp: In member function ‘void QExtend::UTime::start()’:
../../dev/src/core/utime.cpp:57: error: aggregate ‘QExtend::timeval time_val’ has incomplete type and cannot be defined
../../dev/src/core/utime.cpp:58: error: ‘gettimeofday’ was not declared in this scope
make1: quittant le répertoire « /home/guillaume/qextend/branches/qextend-build-desktop/src »
make: quittant le répertoire « /home/guillaume/qextend/branches/qextend-build-desktop »
../../dev/src/core/utime.cpp: In member function ‘qreal QExtend::UTime::elapsed() const’:
../../dev/src/core/utime.cpp:64: error: aggregate ‘QExtend::timeval time_val’ has incomplete type and cannot be defined
../../dev/src/core/utime.cpp:65: error: ‘gettimeofday’ was not declared in this scope
make1: *** [utime.o] Erreur 1

Corrigé en remplaçant #include <time.h> (ligne 47 de utime.cpp) en #include <sys/time.h>

OS : ubuntu 10.4 64b ; Qt 4.7 beta

History

#1 Updated by gbdivers over 9 years ago

erreur de commit, j'ai modifier en #include <sys/time.h>

Vérifier que ça fonctionne encore de ton coté

#2 Updated by bobti89 over 9 years ago

  • Status changed from Assigné to Résolu

#3 Updated by johnlamericain over 9 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF