LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-23-2004, 12:35 PM   #1
captainfreedom
LQ Newbie
 
Registered: Mar 2004
Posts: 28

Rep: Reputation: 15
canīt step into shared library


Hi,
I'm completely new to Linux programming. I am having a big problem trying to debug a program using the wxWindows (wxGTK-2.4.2) library using KDevelop 3.0.2.
Firstly, I made the debug version of the library using these commands:
./configure --with-gtk --enable-debug
make
make install
ldconfig
I can step into any function in my own program fine, but it refuses to step into most of the wxWindows functions.
If anyone can help me with this problem I would be deeply grateful,
Ed
 
Old 05-23-2004, 12:55 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Why would you like to step into wxWindows functions?

Do you think they are not working correctly? If so, you have to compile the wxWindows library from sources with debugging information in it.
 
Old 05-23-2004, 01:03 PM   #3
captainfreedom
LQ Newbie
 
Registered: Mar 2004
Posts: 28

Original Poster
Rep: Reputation: 15
You nearly always have to step into wxWindows to see what's going on (especially if you are enhancing functionality of the wxWindoes controls).
I have built the debug version of the library (see my origonal post for commands I used).. though there was origonially a release version of the library installed. I assume that the release dlls are overwritten when you do "make install".
Quote:
Originally posted by ToniT
Why would you like to step into wxWindows functions?

Do you think they are not working correctly? If so, you have to compile the wxWindows library from sources with debugging information in it.
 
Old 05-23-2004, 01:12 PM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Sorry I was a bit sloppy with reading your post in the first place.

The self-installed libraries are probably installed to /usr/local/lib/. The ones that came with the system are probably located in /usr/lib/. You can use ldd to see what libraries are being used with the executable and use the LD_LIBRARY_PATH or LD_PRELOAD to override those paths/libraries (see man ld.so for details).

BTW. I just found (atleast in debian) that there is a pre-configured package for debugging called libwxgtk2.4-dbg.
 
  


Reply



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
unable to step through function in shared object library using gdb markhod Programming 2 01-03-2009 02:00 AM
help shared library jingle_mj Linux - Newbie 1 08-13-2004 04:36 PM
help shared library jingle_mj Programming 4 08-13-2004 04:13 AM
help shared library jingle_mj Linux - General 1 08-13-2004 03:11 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:01 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
Open Source Consulting | Domain Registration