Rodrigo Aceves wrote: > > Hi again, > > OK, I have written the following command line: > gcc -lncurses position.c > position is the name of the file. > It compiles OK but it does nothing!!, the only message I get is > "segmentation fault" > Anybody knows what the #^#!@!@ is this?? > > Thanks, and excuse me for the swearing, but I'm a little bit > desesperated. > I assume that you are running the binary "a.out"?? . The "segmentation fault" refers to some sort of memory related problem, attempting to access (write to, etc.), a block of memory that has not been properly allocated, exceeding the limits of an array, etc. However it is impossible to tell exactly why you are getting this error unless you provide an example of your source code. The process of pinpointing such memory related problems can be made simpler by using the Gnu debugger (gdb), in conjunction with the "Electric Fence" library. For instance you can compile a program, foo.c, with the following options: $ gcc -g -o foo foo.c -lncurses /usr/lib/libefence.a and then run the debugger: $ gdb foo run Investigate the info and man pages for "gdb" for information of the debugging commands and useages. Also, check out $man libefence for info on the "Electric Fence" malloc debugger. > -- > ******************************** > Rodrigo Aceves > [EMAIL PROTECTED] > ******************************** -- email: [EMAIL PROTECTED] Local mailserver <landreau.ruffe.edu> , remote <ns.computer.net> Smoke a Lucky Strike!
begin:vcard n:Holotko;John x-mozilla-html:FALSE org:MicroService Co. adr:;;;;;; version:2.1 email;internet:[EMAIL PROTECTED] title:Programmer note;quoted-printable:Unix, Systems Programming, Applications, =0D=0ASoftware Develpment, Sytems Administration. x-mozilla-cpt:;0 fn:John Holotko end:vcard