
I feel dumb asking for help about a compiler error but I've tried everything that I thought could fix the errors and I also tried known solutions found on google but nothing.
I created a new 64 bit assembly project with the same settings as my others that run fine but when I compiled it I got these errors...
I'm sure that it's something obvious...
Code
Error 1 error LNK2019: unresolved external symbol StackSimulator referenced in function main
Error 2 error LNK1120: 1 unresolved externals
Solutions platform is set to x64
build customization masm files is checked
Here is main.cpp
Code
#include <iostream>
extern "C" void StackSimulator();
int main()
{
StackSimulator();
return 0;
}
and Stack.asm
Code
.data
optionAdd dw "A. Push"
optionRemove dw "B. Pop"
optionView dw "C. View"
optionClear dw "D. Clear"
messageInputChar dw "Enter char: "
.code
StackSimulator proc
ret
StackSimulator endp
end