This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CANNOT DETERMINE ROOT SEGMENT

when i compile a programe in V6.12,the compiler gives L10 Warning:CANNOT DETERMINE ROOT SEGMENT,how to solve this problem?

Parents Reply Children
  • Hi Jerry,

    I just faced the same problem. Maybe the reason I found is applicable for you, too. When passing parameters to main() the segment name changes from ?PR?MAIN?SRC_MODULE to ?PR?_MAIN?SRC_MODULE. The problem is that the linker does not parse for this segment name -> CANNOT DETERMINE ROOT SEGMENT.

    One could state that it does not make sense to pass paramters to main() in a uController application but we efford to change the linker to parse for both segment names should be acceptable. (The same amount of time to guess that the cause of this problem is ;-)