- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am using the mpeg4 decoder example to decode an mpeg4 file into yuv file. I am using also an yuv viewer coded with MFC that displays an yuv file into a window. Each project compile well and very good.
I have tried to use the two projects together : the decoder and the viwer. The idea is to decode the mpeg4 file into yuv and then view it with the viewer.
I have combined the two source codes into the same project. The compiler gives abnormal and strange errors.
The output of the comiler is the following:
1>------ Build started: Project: YUVviewer, Configuration: Debug Win32 ------
1>Compiling...
1>StdAfx.cpp
1> WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C2146: syntax error : missing ';' before identifier 'r_set'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(84) : error C2146: syntax error : missing ';' before identifier 'chns'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(84) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(84) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(85) : error C2079: 'vm_socket::sal' uses undefined struct 'sockaddr_in'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(86) : error C2079: 'vm_socket::sar' uses undefined struct 'sockaddr_in'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(87) : error C2148: total size of array must not exceed 0x7fffffff bytes
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(87) : error C2079: 'vm_socket::peers' uses undefined struct 'sockaddr_in'
1>Build log was saved at "file://d:YUVviewer_src20051DebugBuildLog.htm"
1>YUVviewer - 11 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I am using : - MSVC++ 8.0 (Visual studio 2005).
-Platform SDK v Septemeber 2007
-IPP 5.3
I have tried to compile with VC++7.1(Visual studio 2003) but the same problem remains.
Please help.
I am using the mpeg4 decoder example to decode an mpeg4 file into yuv file. I am using also an yuv viewer coded with MFC that displays an yuv file into a window. Each project compile well and very good.
I have tried to use the two projects together : the decoder and the viwer. The idea is to decode the mpeg4 file into yuv and then view it with the viewer.
I have combined the two source codes into the same project. The compiler gives abnormal and strange errors.
The output of the comiler is the following:
1>------ Build started: Project: YUVviewer, Configuration: Debug Win32 ------
1>Compiling...
1>StdAfx.cpp
1> WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C2146: syntax error : missing ';' before identifier 'r_set'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(84) : error C2146: syntax error : missing ';' before identifier 'chns'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(84) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(84) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(85) : error C2079: 'vm_socket::sal' uses undefined struct 'sockaddr_in'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(86) : error C2079: 'vm_socket::sar' uses undefined struct 'sockaddr_in'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(87) : error C2148: total size of array must not exceed 0x7fffffff bytes
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(87) : error C2079: 'vm_socket::peers' uses undefined struct 'sockaddr_in'
1>Build log was saved at "file://d:YUVviewer_src20051DebugBuildLog.htm"
1>YUVviewer - 11 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I am using : - MSVC++ 8.0 (Visual studio 2005).
-Platform SDK v Septemeber 2007
-IPP 5.3
I have tried to compile with VC++7.1(Visual studio 2003) but the same problem remains.
Please help.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
as I see the issues are related to socket specific data types. You may try to define _WIN32_WINNT=0x0500 for UMC projects.
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello again,
I have defined _WIN32_WINNT=0x0500 as youn said but the same problem remains.
I have also tried with the values 0x0501 and 0x0502 and the problem persists.
1>------ Build started: Project: YUVviewer, Configuration: Debug Win32 ------
1>Compiling...
1>YUVviewerDlg.cpp
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C2146: syntax error : missing ';' before identifier 'r_set'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(84) : error C2146: syntax error : missing ';' before identifier 'chns'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(84) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(84) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(85) : error C2079: 'vm_socket::sal' uses undefined struct 'sockaddr_in'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(86) : error C2079: 'vm_socket::sar' uses undefined struct 'sockaddr_in'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(87) : error C2148: total size of array must not exceed 0x7fffffff bytes
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(87) : error C2079: 'vm_socket::peers' uses undefined struct 'sockaddr_in'
1>Build log was saved at "file://d:Copy of YUVviewer_____src2005DebugBuildLog.htm"
1>YUVviewer - 11 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have defined _WIN32_WINNT=0x0500 as youn said but the same problem remains.
I have also tried with the values 0x0501 and 0x0502 and the problem persists.
1>------ Build started: Project: YUVviewer, Configuration: Debug Win32 ------
1>Compiling...
1>YUVviewerDlg.cpp
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C2146: syntax error : missing ';' before identifier 'r_set'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(84) : error C2146: syntax error : missing ';' before identifier 'chns'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(84) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(84) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(85) : error C2079: 'vm_socket::sal' uses undefined struct 'sockaddr_in'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(86) : error C2079: 'vm_socket::sar' uses undefined struct 'sockaddr_in'
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(87) : error C2148: total size of array must not exceed 0x7fffffff bytes
1>d:pfew_ipp-samples_p_5.3.083ipp-samplesaudio-video-codecscorevmincludesysvm_types_win32.h(87) : error C2079: 'vm_socket::peers' uses undefined struct 'sockaddr_in'
1>Build log was saved at "file://d:Copy of YUVviewer_____src2005DebugBuildLog.htm"
1>YUVviewer - 11 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As far as I understand the original IPP sample compiled ok for you, even with using VC2008, right?
Please check with MSDN what are the requirements or limitations for socket related headers (or data types).
Regards,
Vladimir
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page