You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

rramirez

Beginner

  • "rramirez" started this thread

Posts: 2

Location: Santiago, Chile

Occupation: Student of Mechanic engineering

  • Send private message

1

Wednesday, December 8th 2004, 9:42pm

KDE simple cpp compile

My question is How I can compile a simple cpp with Kdelibs?.
I don't know what is the command line for this.

thanks!

This post has been edited 1 times, last edit by "rramirez" (Dec 8th 2004, 9:42pm)


anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Thursday, December 9th 2004, 2:05pm

g++ -o executablename sourcefilename.cpp -L /path/to/kdelibs -I /path/to/kdeincludes -l kdecore

If you have widgets, add
-l kdeui

If you use KIO stuff, add -l kio

Cheers,
_
Qt/KDE Developer
Debian User

rramirez

Beginner

  • "rramirez" started this thread

Posts: 2

Location: Santiago, Chile

Occupation: Student of Mechanic engineering

  • Send private message

3

Friday, December 10th 2004, 11:52pm

Thanks !