내가 위의 오류를 얻고있다 포인터를 역 참조 :오류 : 컴파일시 불완전 형
구조 : 오류의 원인이 될 수 무엇
struct connection_handlers
{
int m_fd;
}
struct connection_handlers ** _queue;
int main()
{
_queue = (struct connection_handlers **) malloc (3* sizeof (struct connection_handlers *)); //Allocating space for 3 struct pointers
for (i=0;i<3;i++)
{
_queue[i]->m_fd=-1;
}//Initializing to -1
//.....
//I assign this varaible to the file descriptor returned by accept and then
//at some point of time i try to check the same variable and it gives compilatio error.
for (i=0;i<3;i++)
{
if (_queue[i]->m_fd!=-1)
}//It give error at this line.
}
.
감사
어떤 오류가 발생합니까? 더 많은 코드를 제공 할 수 있습니까? – bjskishore123