Thread: SOS

  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,694
    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...
    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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    34,237
    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?
    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.

  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,983
    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.
    "...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

  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,983
    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.
    "...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

Popular pages Recent additions subscribe to a feed