Like Tree5Likes
  • 1 Post By std10093
  • 1 Post By Salem
  • 2 Post By stahta01
  • 1 Post By stahta01

SOS

This is a discussion on SOS within the C Programming forums, part of the General Programming Boards category; SOS: What is this? Screenshot by Lightshot...

  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    54

    SOS

    SOS: What is this?
    Screenshot by Lightshot

  2. #2
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,675
    Never, but never again, title your thread like this. The thread's title should be laconic (with the real meaning of the word).

    Probably the files that the professor gave you, have some issue with scoping... Make sure that everything is visible where it is needed...
    stahta01 likes this.
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,422
    So who's job is it to write TSstoiva_setValues and TSstoiva_writeValue ?

    If it's your job, then check
    - whether you spelled the names correctly
    - have included the right source files
    - have actually written the code.

    If it's someone else's job, make sure you have the appropriate source code and/or library.

    Do you think you could copy/paste the text next time?
    stahta01 likes this.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User
    Join Date
    Dec 2012
    Posts
    54
    Firstly, I'm sorry about the title, but it really was an SOS! (i had to send it by 5:00)
    Secondly, the code wasn't mine.. I had just to add & change some things..
    And thirdly, I wrote the code in xcode.. But it didn't show me any wrongs until I ran it..

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    2,487
    Quote Originally Posted by Sotiris Kaniras View Post
    And thirdly, I wrote the code in xcode.. But it didn't show me any wrongs until I ran it..
    You need to learn the difference between these categories of C/C++ Programming Issues(problems).
    Compiler Warning
    Compiler Error
    Linker Warning
    Linker Error
    Run Time Error
    incorrect operation at Run Time.

    Your problem is a "Linker Error" your statement implies you think it was a "Run Time Error"
    Before being able to fix the issue (problem), you need to at least classify the issue (problem) into the correct category.

    Tim S.
    Last edited by stahta01; 03-24-2013 at 09:46 AM.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning." Rick Cook

  6. #6
    Registered User
    Join Date
    Dec 2012
    Posts
    54
    Thankfully, the exercise got an overtime!
    What do you mean: "you need to at least classify the issue (problem) into the correct category."?

  7. #7
    Registered User
    Join Date
    May 2009
    Posts
    2,487
    Quote Originally Posted by Sotiris Kaniras View Post
    Thankfully, the exercise got an overtime!
    What do you mean: "you need to at least classify the issue (problem) into the correct category."?
    If you have no understanding of an issue (problem), then fixing it is NOT possible using logic.
    [Trial and Error method; is NOT a productive way to fix an programming issue (problem).]

    Nearly (if not all linking errors) are the result of a missing item/object in this case a missing function(s).

    You need read Salem's post #3; figure out how the missing functions are to be supplied.
    Are they in a library, if so, did you link it?
    Are you supposed to write them, if so, did you?
    Did you forget to link (or maybe compile) a file?

    Tim S.
    rags_to_riches likes this.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning." Rick Cook

Popular pages Recent additions subscribe to a feed

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