compile error: comparison of address of 'mongo_conn->conn.connected' not equal to a null pointer is always true change line 909 etc... to such as if(mongo_conn->conn.connected)... fixed!