- Remove From My Forums
error C2220: warning treated as error — no ‘object’ file generated Driver
-
Question
-
Hi,
I have been trying to develop a basic Driver for Windows 7 x86, I have followed the MSDN tutorial to develop a basic Driver. The code followed in MSDN tutorial works although, I changed it a little bit:
#include <ntddk.h> NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) { DbgPrint("Hello, World"); return STATUS_SUCCESS; }
I also researched into to this and removed — /WX (Treat Warnings as Errors) to prevent warnings to be treated as error.
With this changed I am still getting the same errors:
error C2220: warning treated as error - no 'object' file generated C:KmdfSmallKmdfSmallDriver.c
This should have been wipedremoved by the change in setting. Or is this supposed to happen? I only ever truly developed Drivers on Windows XP, so I am seeing if this works, although logically it should work.
Anyways, does anyone have a solution to this problem? Or is this syntactical Error?
Any help will be appreciated,
Rohan Vijjhalwar
Answers
-
Assuming this is the Win8 WDK, I suspect you removed the -WX from the wrong configuration. The warnings are probably because you are not referencing the arguments of DriverEntry. It may be easier to just use the UNREFERENCED_PARAMETER macro to
take care of the problem.Using /W4 and /WX are wise things to do in all cases.
Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr
-
Marked as answer by
Sunday, October 20, 2013 9:53 PM
-
Marked as answer by
-
I suspect the «error» is that you have unreferenced parameters. If you lower your warning level (default is 4), or use the UNREFERENCED_PARAMETER macro on your two parameters, you will solve the problem. Also, instead of NTDDK.H, you should probably
use WDM.H because it is more comprehensive — although it won’t matter for such a simple example.-Brian
Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting.
-
Marked as answer by
RRohanR
Sunday, October 20, 2013 9:52 PM
-
Marked as answer by
I have below class
class Cdata12Mnt
{
public:
char IOBname[ID1_IOB_PIOTSUP-ID1_IOB_TOP][BOADNAM_MAX + 4];
char ExIOBname[ID1_MAX_INF-ID1_EXIOB_U1TOP][BOADNAM_MAX + 4];
char cflpath[256];
char basetext[256];
UINT database[ID1_MAX_INF];
int State;
public:
char SelectPath[256];
public:
int GetIOBName(int slt,char *Name);
Cdata12Mnt(char *SelectPath);
virtual ~Cdata12Mnt();
int GetValue(int id);
int GetState() { return State; }
};
And I have function as below
Cdata12Mnt::Cdata12Mnt(char *SelectPath)
{
SCTReg reg;
char buf[256], *cpnt, *npnt, *bpnt1, *bpnt2;
char *startcode[] = {"CNTL_CODE ","SEGMENT "};
char *stopcode = {"END_CNTL_CODE "};
FILE *fp;
int ii, infl;
State = 0;
for (ii = 0; ii < (ID1_IOB_PIOTSUP - ID1_IOB_TOP); ii++) {
strcpy(IOBname[ii], "");
}
for (ii = 0; ii < (ID1_MAX_INF-ID1_EXIOB_U1TOP); ii++) {
**strcpy(ExIOBname[ii], "");**
}
sprintf(cflpath, "%s\%s", SelectPath, CDATAFL);
if ((fp = fopen(cflpath,"r"))!=NULL) {
for (ii = 0, infl = 0; fgets(buf, 256, fp) != NULL;) {
if (infl == 0 && strncmp(buf, startcode[0], strlen(startcode[0])) == 0) {
if ((cpnt = strchr(&buf[strlen(startcode[0])],*startcode[1])) != NULL) {
if (strncmp(cpnt,startcode[1], strlen(startcode[1])) == 0) {
infl = 1;
continue;
}
}
}
if (infl == 0) {
continue;
}
if (strncmp(buf,stopcode,strlen(stopcode))==0) {
if (ii == ID1_EXIOB_U1TOP) {
for (int nDataNumber = ii; nDataNumber < ID1_MAX_INF; nDataNumber++) {
database[nDataNumber] = 0;
}
}
infl = 0;
continue;
}
if (strncmp(&buf[14], " DD ", 4) == 0) {
if ((cpnt=strchr(buf, ';')) != NULL) {
*cpnt = '';
}
if (ii >= ID1_IOB_TOP && ii < ID1_IOB_PIOTSUP) {
if ((bpnt1 = strchr(cpnt + 1,'(')) != NULL && (bpnt2=strchr(cpnt + 1,')'))!=NULL && bpnt1 < bpnt2) {
*bpnt2 = '';
*(bpnt1 + BOADNAM_MAX + 1) = '';
strcpy(IOBname[ii-ID1_IOB_TOP], bpnt1 + 1);
}
}
if (ii >= ID1_EXIOB_U1TOP && ii < ID1_MAX_INF) {
if ((bpnt1 = strchr(cpnt + 1, '(')) != NULL && (bpnt2=strchr(cpnt+1,')'))!=NULL && bpnt1 < bpnt2) {
*bpnt2='';
*(bpnt1+BOADNAM_MAX+1)='';
strcpy(ExIOBname[ii-ID1_EXIOB_U1TOP], bpnt1 + 1);
}
}
for (cpnt = &buf[18]; cpnt != NULL;) {
if ((npnt=strchr(cpnt, ',')) != NULL)
*npnt='';
}
if (strchr(cpnt,'H')!=NULL) {
sscanf(cpnt,"%XH",&database[ii]);
} else {
database[ii]=atoi(cpnt);
}
ii++;
cpnt = npnt;
if (cpnt != NULL) {
cpnt++;
}
}
}
}
fclose(fp);
} else {
State=-1;
}
When I compile this function in Visual studio 2008, it gives me error at strcpy(IOBname[ii],"");
as below
error C2220: warning treated as error — no ‘object’ file generated
How to fix this error?
Comments
agirault
changed the title
MSVC 2017 gmock error C2220: warning treated as error — no ‘object’ file generated
MSVC 2017 error C2220: warning treated as error — no ‘object’ file generated
Jan 2, 2018
heinrich5991
added a commit
to heinrich5991/ddnet
that referenced
this issue
Jan 5, 2018
Warnings for GTest broke the build because GTest turns warnings into errors, which is undesirable if GTest is just used as a dependency. See also google/googletest#1373.
bors bot
added a commit
to ddnet/ddnet
that referenced
this issue
Jan 10, 2018
978: Disable warnings for GTest r=Learath2 a=heinrich5991 Warnings for GTest broke the build because GTest turns warnings into errors, which is undesirable if GTest is just used as a dependency. See also google/googletest#1373.
This was referenced
May 4, 2018
hobu
mentioned this issue
Jun 10, 2019
facebook-github-bot
pushed a commit
to facebook/wangle
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebook/fb303
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebookarchive/fbmeshd
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebookincubator/fizz
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to rsocket/rsocket-cpp
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebook/watchman
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebook/fboss
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebook/proxygen
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebookincubator/below
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebookincubator/mvfst
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebookarchive/bistro
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebookarchive/fbzmq
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebook/folly
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebook/fbthrift
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebook/sapling
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebookexperimental/rust-shed
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebook/openr
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebookincubator/katran
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebookarchive/LogDevice
that referenced
this issue
Oct 1, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
facebook-github-bot
pushed a commit
to facebookincubator/reindeer
that referenced
this issue
Oct 2, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
lukaspiatkowski
pushed a commit
to lukaspiatkowski/rust-shed
that referenced
this issue
Oct 21, 2020
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
dotconnor
pushed a commit
to indaq-cloud/folly
that referenced
this issue
Mar 19, 2021
Summary: hitting google/googletest#1373 Reviewed By: mjoras Differential Revision: D23785392 fbshipit-source-id: 114849ed966fb196bb8392bd71ee3c2972834279
Содержание
- MSVC 2017 error C2220: warning treated as error — no ‘object’ file generated #1373
- Comments
- Scenario 1 (gmock)
- Scenario 2 (gtest & gtestmain)
- error C2220 #76
- Comments
- error C2220 #76
- Comments
- Visual Studio 2015 Warnings after upgrade #222
- Comments
- Error c2220 warning treated as error no object file generated
- Answered by:
- Question
- Answers
- All replies
MSVC 2017 error C2220: warning treated as error — no ‘object’ file generated #1373
git tag: release-1.8.0
configure: cmake 3.10.0
generator: Visual studio 15 2017 Win64
Scenario 1 (gmock)
- BUILD_GMOCK:BOOL=ON
- BUILD_GTEST:BOOL=ON
Scenario 2 (gtest & gtestmain)
- BUILD_GMOCK:BOOL=OFF
- BUILD_GTEST:BOOL=ON
The text was updated successfully, but these errors were encountered:
It would probably be good to disable -Werror or /WX for users of this library – compilers can change, new warnings can be generated. It should still be enabled for your own tests, say on CI or so.
This appears to have been fixed in Visual Studio 15.5.5. 718fd88 works well for me.
Is there any simple way (like cmake argument) to skip this error when building release-1.8.0 tag?
Actually warning itself (not the error posted above) gives a good clue.
Warning:
googletestincludegtestgtest-printers.h(639):
warning C4996: ‘std::tr1’: warning STL4002: The non-Standard std::tr1 namespace and TR1-only machinery are deprecated and will be REMOVED. You can define _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING to acknowledge that you have received this warning. [buildgooglemockgmock.vcxproj]
So I ran cmake like this and it helped:
cmake . -DCMAKE_CXX_FLAGS=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING
Although you can get a different warning, then this won’t work obviously.
In general to switch off /WX completely you can call like this: cmake . «-DCMAKE_CXX_FLAGS=/w»
Источник
error C2220 #76
Hello,I follow the steps but encountered an error c2220 while running build.cmd.
and I try to disable treat warnings as errors but it`s not work.
Is that because my system language is Chinese?
The text was updated successfully, but these errors were encountered:
Looks like the file contains a character that cannot be returned in your code page, see https://msdn.microsoft.com/en-us/library/ms173715.aspx. Can you try saving that for (half.h) as utf8 ?
I have verified that this file from the Eigen library does indeed contain characters that should have been encoded at UTF-8. This is how I did it. When I use Visual Studio to save the file with ansii encoding like this:
then you will see Visual Studio correctly report the error:
But if you save it with this encoding then everything is fine, and this should work on your machine.
But the characters in the file that are causing this problem are probably in every single Eigen file because it is part of the copyright header. Specifically it is the special curly quotes used in this part of the header:
If you replace the curly quotation characters with simple double quotes «» then that should also fix it.
Technically this is a bug in the Eigen library, they should have UTF-8 encoded all their files. So if you have a tool that can utf-8 encode all the Eigen files then I would use that just in case there are any other special characters used anywhere. Trick is that tool probably needs to load them as Western European Codepage 28591, and not the default code page of the system. It is your default code page that does not contain those special characters.
Источник
error C2220 #76
Hello,I follow the steps but encountered an error c2220 while running build.cmd.
and I try to disable treat warnings as errors but it`s not work.
Is that because my system language is Chinese?
The text was updated successfully, but these errors were encountered:
Looks like the file contains a character that cannot be returned in your code page, see https://msdn.microsoft.com/en-us/library/ms173715.aspx. Can you try saving that for (half.h) as utf8 ?
I have verified that this file from the Eigen library does indeed contain characters that should have been encoded at UTF-8. This is how I did it. When I use Visual Studio to save the file with ansii encoding like this:
then you will see Visual Studio correctly report the error:
But if you save it with this encoding then everything is fine, and this should work on your machine.
But the characters in the file that are causing this problem are probably in every single Eigen file because it is part of the copyright header. Specifically it is the special curly quotes used in this part of the header:
If you replace the curly quotation characters with simple double quotes «» then that should also fix it.
Technically this is a bug in the Eigen library, they should have UTF-8 encoded all their files. So if you have a tool that can utf-8 encode all the Eigen files then I would use that just in case there are any other special characters used anywhere. Trick is that tool probably needs to load them as Western European Codepage 28591, and not the default code page of the system. It is your default code page that does not contain those special characters.
Источник
Visual Studio 2015 Warnings after upgrade #222
When opening the solution for the first time, and building in Release/Win32, I got the following:
1>C:Program Files (x86)Windows Kits8.1Includeumdbghelp.h(1544): error C2220: warning treated as error — no ‘object’ file generated
1>C:Program Files (x86)Windows Kits8.1Includeumdbghelp.h(1544): warning C4091: ‘typedef ‘: ignored on left of » when no variable is declared
1>C:Program Files (x86)Windows Kits8.1Includeumdbghelp.h(3190): warning C4091: ‘typedef ‘: ignored on left of » when no variable is declared
2>C:Program Files (x86)Windows Kits8.1Includeumdbghelp.h(1544): error C2220: warning treated as error — no ‘object’ file generated (compiling source file minidump_generator.cc)
2>C:Program Files (x86)Windows Kits8.1Includeumdbghelp.h(1544): warning C4091: ‘typedef ‘: ignored on left of » when no variable is declared (compiling source file minidump_generator.cc)
2>C:Program Files (x86)Windows Kits8.1Includeumdbghelp.h(3190): warning C4091: ‘typedef ‘: ignored on left of » when no variable is declared (compiling source file minidump_generator.cc)
2>C:Program Files (x86)Windows Kits8.1IncludeumDbgHelp.h(1544): error C2220: warning treated as error — no ‘object’ file generated (compiling source file client_info.cc)
2>C:Program Files (x86)Windows Kits8.1IncludeumDbgHelp.h(1544): warning C4091: ‘typedef ‘: ignored on left of » when no variable is declared (compiling source file client_info.cc)
2>C:Program Files (x86)Windows Kits8.1IncludeumDbgHelp.h(3190): warning C4091: ‘typedef ‘: ignored on left of » when no variable is declared (compiling source file client_info.cc)
3>C:Program Files (x86)Windows Kits8.1IncludeumDbgHelp.h(1544): error C2220: warning treated as error — no ‘object’ file generated
3>C:Program Files (x86)Windows Kits8.1IncludeumDbgHelp.h(1544): warning C4091: ‘typedef ‘: ignored on left of » when no variable is declared
3>C:Program Files (x86)Windows Kits8.1IncludeumDbgHelp.h(3190): warning C4091: ‘typedef ‘: ignored on left of » when no variable is declared
2>C:Program Files (x86)Windows Kits8.1IncludeumDbgHelp.h(1544): error C2220: warning treated as error — no ‘object’ file generated (compiling source file crash_generation_server.cc)
2>C:Program Files (x86)Windows Kits8.1IncludeumDbgHelp.h(1544): warning C4091: ‘typedef ‘: ignored on left of » when no variable is declared (compiling source file crash_generation_server.cc)
2>C:Program Files (x86)Windows Kits8.1IncludeumDbgHelp.h(3190): warning C4091: ‘typedef ‘: ignored on left of » when no variable is declared (compiling source file crash_generation_server.cc)
4>—— Build started: Project: renderdoc, Configuration: Release Win32 ——
4>LINK : fatal error LNK1181: cannot open input file ‘C:srcrenderdocrenderdoc3rdpartybreakpadWin32Releasecrash_generation_client.lib’
5>—— Build started: Project: renderdoccmd, Configuration: Release Win32 ——
5> renderdoccmd_win32.cpp
5>C:Program Files (x86)Windows Kits8.1IncludeumDbgHelp.h(1544): error C2220: warning treated as error — no ‘object’ file generated
5>C:Program Files (x86)Windows Kits8.1IncludeumDbgHelp.h(1544): warning C4091: ‘typedef ‘: ignored on left of » when no variable is declared
5>C:Program Files (x86)Windows Kits8.1IncludeumDbgHelp.h(3190): warning C4091: ‘typedef ‘: ignored on left of » when no variable is declared
========== Build: 0 succeeded, 5 failed, 11 up-to-date, 0 skipped ==========
It seems to be all in a Windows header, but obviously doesn’t build out of the box on this system.
The text was updated successfully, but these errors were encountered:
Does it also do this if you move the solution to the 10.0.10240.x or 10.0.10586.0 SDKs?
I’ve always handpatched away the warnings in dbghelp.h and suchlike in previous builds of my software, as they to my knowledge are not circumventable.
Created pull request 223: #223
This is kind of ridiculous that microsoft haven’t fixed this. I remember encountering this before win10 came out in one of their pre-release SDKs and I assumed it’d be fixed by release.
RE: The pull request I’d rather not make that change everywhere, especially if it’s needed in breakpad — I avoid making non trivial in-repo changes to external libraries so in that case it’d need to have a separate fork set up, apply the changes, and sync to my fork.
I think a better solution is as @zao suggested, just hand-patch the warnings in dbghelp.h and include it in renderdoc’s source tree and #include that. It’s a bit more awkward to find a location since it’s needed in several different places. I think the best place is to put it in renderdoc/3rdparty/dbghelp/dbghelp.h and instead of doing the #pragma push/pop dance you’d do #include dbghelp/dbghelp.h — I think all projects should have renderdoc/3rdparty in their include search path. Maybe pdblocate won’t, in which case just add it.
Not a particularly pleasant solution, but that’s how it works cleaning up someone else’s mess :(.
I’m a bit concerned that including DbgHelp.h from a particular Windows SDK version might cause problems with other Windows SDK versions. do you have any testing to cover this? I don’t want to break something down the line.
Alternately we could simply suppress this warning in the breakpad project and use the push/pop in the renderdoc-owned code. (Sorry, I hadn’t noticed that you pull in some third party code)
Yeh I can understand that. It should be fine though as I already ship a bunch of sdk headers for d3d to remove dependency on the sdk. The dbghelp api is stable so there shouldn’t be any issue.
Why not simply have a rd_dbghelp.h which solely consist of the #pragma to disable warnings and includes the MSFT ? That way you don’t have a local copy, and you can protect the pragmas with a version check, and warnings are fixed as well.
Источник
Error c2220 warning treated as error no object file generated
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Answered by:
Question
vsprintf(buf, s, va);
The Visual Studio 2005 Express Edition compiler gives the following error:
.strgen.c(87) : error C2220: warning treated as error — no ‘object’ file generated
.strgen.c(87) : warning C4996: ‘vsprintf’ was declared deprecated
What do I do? What do I replace it with? Please help. Thank you.
Answers
That is because vssprintf_s takes a different set of parameters:
int vsprintf_s(
char * buffer ,
size_t sizeInBytes ,
const char * format ,
va_list argptr
);
// crt_vsprintf_s.c
// This program uses vsprintf_s to write to a buffer.
// The size of the buffer is determined by _vscprintf.
#include
#include
void test( char * format, . )
<
va_list args;
int len;
char * buffer;
va_start( args, format );
len = _vscprintf( format, args )
// _vscprintf doesn’t count + 1;
// terminating ‘’
buffer = malloc( len * sizeof(char) );
vsprintf_s( buffer, len, format, args );
printf( buffer );
free( buffer );
>
int main( void )
<
test( «%d %c %dn», 123, ‘
If you look up in the documentation it states:
These functions are deprecated because more secure versions are available; see vsprintf_s, vsprintf_s_l, vswprintf_s, _vswprintf_s.
So I would probably start with those. 😉
vsprintf_s(buf, s, va);
and still it sprouts some errors. I cannot find documentation for them.
Источник
Hi Surbhi ,
The attach media is not authorising me to attach the file . So i am just copying the content of the system analyser file .
Intel® Media Software Development Kit
System Analyzer
Overview
Features
System Requirements
Using the Software
Known Limitations
Legal Information
Overview
The Intel® Media SDK System Analyzer utility analyzes the system and reports back Intel Media SDK related capabilities, driver and components status. The tool can be used to determine environment issues with regards to specific version of Intel Media SDK or Intel® HD Graphics driver.
Features
When executed, the tool reports back the following information in clear text:
- 1. Intel® Media SDK API version support matrix determining if software or hardware implementation is available. If the hardware device is located on non-default adapter, the Intel graphics adapter number is specified (if active).
- 2. Enumerates the installed graphic adapters. Active adapter is marked.
- 3. Provides basic system information, such as CPU name and OS type.
- 4. Lists installed Intel Media SDK packages/versions.
- 5. Lists the installed Intel Media SDK Microsoft* DirectShow* filters.
- 6. Lists the installed Intel Media SDK Microsoft* Media Foundation Transforms (MFT).
- 7. Provides some tips for solutions in case either software or hardware implementation does not work.
System Requirements
See <install-folder>mediasdk_release_notes.rtf for system requirements.
Using the Software
Execute “<install-folder>toolsmediasdk_sys_analyzerwin32sys_analyzer.exe” or
“<install-folder>toolsmediasdk_sys_analyzerx64sys_analyzer.exe”
The tool will start reporting system status immediately. When done the user can exit the tool by pressing any key.
Note: Querying the system for installed Intel® Media SDK packages may take some time. Please be patient.
Example Output:
Intel Media SDK System Analyzer (64 bit)
The following versions of Media SDK API are supported by platform/driver:
Version Target Supported Dec Enc
1.0 HW Yes X X
1.0 SW Yes X X
1.1 HW Yes X X
1.1 SW Yes X X
1.3 HW Yes X X
1.3 SW Yes X X
1.4 HW Yes X X
1.4 SW Yes X X
1.5 HW No
1.5 SW Yes X X
1.6 HW No
1.6 SW Yes X X
1.7 HW No
1.7 SW No
Graphics Devices:
Name Version State
Intel(R) HD Graphics 3000 9.17.10.2857 Active
System info:
CPU: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz
OS: Microsoft Windows 7 Enterprise
Arch: 64-bit
Installed Media SDK packages (be patient…processing takes some time):
Intel« Media SDK 2013 (x64)
Installed Media SDK DirectShow filters:
Intel« Media SDK H.264 Encoder :
C:Program FilesIntelMedia SDK 2013samples_binx64h264_enc_filter.dll
Intel« Media SDK AAC Decoder :
C:Program FilesIntelMedia SDK 2013samples_binx64imc_aac_dec_ds.dll
…
Installed Intel Media Foundation Transforms:
Intel« Hardware VC-1 Decoder MFT : {059A5BAE-5D7A-4C5E-8F7A-BFD57D1D6AAA}
Intel« Media SDK H.264 Decoder MFT : {0855C9AC-BC6F-4371-8954-671CCD4EC16F}
…
Analysis complete… [press ENTER]
A few command line options are also available:
-skipPackage : Skip query for installed Media SDK packages
-skipDShow : Skip query for installed DirectShow filters
-skipMFT : Skip query for installed MFTs
-skipWait : Do not wait for user key press on analysis completion
Known Limitations
- • The tool may not be able to provide a full report in case Microsoft* Windows* Management Instrumentation (WMI) service is not running. If you encounter this issue, please explore if it is possible to activate this feature via Microsoft Windows Control Panel settings on your machine.
The video file was a normal mp4 file . Info regarding that file is :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘f.mp4’:
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2015-05-29 11:56:22
Duration: 00:00:59.72, start: 0.000000, bitrate: 530 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640×360 [SAR 1:1 DAR 16:9], 431 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
Metadata:
creation_time : 2015-05-29 11:56:22
handler_name : IsoMedia File Produced by Google, 5-11-2011
Thanks ,
Shiwani
Is this the AE CS6 SDK for Windows by chance? I am still very new to AE plugin development, but I recall a few months ago back when I started messing around with this stuff I was getting the same kind of error when trying to add a checkbox parameter to my plugin. Since I was starting fresh and using CS5 did not cost me any functionality I just rolled back, and thus far have not really had too many SDK related issues with the CS5 SDK, just issues with my own code and trying to get used to AE development
Fair warning, I tried figuring this out from the link below months ago and I never got it working right, so I just rolled back my SDK version I was building against from CS6 to CS5 and my checkboxes started working without any issues.
I also have compiled against the CS5 SDK on MacOS without any issues if you were to end up going that route, though it could simply be my inexperience talking here…but here are my findings
Google translate will be your friend on this one by the way…
Shortened Link: http://bit.ly/UbIxkz
Original Link: http://ae-users.com/jp/tutorials/2012/12/after-effects%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%AE%…
The breakdown of what I assumed to be a CS6 SDK bug when I got started was proposed from the site to be the following:
Error 1:
PR_Public.h on approx line number 5 is a character that needs to come out, right before «2005 by Adobe Systems Inc.» is an imporperly encoded character
Error 2:
Param_Utils.h on about line 116 is a functions called PF_ADD_CHECKBOX is the one you are likely looking for
The proposed solution was to replace the following on approx line 123
Bad Line: def.u.bd.dephault = def.u.bd.value;
Good Line: def.u.bd.dephault = (PF_Boolean) def.u.bd.value;
so it would end up looking like this:
#define PF_ADD_CHECKBOX(NAME_A, NAME_B, DFLT, FLAGS, ID)
do {
PF_Err priv_err = PF_Err_NONE;
def.param_type = PF_Param_CHECKBOX;
PF_STRCPY(def.name, NAME_A);
def.u.bd.u.nameptr = (NAME_B);
def.u.bd.value = (DFLT);
def.u.bd.dephault = (PF_Boolean)def.u.bd.value;
def.flags |= (FLAGS);
def.uu.id = (ID);
if ((priv_err = PF_ADD_PARAM(in_data, -1, &def)) != PF_Err_NONE) return priv_err;
} while (0)
От: |
Ulitka
|
http://lazarenko.me | |
Дата: | 09.04.08 13:03 | ||
Оценка: |
-1 |
Здравствуйте, Аноним, Вы писали:
А>Как я понял, C2220 происходит из-за deprecated-функций.
Часто такие директивы спасают отцов русской демократии:
_CRT_SECURE_NO_WARNINGS
_SCL_SECURE_NO_WARNINGS
От: | Аноним | ||
Дата: | 07.04.08 11:08 | ||
Оценка: |
Есть старый проект, который (не мною) разрабатывался еще на VC++ 6.0, пытаюсь его откомпилировать в студии 2005 и получаю пару тысяч предупреждений о deprecated функциях и несколько сотен одинаковых ошибок вида:
C2220: warning treated as error — no ‘object’ file generated.
Как я понял, C2220 происходит из-за deprecated-функций.
Сосбственно вопрос, как отключить эти ошибки, вроде бы в свойствах проекта можно выставить Treat Warnings As Error в состояние No вместо /WX , но ошибки все равно выдаются.
От: |
Vain
|
google.ru | |
Дата: | 07.04.08 12:25 | ||
Оценка: |
Здравствуйте, Аноним, Вы писали:
А>Есть старый проект, который (не мною) разрабатывался еще на VC++ 6.0, пытаюсь его откомпилировать в студии 2005 и получаю пару тысяч предупреждений о deprecated функциях и несколько сотен одинаковых ошибок вида:
А>C2220: warning treated as error — no ‘object’ file generated.
А>Как я понял, C2220 происходит из-за deprecated-функций.
А>Сосбственно вопрос, как отключить эти ошибки, вроде бы в свойствах проекта можно выставить Treat Warnings As Error в состояние No вместо /WX , но ошибки все равно выдаются.
Ищите в коде pragma warning, которая тоже умеет это делать.
[In theory there is no difference between theory and practice. In
practice there is.]
[Даю очевидные ответы на риторические вопросы]
От: |
MasterZiv
|
||
Дата: | 07.04.08 16:21 | ||
Оценка: |
Аноним 527 пишет:
> Есть старый проект, который (не мною) разрабатывался еще на VC++ 6.0,
> пытаюсь его откомпилировать в студии 2005 и получаю пару тысяч
Вот-вот это обсуждали, поищите …
Posted via RSDN NNTP Server 2.1 beta
Re[2]: Как побороть C2220
От: | Аноним | ||
Дата: | 08.04.08 06:14 | ||
Оценка: |
Здравствуйте, MasterZiv, Вы писали:
MZ>Вот-вот это обсуждали, поищите …
Прямо, чтоб вот-вот? Как-то то, что нашёл, по-моему, не мой случай. То есть, чтобы из-за deprecated вообще не компилировалось. Хочется сначала от таких тупых ошибок избавиться, а потом уже более внимательно учесть
несоответствия с 2005-ой в плане размера некоторых типов и т.п.
Вообще-то говоря, речь идет о недавно открытых фирмой Cognitive Tecnologies исходниках системы системы оптического распознавания Cuneiform, новость здесь
Исходники (смесь С и C++) здесь
Я раньше опыта разгребания подобных чужих проектов не имел, захотелось для начала хотя бы откомпилировать в соответствии с описанием, но вот проблемы на ровном месте.
Re[2]: Как побороть C2220
От: | Аноним | ||
Дата: | 08.04.08 06:22 | ||
Оценка: |
Здравствуйте, Vain, Вы писали:
V>Здравствуйте, Аноним, Вы писали:
А>>Есть старый проект, который (не мною) разрабатывался еще на VC++ 6.0, пытаюсь его откомпилировать в студии 2005 и получаю пару тысяч предупреждений о deprecated функциях и несколько сотен одинаковых ошибок вида:
А>>C2220: warning treated as error — no ‘object’ file generated.
А>>Как я понял, C2220 происходит из-за deprecated-функций.
А>>Сосбственно вопрос, как отключить эти ошибки, вроде бы в свойствах проекта можно выставить Treat Warnings As Error в состояние No вместо /WX , но ошибки все равно выдаются.
V>Ищите в коде pragma warning, которая тоже умеет это делать.
- Переместить
- Удалить
- Выделить ветку
Пока на собственное сообщение не было ответов, его можно удалить.