Dev C++ 4.9.9.2 error code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dan3260
    New Member
    • May 2010
    • 1

    #1

    Dev C++ 4.9.9.2 error code

    I have got a couple error codes and i am new to this so i do not know what they mean. Any help would be appreciated. I am using Dev C++ v4.9.9.2

    1) [Warning] comparison is always true due to limited range of data type
    [Linker error] undefined reference to `Save(int, char*)'

    2) ld returned 1 exit status
  • donbock
    Recognized Expert Top Contributor
    • Mar 2008
    • 2427

    #2
    The comparison-always-true warning message should include a line number pointing to the problem. I generally see this error for something like the following:
    Code:
    unsigned int a;
    ...
    if (a >= 0)
    ...
    The comparison is always true because an unsigned type can never be negative. Take a look at the indicated line and look for something like that.

    The linker error indicates that function Save isn't present. Is this a function you wrote (if so, link in that object file) or is it a library function (if so, bring in the necessary library).

    Comment

    Working...