'Instruction references undefined symbol at 0x00400014 [MIPS]
Every file i try to load into QTSPIM gives me this error:
Instruction references undefined symbol at 0x00400014 [0x00400014] 0x0c000000 jal 0x00000000 [main] ; 188: jal main
I am loading the file and the file does have a "main:" in it and if I put ".global main" before "main" it does the same thing. What is going on?
Solution 1:[1]
The directive you're looking for is .globl, not .global.
So:
.globl main
.text
main:
# Awesome code goes here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Michael |
