×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Sep 2005
    Posts
    126

    Multiply Defined section

    Hi,
    I am developing an 3rd Ed application ,I want to use only one header file for all my container files in application ,but when i am trying to do this i am getting error Multiply defined section followed by all functions which r in common to the files.
    So how shld i solve it.
    Thanks in advance

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Multiply Defined section

    did you add the #ifndef at the starting of the header file?
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  3. #3
    Regular Contributor
    Join Date
    Sep 2005
    Posts
    126

    Re: Multiply Defined section

    Quote Originally Posted by kkrish
    did you add the #ifndef at the starting of the header file?
    yes i have declared #ifndef at the starting.
    Its like first i created 2 views and now i want to use the 2nd container header file as common file for all my cpp files ,but when i am trying to do so its giving the error Multiply defined error followed by the function names that r in common in the cpp files

  4. #4
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Multiply Defined section

    i am not getting why are trying to do this but how did you mange your view in that case.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  5. #5
    Regular Contributor
    Join Date
    Sep 2005
    Posts
    126

    Re: Multiply Defined section

    Quote Originally Posted by kkrish
    i am not getting why are trying to do this but how did you mange your view in that case.
    Hi,
    I am having some functions which r needed to be used in all the files,so i thought of declaring it all at one place and then using the same header file for all the cpp files.
    Like suppose ,i have some login screen for which i created a view and on sucessfull login i go to another view which holds some list of data .all the handle processing of this data need some common functions so i am thinking to do so .
    what do u suggest me.how shld i proceed ,shld i go on creating different views for different option handelers ,even i suppose i get the same error

Similar Threads

  1. mwldsym2.exe: Multiply defined section: linking errors
    By muralidharvvk in forum Symbian
    Replies: 8
    Last Post: 2009-11-05, 19:54
  2. fatal error LNK1169: one or more multiply defined symbols found
    By thinrhino in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2006-05-22, 19:36
  3. Warning in mwldsym2: Multiple defined section: _atexit in...
    By antonypr in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 3
    Last Post: 2005-11-22, 17:55
  4. Replies: 0
    Last Post: 2004-11-24, 18:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×