In the EasyBMP.h header, the following code:
#ifdef _MSC_VER
// MS Visual Studio gives warnings when using
// fopen. But fopen_s is not going to work well
// with most compilers, and fopen_s uses different
// syntax than fopen. (i.e., a macro won't work)
// So, we'lll use this:
#define _CRT_SECURE_NO_DEPRECATE
#endif
should be changed to this:
#ifdef _MSC_VER
// MS Visual Studio gives warnings when using
// fopen. But fopen_s is not going to work well
// with most compilers, and fopen_s uses different
// syntax than fopen. (i.e., a macro won't work)
// So, we'lll use this:
#ifndef _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE
#define _UNDEF_MSVC_CRT
#endif
#endif
and this should be appenden to the end of the header:
#ifdef _UNDEF_MSVC_CRT
#undef _CRT_SECURE_NO_DEPRECATE
#endif
Additionally, there is this warning for an unused variable:
easybmp.cpp(994) : warning C4101: 'ZeroWORD' : unreferenced local
variable
Paul Macklin
Compiling Problem
None
Public
|
Date: 2008-04-27 04:32
|
|
Date: 2008-04-27 04:31 Logged In: NO |
|
Date: 2008-01-25 21:17
|
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2008-04-27 04:32 | macklin01 |
| resolution_id | None | 2008-04-27 04:32 | macklin01 |
| close_date | - | 2008-04-27 04:32 | macklin01 |
| priority | 5 | 2007-02-22 18:25 | redbaran97 |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use