Results 1 to 11 of 11

Thread: "Multiple definition of 'gridLayout'"

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: "Multiple definition of 'gridLayout'"

    Quote Originally Posted by Darhuuk View Post
    I thought I had to redeclare the variables declared in the header file in the .cpp file.
    You have to do this only for static variables.

  2. The following user says thank you to jacek for this useful post:

    Darhuuk (8th January 2008)

  3. #2
    Join Date
    Jan 2008
    Posts
    32
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10
    Thanked 1 Time in 1 Post

    Default Re: "Multiple definition of 'gridLayout'"

    Quote Originally Posted by jacek View Post
    You have to do this only for static variables.
    Oh, ok, thanks!

Similar Threads

  1. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23

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
  •  
Qt is a trademark of The Qt Company.