LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-30-2007, 10:57 AM   #1
hakin9
LQ Newbie
 
Registered: Aug 2007
Distribution: Gentoo and Slackware
Posts: 17

Rep: Reputation: 0
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).
 
Old 11-30-2007, 12:04 PM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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).
 
Old 12-02-2007, 08:37 PM   #3
hakin9
LQ Newbie
 
Registered: Aug 2007
Distribution: Gentoo and Slackware
Posts: 17

Original Poster
Rep: Reputation: 0
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[])
 
Old 12-03-2007, 03:47 AM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling Programs Thorrn4 Linux - Software 6 03-26-2005 01:25 AM
Problems compiling sigc++ programs siminone Programming 4 10-24-2004 07:31 PM
problems with lilo.conf and compiling c programs javadi82 Linux - Newbie 3 11-02-2003 04:16 PM
Have anyone experimented problems compiling programs in rh9? mkaman Red Hat 2 10-31-2003 11:41 AM
compiling programs disorderly Linux - Newbie 2 10-17-2003 01:48 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration