Thread: little help neede

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    14

    Question little help neede

    hey guy's can give a detailed explanation on linker error, what it is,how it comes etc....

  2. #2
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    What is the error?
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

  3. #3

  4. #4
    Registered User
    Join Date
    Mar 2010
    Posts
    14
    i am asking in general

  5. #5
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    Well, if you know what a linker is, then you should deduce immediately what a linker error is. If you don't read the FAQ posted by Subsonics.
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

  6. #6
    Registered User
    Join Date
    Mar 2010
    Posts
    14

    Thumbs up

    thanks subsonics

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Structs and arrays - overview and help neede
    By pistacchio in forum C Programming
    Replies: 7
    Last Post: 01-11-2010, 02:11 AM
  2. Math wiz help neede..
    By vasanth in forum Tech Board
    Replies: 5
    Last Post: 09-27-2004, 09:12 AM