Results 1 to 7 of 7

Thread: merge two project source codes

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Posts
    65
    Thanks
    10
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: merge two project source codes

    How did you add namespaces if you did not change the files?
    I created new class inside new SecondStatic.pro that inherits Second MainWindow, and tried to use that class, and there tried with namespaces and typedefs, but no success.
    Maybe it looks silly but i had a feeling it could work.
    patches that are applied to the original
    That is what i am doing now (manually, with diff tool, meld, i compare my file with the one from svn) and i was trying to avoid that. I dont see how some automatic patch could work on next version of file.
    use defines have the preprocessor replace names that would otherwise clash
    I will see more about that.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: merge two project source codes

    Quote Originally Posted by davidovv View Post
    I created new class inside new SecondStatic.pro that inherits Second MainWindow, and tried to use that class, and there tried with namespaces and typedefs, but no success.
    You could try with a dynamic library and symbol visibility set to hidden, so that only explicitly exported symbols are seen by the linker.
    But the best approach is to avoid the same symbols alltogether of course.

    Cheers,
    _

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

    davidovv (18th July 2014)

  4. #3
    Join Date
    Dec 2009
    Posts
    65
    Thanks
    10
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: merge two project source codes

    this is the the first time i actually try to build library, so most of the time i have to google what are you talking about.
    Dynamic library with hide_symbols works, thanks.

Similar Threads

  1. Replies: 1
    Last Post: 21st April 2014, 23:21
  2. Replies: 0
    Last Post: 26th November 2012, 13:18
  3. Replies: 2
    Last Post: 22nd April 2011, 00:39
  4. Replies: 0
    Last Post: 6th August 2010, 11:01
  5. Qt open source project
    By s.lateralus in forum Newbie
    Replies: 3
    Last Post: 1st September 2009, 21:11

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.