James Tabor wrote:
Hi!
i386-mingw32-gcc -D_WIN32_IE=0x0600 -D_WIN32_WINNT=0x0501 -I./include -DUNICODE -D_UNICODE -D__REACTOS__ -D__USE_W32API -D_HIDPI_ -D_HIDPI_NO_FUNCTION_MACROS_ -Wall -Werror -fno-builtin -I. -I../../include -I../../w32api/include -pipe -march=i486 -D_M_IX86 -g -c hid.c -o hid.o hid.c: In function `HidD_Hello': hid.c:374: warning: duplicate `const' make: *** [hid.o] Error 1
const PCHAR const HelloString = "Hello\n"; ^ | is that right?
I'm back online! James _______________________________________________ Ros-dev mailing list Ros-dev@reactos.com http://reactos.com:8080/mailman/listinfo/ros-dev
it should be right - it is a constant pointer to constant data. But i'm not 100% sure if it's just a c++ feature.
Best Regards Thomas