I compile my solidity file using the following command:
solc Encoder.sol --bin --abi --optimize -o <output_dir>/
Then I try to deploy it in Geth:
Encoder = eth.contract([<abi file content>])
deployEncoder = {from:eth.coinbase, data:"0x<bin file content>", gas:2000000}>}
getPartialInstanceEncoder = Encoder.new([], deployEncoder)
The last line throws an exception. Looking closer into the bin file content, I figured out that the bin file contains several invalid characters, either '$' or '_'. What is the reason for this?
I uploaded my bin file here (since it is too large for the text here), you can search for the characters in your browser: https://file.io/OIFtZM