Forums - Error when building SplashScreen sample

1 post / 0 new
Error when building SplashScreen sample
abanoub_labeeb
Join Date: 18 Dec 13
Posts: 4
Posted: Sat, 2013-12-21 03:11
 
**** Build of configuration Debug for project SplashScreen ****
 
**** Internal Builder is used for build               ****
g++ -O0 -g3 -Wall -c -fmessage-length=0 -o jni\utils\FPSCounter.o ..\jni\utils\FPSCounter.cpp
cygwin warning:
  MS-DOS style path detected: ..\jni\utils\FPSCounter.cpp
  Preferred POSIX equivalent is: ../jni/utils/FPSCounter.cpp
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
..\jni\utils\FPSCounter.cpp: In member function 'void FPSCounter::FrameTick()':
..\jni\utils\FPSCounter.cpp:45:19: error: aggregate 'FPSCounter::FrameTick()::timeval tv' has incomplete type and cannot be defined
    struct timeval tv;
                   ^
..\jni\utils\FPSCounter.cpp:46:20: error: aggregate 'FPSCounter::FrameTick()::timezone tz' has incomplete type and cannot be defined
    struct timezone tz;
                    ^
..\jni\utils\FPSCounter.cpp:49:25: error: 'gettimeofday' was not declared in this scope
    gettimeofday(&tv, &tz);
                         ^
..\jni\utils\FPSCounter.cpp: In member function 'void FPSCounter::Reset()':
..\jni\utils\FPSCounter.cpp:92:19: error: aggregate 'FPSCounter::Reset()::timeval tv' has incomplete type and cannot be defined
    struct timeval tv;
                   ^
..\jni\utils\FPSCounter.cpp:93:20: error: aggregate 'FPSCounter::Reset()::timezone tz' has incomplete type and cannot be defined
    struct timezone tz;
                    ^
..\jni\utils\FPSCounter.cpp:95:25: error: 'gettimeofday' was not declared in this scope
    gettimeofday(&tv, &tz);
                         ^
Build error occurred, build is stopped
Time consumed: 264  ms.  
  
 
please help me?
  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.