Thread: SOCK_RAW programing linker error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Beginning programmers SHOULD NEVER include C or C++ files!!
    Code:
    #include "checkSum.c"
    Instead, learn how to make and use a header correctly and your error will likely go away.

    Tim S.
    Last edited by stahta01; 10-22-2012 at 06:43 PM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  2. #2
    Registered User
    Join Date
    Oct 2012
    Posts
    7
    Quote Originally Posted by stahta01 View Post
    Beginning programmers SHOULD NEVER include C or C++ files!!
    Code:
    #include "checkSum.c"
    Instead, learn how to make and use a header correctly and your error will likely go away.

    Tim S.
    I really appreciate your feed back Tim, though some additional content might have been nice. Your right, I dont really know how to link c files. Do you have any examples of a header/main configuration or just a collection of linked c files?

    The reason I gave the ourCheckSum function its own files was kind of odd: when I included the function in the RSTSender.c clang wanted a semicolon after the function name, before the brackets.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I'm getting a linker error?
    By Jesse20ghet in forum C++ Programming
    Replies: 2
    Last Post: 11-03-2011, 06:23 PM
  2. Linker error help
    By bonks in forum C Programming
    Replies: 14
    Last Post: 03-17-2011, 08:18 AM
  3. linker error
    By rajdey1 in forum C Programming
    Replies: 2
    Last Post: 04-17-2008, 09:15 AM
  4. Programing error
    By pwrade in forum C++ Programming
    Replies: 3
    Last Post: 06-13-2007, 09:00 AM
  5. Sock_raw
    By JagWire in forum Linux Programming
    Replies: 2
    Last Post: 07-30-2002, 03:17 AM

Tags for this Thread