Compiling C in KDE
James Gray
james at grayonline.id.au
Tue Jul 11 23:36:19 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Derek Broughton wrote:
> James Gray wrote:
>
>> Now, whenever you edit your file in Kdev, you simply save it, open a
>> command prompt, change to the same directory your assignment is in (Kdev
>> can do this right in the IDE) and type "make" and hit enter. Voila!!
>> You now have an executable called "mycprog" in the same directory as the
>> source.
>
> Aw, come on - what's the use of an IDE that you need to go out to a command
> line to make the project? I used to use KDevelop and had no such problems,
> but it's been years since I wrote a C program. If that's what it's like
> now, I'll stick with Eclipse (which I'm already using for Python and Java,
> anyway).
Like I said earlier in the thread - you can edit the Kdev project file
and change it from using qmake to standard gmake+Makefiles. Then in the
build menu you see all the targets defined in your project's Makefile.
The magic "F8" (IIRC) will trigger a "make" run using the default
target. Whatever the magic button, Kdev will show you the compiler
output in a panel and if there's problems, clicking on the error/warning
in the panel takes you straight to the offending line of code in the
editor - very neat.
If you're happy to go through the whole "qmake" process, there's no need
to modify the project file by hand.
Bring back the "simple" project option which used to use Makefiles!
- -- James
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEtDXzwBHpdJO7b9ERAosZAJ9gVhlaunksEBAvtWnQTTBz5jm5nwCgtPyO
NWb1ZmqxZDfzpiB6G1x27po=
=8aP6
-----END PGP SIGNATURE-----
More information about the kubuntu-users
mailing list