MorphOS Developer            
            
            
            
                             
             
                Posts: 1107 from 2003/6/11            
            
                From: Białystok...            
    
            
                            
                
			
				Seems that there is another problem. GetSysTime fills a timeval structure, adress of which is passed as argument. But you have only a pointer defined, not a structure. So unless MyTimeVal is initialized before, a random pointer is accessed. I would do it as follows:
Code:
struct timeval MyTimeVal;
GetSysTime(&MyTimeVal);
NewTimer = MyTimeVal.tv_secs * 1000000 + MyTimeVal.tv_micro;
About this "deferencing pointer to incomplete type" is hard to say anything not having the complete source file.