Hi Nick,

> what am i doing wrong?
> 
> cc -c nki.c
> 
> chmod +x nki.o
> 
> ./nki.o
> 
> gives:
> bash: ./nki.o: cannot execute binary file

You are telling the compiler to just build an object file from a source
file ("-c"), but that does not build (link) the final executable.

Instead, try

gcc nki.c -o nki -lz

"Works for me."

Hope that helps,
Frank

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to