The file definitely exists, I have tried changing the name and everything. Here is the output from strace:
Code:
kerry@BigOwl:~/Programming/x86_asm/extern_func_03$ strace ./main
execve("./main", ["./main"], [/* 31 vars */]) = -1 ENOENT (No such file or directory)
dup(2) = 3
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fstat64(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f13000
_llseek(3, 0, 0xbf910a04, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
close(3) = 0
munmap(0xb7f13000, 4096) = 0
exit_group(1) = ?
Process 13595 detached
I really think that it has something to do with how i am linking, but I am not sure why that would give me a "no such file or directory" error.
Thanks!