Answer the question
In order to leave comments, you need to log in
How to limit the library usage area?
Such a problem is that two libraries are connected in main, but it turned out that the same types are redefined in different ways, and a conflict arises that the "BOOL" type is defined twice through typedef, how to avoid this conflict?
Answer the question
In order to leave comments, you need to log in
main includes two libraries,
#ifndef BOOL
typedef ... BOOL // как вы там его определяете?
#endif
#include <xxx.h>
#undef BOOL
#include <yyy.h>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question