Re: a problem when using gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




guo via Gcc-help kirjoitti 13.3.2024 klo 16.26:
Hello, i use a makefile to compile a .c file
What do you mean with "compile"?
and successfully get an executable file,
Getting an executable file with GCC means "compile to assembly file", "compile this with 'as' to an object file" and finally "link the object file with 'ld' to all the required library functions (object files), startups and endfiles". The '-o' <executable_name' makes the assembly and link phases being done with the defaults. For instance creating an excutable "hello_world" from a "hello_world.c" C source file :

     $ gcc -v -o hello_world hello_world.c

shows all the 3 phases because of the '-v(erbose)' switch in the command.

When you have a makefile to do the compile, you should at least know what it tries to do, what is the name of
the executable file it should procuce.

but when i use command "./filename" to try to execute that
executable file, i failed and being told "bin file not specified",could you
please tell the reason why i get this error?Thank you for your help!

Does the run platform give this error or the executable you are running? Googling with this error message gives
no results...




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux