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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-19-2005, 11:34 AM
|
#1
|
|
LQ Newbie
Registered: Jun 2005
Location: Kolkata, India
Distribution: Red Hat 9
Posts: 4
Rep:
|
using make in Kdevelop
I have transferred a set of cpp sources and headers of a project into Kdevelop. The project had it's own makefile which created two target files (executables). I decided to let Kdevelop create the makefile for the sources and headers of the project. Now, how do I tell kdevelop that there are 2 targets. Since there are two main() functions in these two .cpp files, 'make' is exiting with the error 'multiple definition of main()'.
The old makefile had the 2 targets (say x, y) specified with the line 'all: x y'.How do I do it in Kdevelop?
|
|
|
|
06-19-2005, 04:22 PM
|
#2
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,471
Rep: 
|
You define targets in Automake Manager (with standard config - tab on the right). In your case you need to define two, for each executable and add right files to the targets (so there aren't two main()s in one). What this is configured you can use an option to compile current target or the whole project (all targets).
|
|
|
|
06-20-2005, 11:49 AM
|
#3
|
|
LQ Newbie
Registered: Jun 2005
Location: Kolkata, India
Distribution: Red Hat 9
Posts: 4
Original Poster
Rep:
|
I am in trouble. My Kdevelop (2.1) has got it's windows spoilt.They appear as a small mess in the IDE and I can't expand them or put them in the right place. How do I uninstall it? I tried installing 3.1 but running configure I found that Qt libraries were needed. I tried doing it, the dependency check threw up a huge list of stuff. Please suggest another IDE like Kdevelop.
|
|
|
|
06-20-2005, 02:24 PM
|
#4
|
|
LQ Newbie
Registered: Jun 2005
Location: Kolkata, India
Distribution: Red Hat 9
Posts: 4
Original Poster
Rep:
|
I'm using KDevelop 2.1, can't find Automake Manager.Where is it?
|
|
|
|
06-20-2005, 03:32 PM
|
#5
|
|
LQ Newbie
Registered: Jun 2005
Location: Kolkata, India
Distribution: Red Hat 9
Posts: 4
Original Poster
Rep:
|
Please ignore the last two posts.
Well, I found where the Automake Manager is (in fact that's the first FAQ at KDevelop).but it seems my KDevelop 2.1 doesn't have it.
I've obtained Kdevelop 3.2 but ./configure gives the following error:-
checking for Qt...configure:error: Qt(>=Qt 3.2) (library qt-mt) not found.Please check your
installation.
So I downloaded qt 3.2.something rpm but the rpm is checking dependencies and then
nothing's happening.How do i install qt to solve my Kdevelop problem?
|
|
|
|
06-20-2005, 04:00 PM
|
#6
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,471
Rep: 
|
Qt 3.2 will probably show you a long list of dependencies. Having most up-to-date system helps here (if your profile is correct, RH 9 may not have all the newest packages). Upgrade to Qt 3.2 (and KDE 3.2 or 3.3) is a good idea, but it takes time.
If you have problems with Qt installation, you may consider compiling Qt and KDE from source (instructions on KDE website). It's rather long process (2-3 days, depening on the machine used), but you get a fresh version compiled for your machine (what means: faster). If you have time, do it.
If you don't...well. If I remember correctly in KDevelop 2.1 you have to edit makefiles yourself. With automake/autoconf it may be a hard task. Using the orginal makefiles may be a better solution.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:39 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|