Issue with SDL type returns

This is a discussion on Issue with SDL type returns within the C Programming forums, part of the General Programming Boards category; The errors read in this continuous format: In function X multiple definition of 'X' first defined here And it goes ...

  1. #16
    Registered User
    Join Date
    Sep 2010
    Posts
    20
    The errors read in this continuous format:

    In function X
    multiple definition of 'X'
    first defined here
    And it goes on doing that for every single function.

  2. #17
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by ahernan17 View Post
    There are no reports of these functions being declared more than once, which I find to be very odd.
    What do you mean "there are no reports of these functions being declared more than once"? You've been complaining about the reports of these functions being declared more than once this whole thread!

    Show your code.

  3. #18
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,640
    Quote Originally Posted by ahernan17 View Post
    In function X
    multiple definition of 'X
    first defined here
    "first defined here" is where the old/original definition is. That's what your new definition is conflicting with. It should give you at least a file name and line number, and possibly some extra line numbers if it's from a series of includes. Without your code and exact error messages, cut-and-pasted from your terminal, it's going to be hard for us to go any further with this. Compilation commands or make files might be helpful too.

    Help us help you.

Page 2 of 2 FirstFirst 12
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, 09:18 PM
  2. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  3. Replies: 28
    Last Post: 07-17-2006, 12:35 AM
  4. Dynamic array of pointers
    By csisz3r in forum C Programming
    Replies: 8
    Last Post: 09-25-2005, 03:06 PM
  5. ftn that returns type
    By ariamundi in forum C++ Programming
    Replies: 1
    Last Post: 10-22-2001, 04:54 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21