On 10/25/07, Xiaofan Chen wrote: > > The offending codes are in the original source code package > (written for the free Visual C++ 2005 Express Edition). > http://ww1.microchip.com/downloads/en/DeviceDoc/PICkit2_PK2CMD_SourceV1_00.zip > > For example: > g++ -Wall -D_GNU_SOURCE -O2 -I/usr/local/include -DLINUX -DUSE_DETACH > -DCLAIM_USB -o cmd_app.o -c cmd_app.cpp > In file included from PICkitFunctions.h:4, > from cmd_app.h:2, > from cmd_app.cpp:3: > DeviceData.h:15: error: extra qualification 'CDeviceData::' on member > 'ClearAllData' > ... > class CDeviceData > { > public: > CDeviceData(void); > ~CDeviceData(void); > void CDeviceData::ClearAllData(unsigned int progMemSize, unsigned > short int eeMemSize, unsigned char numConfigs, > ... > > Once I remove the so called "extra qualification" within all the header > files, I can build the program and the resultant binary is again working. > > Jeff thinks this is proper C++ and he does not have the time and Linux > distros right now to debug the issues. So I will try to get the help here. > > What do you think? Could I add a compiler switch to solve the problem. > > CC=g++ > DBG=-O2 > OPTS=-Wall -D_GNU_SOURCE $(DBG) > CFLAGS=$(OPTS) -I$(LIBUSB)/include -DLINUX -DUSE_DETACH -DCLAIM_USB > OK, Google helps me to find the solution. http://www.mail-archive.com/help-gplusplus%40gnu.org/msg02131.html Change the C++ compiler flag solved the problem. OPTS=-Wall -D_GNU_SOURCE -fpermissive $(DBG) Why is the extra qualification wrong? Xiaofan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist