I am having link command error with sublime when I am trying to run python scripts. It used to work fine.
ld: warning: ignoring file /Users/Documents/sideproj/IoT/one_hot_encoding.py, file was built for unsupported file format ( 0x0A 0x69 0x6D 0x70 0x6F 0x72 0x74 0x20 0x74 0x65 0x6E 0x73 0x6F 0x72 0x66 0x6C ) which is not the architecture being linked (x86_64): /Users/Documents/sideproj/IoT/one_hot_encoding.py
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[Finished in 0.1s with exit code 1]
EIDT: Thanks it is because I didn't choose the right mode in the tools->build systems.