From: Patrick B. <pb...@cs...> - 2008-11-26 20:42:32
|
S.P...@lb... wrote: > Thanks Brian. I've tried that but still get the first > error. Is this a problem with the version of gcc I'm > using? > > Sion > > sion@compsci-macbook:/usr/share/player/examples/plugins/opaquedriver$ > g++ -shared -o opaquedriver.so opaquedriver.cc > -I/usr/include/player-2.0 > opaquedriver.cc: In function ‘void > OpaqueDriver_Register(DriverTable*)’: > opaquedriver.cc:94: warning: deprecated conversion from > string constant to ‘char*’ > Sion, This is warning that occurs with newer compilers when you pass a doubled quoted string into a function that expects a char*. Where if you pass a string in double quotes to a function that takes a const char* you won't get this warning. This is only a warning though and shouldn't stop normal compilation. You can fix this by either changing the type in the function to be const char* or explicitly casting the string constant to a char*. |