Board index » cppbuilder » style of function definition is now obsolete

style of function definition is now obsolete


2003-11-01 08:32:58 AM
cppbuilder5
Source code I have inherited yields the following warnings and errors
when I build it using C++Builder 6. The code does appear to be
including the following...
#include <shellapi>
The errors are...
[C++ Warning] shellapi.h(55): W8054 Style of function definition is
now obsolete
[C++ Error] shellapi.h(55): E2275 { expected
[C++ Error] shellapi.h(57): E2141 Declaration syntax error
[C++ Error] shellapi.h(58): E2238 Multiple declaration for 'EXTERN_C'
[C++ Error] shellapi.h(57): E2344 Earlier declaration of 'EXTERN_C'
...
Any ideas how to overcome this noise?
Regards,
Michael Powell
 
 

Re:style of function definition is now obsolete

yes, remove the shellapi.h file from your folder that contains the source
files
and use allow the compiler to use its own lib version in its include
folder..
Mike wrote:
Quote
Source code I have inherited yields the following warnings and errors
when I build it using C++Builder 6. The code does appear to be
including the following...

#include <shellapi>

The errors are...

[C++ Warning] shellapi.h(55): W8054 Style of function definition is
now obsolete
[C++ Error] shellapi.h(55): E2275 { expected
[C++ Error] shellapi.h(57): E2141 Declaration syntax error
[C++ Error] shellapi.h(58): E2238 Multiple declaration for 'EXTERN_C'
[C++ Error] shellapi.h(57): E2344 Earlier declaration of 'EXTERN_C'
...

Any ideas how to overcome this noise?

Regards,
Michael Powell