Opened 10 years ago
Last modified 10 years ago
#1848 new defect
falla compilación con MSVC, clock_t undefined
| Reported by: | Jorge | Owned by: | Víctor de Buen Remiro |
|---|---|---|---|
| Priority: | highest | Milestone: | Mantainance |
| Component: | Kernel | Version: | head |
| Severity: | critical | Keywords: | |
| Cc: |
Description
Compiling...
oisxml.cpp
../bbasic\tol_btimer.h(37) : error C2146: syntax error : missing ';' before identifier 'created_'
../bbasic\tol_btimer.h(37) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
../bbasic\tol_btimer.h(37) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Refiriéndose al código:
//--------------------------------------------------------------------
class TOL_API BTimer
//--------------------------------------------------------------------
{
private:
//! Processor time used by the program when object is created or reset.
//! It's used as a timestamp
clock_t created_; // <= línea 37
Luego da otros errores quejándose también de clock_t:
../bbasic\tol_btimer.h(78) : error C2061: syntax error : identifier 'clock_t'
../bbasic\tol_btimer.h(80) : error C2061: syntax error : identifier 'clock_t'
../bbasic\tol_btimer.h(83) : error C2146: syntax error : missing ';' before identifier 'Clocks'
Change History (3)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Hay más ...
ratgra.cpp
9>../..\tol/config.h(12) : warning C4005: 'HAVE_DIRENT_H' : macro redefinition
.\config.h(9) : see previous definition of 'HAVE_DIRENT_H'
9>../..\tol/config.h(113) : warning C4005: 'HAVE_SYS_TIME_H' : macro redefinition
.\config.h(116) : see previous definition of 'HAVE_SYS_TIME_H'
9>../..\tol/config.h(119) : warning C4005: 'HAVE_UNISTD_H' : macro redefinition
.\config.h(128) : see previous definition of 'HAVE_UNISTD_H'
9>../..\tol/config.h(172) : warning C4005: 'TIME_WITH_SYS_TIME' : macro redefinition
.\config.h(167) : see previous definition of 'TIME_WITH_SYS_TIME'
9>../..\tol/config.h(186) : warning C4005: 'USE_DELAY_INIT' : macro redefinition
.\config.h(176) : see previous definition of 'USE_DELAY_INIT'
../btol/matrix_type\tol_mat.hpp(25) : fatal error C1083: Cannot open include file: 'values.h': No such file or directory
comment:3 Changed 10 years ago by
Note: See
TracTickets for help on using
tickets.

(In [6730]) refs #1848, msvc tiene time.h