ProgrammingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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).
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.