Results 1 to 3 of 3

Thread: Compilation Error

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Compilation Error

    Hi,

    I'm having this compilation error:

    C2365: 'DECIMAL' : nueva definición; la definición anterior era 'typedef'
    C:\Archivos de programa\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WTypes.h(1042) : vea la declaración de 'DECIMAL'

    In english would be:

    C2365: 'DECIMAL' : new definition; last definition was 'typedef'
    C:\Archivos de programa\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WTypes.h(1042) : see 'DECIMAL' declaration

    Qt Code:
    1. class CParameter : public QObject
    2. {
    3. Q_OBJECT
    4.  
    5. public:
    6. enum TYPE { NUMERIC = 0, DECIMAL};
    7. ...
    To copy to clipboard, switch view to plain text mode 

    The class compiles well alone but none when compiling all the application.

    Thanks,
    Òscar Llarch i Galán

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Compilation Error

    looks like names conflict, try to rename DECIMAL to Decimal for example.

  3. #3
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Compilation Error

    Hi,

    Thanks,
    Òscar Llarch i Galán

Similar Threads

  1. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  2. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  3. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  4. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  5. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.