Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I only open configurations MEDIAINFO_TEXT_YES and MEDIAINFO_JSON_YES, the compilation fails #2104

Open
junerver opened this issue Aug 13, 2024 · 0 comments

Comments

@junerver
Copy link

D:/dev/Mine/C_Project/MediaInfoLib/Source/MediaInfo/MediaInfo_Inform.cpp:832:21: error: unknown type name 'Text'; did you mean 'text'?
if (Text)
^~~~
text
D:/dev/Mine/C_Project/MediaInfoLib/Project/CMake/../../Source/MediaInfo/File__Analyse_Automatic.h:1200:6: note: 'text' declared here
enum text
^
D:/dev/Mine/C_Project/MediaInfoLib/Source/MediaInfo/MediaInfo_Inform.cpp:832:25: error: expected unqualified-id
if (Text)
^
D:/dev/Mine/C_Project/MediaInfoLib/Source/MediaInfo/MediaInfo_Inform.cpp:844:21: error: unknown type name 'Text'; did you mean 'text'?
if (Text)
^~~~
text
D:/dev/Mine/C_Project/MediaInfoLib/Project/CMake/../../Source/MediaInfo/File__Analyse_Automatic.h:1200:6: note: 'text' declared here
enum text
^
D:/dev/Mine/C_Project/MediaInfoLib/Source/MediaInfo/MediaInfo_Inform.cpp:844:25: error: expected unqualified-id
if (Text)
^
D:/dev/Mine/C_Project/MediaInfoLib/Source/MediaInfo/MediaInfo_Inform.cpp:958:21: error: unknown type name 'Text'; did you mean 'text'?
if (Text)
^~~~
text
D:/dev/Mine/C_Project/MediaInfoLib/Project/CMake/../../Source/MediaInfo/File__Analyse_Automatic.h:1200:6: note: 'text' declared here
enum text
^
D:/dev/Mine/C_Project/MediaInfoLib/Source/MediaInfo/MediaInfo_Inform.cpp:958:25: error: expected unqualified-id
if (Text)
^

In line 687 of file MediaInfoLib/Source/MediaInfo_Inform.cpp, there is no judgment on MEDIAINFO_JSON_YES. Maybe it should be changed to:

#if defined(MEDIAINFO_TEXT_YES) && (defined(MEDIAINFO_HTML_YES) || defined(MEDIAINFO_XML_YES) || defined(MEDIAINFO_JSON_YES) || defined(MEDIAINFO_CSV_YES))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant