LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Problems Ktigcc(compiling programs) (http://www.linuxquestions.org/questions/slackware-14/problems-ktigcc-compiling-programs-603511/)

hakin9 11-30-2007 10:57 AM

Problems Ktigcc(compiling programs)
 
I install Ktigcc from source and was able to start the gui on the command line. But when I try to compile a program on it. It freezes on me(not the computer it's continuously compiling).

I'm not sure if I installed it right or if I am missing some step (for example like linking a file).

H_TeXMeX_H 11-30-2007 12:04 PM

Run it in a terminal and see what kind of errors it gives you. If that doesn't work compile it with fewer optimization flags and with the '-g' option for debug, then attach 'gdb' to it or load it in 'gdb'. i.e.

Code:

gdb ktigcc
# now within the gdb shell, it should say '(gdb)', type
start

the program should start, then use the program normally and when it crashes, gdb will tell you what went wrong (you may not understand what it's saying, but if you post it here or to the maintainers of the program, someone might).

hakin9 12-02-2007 08:37 PM

This is what I got from the gdb shell


Code:


(gdb) start
Breakpoint 1 at 0x80606a4: file ktigcc.cpp, line 73.
Starting program: /usr/local/bin/ktigcc
[Thread debugging using libthread_db enabled]
[New Thread -1235736880 (LWP 3589)]
[Switching to Thread -1235736880 (LWP 3589)]
main (argc=1, argv=0xbfabb604) at ktigcc.cpp:73
73      int main(int argc, char *argv[])


H_TeXMeX_H 12-03-2007 03:47 AM

Well, this tells you exactly where the program crashes in its execution, "file ktigcc.cpp, line 73.", and the state when it crashed,
Code:

main (argc=1, argv=0xbfabb604) at ktigcc.cpp:73
73      int main(int argc, char *argv[])

This kind of info should probably be posted to the maintainers of the program, they will be more able to help.


All times are GMT -5. The time now is 01:24 AM.