Thread: mingw error message

  1. #1
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203

    Talking mingw error message

    This isn't excactly c++, so I posted it in general?
    Can any tell me what this error code from mingw c++ means?
    default argument given for parameter 7 of `
    Mapper<Type>::Mapper(long unsigned int, long unsigned int, long double, long
    double, long double, long double, bool (*)(const Type*, RGBQUAD*, long
    unsigned int) = defConversion<Type>)
    '
    after previous specification in `
    Mapper<Type>::Mapper(long unsigned int, long unsigned int, long double, long
    double, long double, long double, bool (*)(const Type*, RGBQUAD*, long
    unsigned int) = defConversion<Type>)'


    Ps. 'Type' is a template parameter
    the 7th parameter is a function pointer and I have typed the same spellings both in the prototype and defeniton.
    The default parameter is a func:template taking 'Type' of the template instance.
    When I remove the def param in declaration The error goes away.
    The help I need is why I can't give def param in both places
    If my question is unclear, i'll post the whole code.

  2. #2
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    You have defined a default value for that parameter in both protoype and defenition. You should do it in one of them only.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  3. #3
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203
    Thats quick.
    I googled it and got the ans.
    Thanks SiavoshKC.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mingw and elcipse HELP
    By Rob4226 in forum Windows Programming
    Replies: 1
    Last Post: 03-04-2008, 01:35 AM
  2. MinGW thread-safe runtime libraries
    By Mario F. in forum C++ Programming
    Replies: 3
    Last Post: 08-21-2006, 08:15 AM
  3. compiling mingw to enable timeSetEvent
    By underthesun in forum Windows Programming
    Replies: 2
    Last Post: 02-02-2005, 06:00 PM
  4. SDL and MinGW Studio
    By Vicious in forum Tech Board
    Replies: 0
    Last Post: 07-30-2004, 09:59 PM
  5. Convert Microsoft LIB to MingW compatible lib
    By tigs in forum Windows Programming
    Replies: 0
    Last Post: 07-20-2004, 06:53 PM