Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

11
  • 2
    Sometimes an _ gets prepended to symbol names. What's the exact error message you get? Commented Mar 21, 2012 at 17:45
  • possible duplicate of Adding leading underscores to assembly symbols with GCC on Win32? Commented Mar 21, 2012 at 17:46
  • Have you tried swapping {ass0.o main.o} on the linker command line? Commented Mar 21, 2012 at 17:46
  • 1
    @wildplasser, why should that make a difference? Commented Mar 21, 2012 at 17:47
  • 2
    You want to add the _ on the assembly side, not the C side, if that's in fact the problem. There can't be an 'undefined reference' error related to a source code line - it's a link error. Please copy and paste the full text here. Commented Mar 21, 2012 at 17:50