Re: string literal conversion problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jack,

I reread ISO 14882 4.2 and 4.10.  Hmm, not sure.

The VERY VERY VERY compliant and strict Edison Design Group C++ front end (http://www.edg.com/cpp.html) via Comeau (http://www.comeaucomputing.com/tryitout/) compiler reject your code.

argument of type "const char *" is incompatible with parameter of type "void *"

I'm thinking that your code is not 100% compliant.

You could use the GCC -fno-const-strings compiler flag to work around the issue that you ran into to with GCC.

Or you could change...
extern void setValue(void * value);
...to...
extern void setValue(void const* value);

Sincerely,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux