Thread: Error message that doesnt tell me where to fix!!!

  1. #1
    Registered User AsleeKaizoku's Avatar
    Join Date
    Jan 2008
    Posts
    17

    Error message that doesnt tell me where to fix!!!

    I keep compiling my stuff and I get this in the end...
    Code:
    ld: 0711-224 WARNING: Duplicate symbol: .strcmpFPCcPCc
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    Anyone know what this could be or how I can debug this?

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    If I were you, I would use the -bloadmap or -bnoquiet option to obtain more information about the problem. You need to pass (one of) those options to the linker (since that's the "ld" that's giving you grief); how you do that depends on what compiler you're using.

    OTOH, since strcmp is a library function, every file you're using should have that as an external function. Do you have #include <cstring> in all of your files?

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    A duplicate symbol is usually a sign that a function is defined in a header file. Have you got your own version of strcmp().

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. compiling my code, i can't fix error
    By howru in forum C Programming
    Replies: 2
    Last Post: 04-22-2008, 03:38 AM
  3. C++ code need help to fix
    By McReal in forum C++ Programming
    Replies: 9
    Last Post: 05-12-2007, 02:48 PM
  4. Help me fix my mess!!!!
    By Starr in forum C++ Programming
    Replies: 35
    Last Post: 02-01-2006, 03:40 PM
  5. How do i fix this error???????
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 05-21-2002, 04:43 PM