I'm new to solana. When i run solana program deploy target/release/libsol_contract.so it shows ELF error: Failed to parse
Lib.rs:
use anchor_lang::prelude::*;
declare_id!("11111111111111111111111111111111");
#[program]
mod hello_world {
use super::*;
pub fn say_hello(_ctx: Context<SayHello>) -> Result<()> {
msg!("Hello World!");
Ok(())
}
}
#[derive(Accounts)]
pub struct SayHello {}
When I run solana program deploy target/release/libsol_contract.so
I get:
Error: ELF error: ELF error: Failed to parse ELF file: Section or symbol name .note.gnu.build- is longer than 16 bytes