c – Warning: assignment from incompatible pointer type

C – Warning: Assignment From Incompatible Pointer Type

c – Warning: assignment from incompatible pointer type

myPage and struct myPage are differing types. You might make them the identical type by altering the struct definition to:

typedef struct myPage {
    int pageNum;
} myPage;

or you could possibly simply use myPage * as an alternative of struct myPage *.

Youve outlined a type known as myPage, however you then have a struct member of type struct myPage. You must be constant. Heres a technique of fixing it:

typedef struct myPage{
    myPage* thePage;
    int loaded;
    int lastRef;
} myPageFrame;

c – Warning: assignment from incompatible pointer type

Related posts on C++ :

pymysql Error: File “/usr/local/lib/python2.7/site-packages/PyMySQL-1.0.2-py2.7.egg/pymysql/connections.py”, line 167 SyntaxError: invalid syntax

raceback (most up-to-date name final): File "log2user-real.py", line 49, in <module> db = create_engine("mysql+pymysql://root:{m_pass}@10.157.2.25:8306/log_user?charset=utf8".format(m_pass=m_pass)) File "<string>", line 2, in create_engine File "/usr/local/lib/python2.7/site-packages/sqlalchemy/util/deprecations.py", line 309,...
Avatar Of Budi Setiawan Budi Setiawan
31 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *