Results 1 to 2 of 2

Thread: How to remove Multiple 'maksbit' & 'mask' error!!

  1. #1
    Join Date
    Feb 2008
    Posts
    74
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Exclamation How to remove Multiple 'maksbit' & 'mask' error!!

    Hello! Friends,
    I am getting this strange error as shown below when the both object files are linked to get the executable after make command: -
    Qt Code:
    1. obj/Sample_func.o:Sample_func.cpp:(.data+0x20): multiple definition of `maskbit'
    2.  
    3. obj/Samplei.o:Sample.cpp:(.data+0x20): first defined here
    4. obj/Sample_func.o:Sample_func.cpp:(.data+0xa0): multiple definition of `mask'
    5. obj/Sample.o:Sample.cpp:(.data+0xa0): first defined here
    6. collect2: ld returned 1 exit status
    To copy to clipboard, switch view to plain text mode 

    I mean am not able to see where the error is, so till now not able to solve it.

    I know its not Qt question but C++ problem but,Can anyone please help me out in this and tell me on which line the error could be. I will be grateful.

    Thanks in advance.

  2. #2
    Join Date
    Apr 2008
    Location
    Pavlodar, Kazakhstan
    Posts
    22
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to remove Multiple 'maksbit' & 'mask' error!!

    Could you provide the code of sample.cpp and sample_func.cpp files and their headers if any? You may have twice included the same header file that does not have include sentinels.
    Last edited by mitro; 5th May 2008 at 16:56.

  3. The following user says thank you to mitro for this useful post:

    Krish (6th May 2008)

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  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.