error LNK2019: unresolved external symbol referenced in function main
问题 Am trying to run my simple assembly code in C++.I have only two files ".cpp" file and ".asm" file. On compiling it gives an error (see below ).I would appreciate if anyone could help...:) This is my "main.cpp" file #include <iostream> using namespace std; extern "C" int GetValueFromASM(); int main(int argc, char *argv[]){ cout<<"value is:"<<GetValueFromASM()<<endl; cin.get(); return 0; } Also i have a simple "asm.asm" file .code GetValueFromASM proc mov rax,3254 ret GetValueFromASM endp end