Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

An abnormal and strange problem with IPP

alibaba2005
Beginner
585 Views
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.
0 Kudos
3 Replies
Vladimir_Dudnik
Employee
585 Views

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

0 Kudos
alibaba2005
Beginner
585 Views
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 ==========

0 Kudos
Vladimir_Dudnik
Employee
585 Views

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

0 Kudos
Reply