Question For C Experts

This is a discussion on Question For C Experts within the C Programming forums, part of the General Programming Boards category; Dear Sir, I am developing a project in C langauge. The project contains 33 supporting files (.h files) and 40 ...

  1. #1
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784

    Question For C Experts

    Dear Sir, I am developing a project in C langauge. The project contains 33 supporting files (.h files) and 40 text files (data files). The compiler is saying, TOO MUCH GLOBAL DATA DEFINED IN FILE.

    HURRY up and give me the answers so that I can pass my course.

    BTW I will not be returning here. Please fax it to professor Bacon at the University of Columbia. I forgot the fax number so you will have to search the web for it.

    Thanks.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789

    Re: Question For C Experts

    good one...!

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    I found the fax number, but when I dial, it's constantly engaged.

    If someone can find address, I'll hand deliver it myself.

    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  4. #4
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    If someone can find address, I'll hand deliver it myself.
    Don't bother. I just dispatched a carrier pigeon with answer as well as compiler that was made after 1978.


  5. #5
    Sayeh
    Guest
    Now, let's assume they can't get a compiler after 1978 (snicker)... perhaps they need to learn about _dynamic_ memory allocation (hahahahahahhhhaaaaaaaaaaa).

  6. #6
    Registered User lliero's Avatar
    Join Date
    Oct 2001
    Posts
    59

    Unhappy i experienced that too

    you might want to compile all your function into object files..
    so that you have less #define directive in your code...

    so your your main program's need is to include the appropriat header file wich in turn refers to your function library...


    instead of calling your function as source code, you now call them in the library...


    i tried that.. and it works...

    it works like dll 's being refered an application

    i dont know if im right


    im sure there are guys in this board who know better

  7. #7
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    788

    you might want to compile all your function into object files..
    so that you have less #define directive in your code...

    so your your main program's need is to include the appropriat header file wich in turn refers to your function library...


    instead of calling your function as source code, you now call them in the library...


    i tried that.. and it works...

    it works like dll 's being refered an application

    i dont know if im right


    im sure there are guys in this board who know better
    HAHAHAHAHAHAHAHHAHAHAHAHAHAHHAHAHAHAHAHAHAHAHAHA

    oh my ****
    well, this was bound to happen!

    sorry for this reply lliero, but if only you knew, you wouldn't have replied.

  8. #8
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    This could become the most popular post.

  9. #9
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Originally posted by Troll_King
    This could become the most popular post.
    It certainly just got a lot funnier.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  10. #10
    Registered User lliero's Avatar
    Join Date
    Oct 2001
    Posts
    59

    really?

    guys,


    this is a irrelevent post...

    why is it that everytime i post to a thread, that thread becomes popular.... well i guess that is publicity ... hahahahah


    thanks for all your reactions..

  11. #11
    Unregistered
    Guest
    Can this be stickied? As an everpresent reminder to all?

  12. #12
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    This post should be it's own board. Dont' you think.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  2. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  3. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 06:18 AM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

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