My commandline for NASM is this:
nasm.exe -f win64 "$(InputName).asm" -o "$(InputName).obj" -s -O9
Output is:
$(InputName).obj
Resulting error is:
"unresolved external symbol (blahblah in function blahblah"
I am importing a huge amount of binary data using x64 ASM to simplify things. Amounting to around 324KB. Imported using "incbin" in NASM. All data goes in the .data section, I did not use a seperate section for the bin data.
I used
Code: Select all
extern "C" {
extern DWORD somedata;
extern DWORD somedata_LENGTH;
}
Help is appreciated.