This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compile "error 1705"


Am Dienstag, 6. Dezember 2005 10:49 schrieb Pierre-Matthieu anglade:
> It looks like there's one extra const which is not welcome. I can't
> test because I don't have your header "extra.h" but try:
> int movefile(const char*  filename, const char*  directory)
> --
> Pierre-Matthieu Anglade

Just try to compile this ...

AND LOOKUP YOUR COMPILER.  You don't use gcc.  Gcc actually understands that 
syntax !

extern int f(const char* const x, const char* const y);
int f(const char* const x, const char* const y) { return 0; }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]