LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-15-2007, 12:37 AM   #1
jabbertrex
LQ Newbie
 
Registered: Apr 2007
Posts: 6

Rep: Reputation: 0
kdevelop - simple c project


Hiya!

I would like to learn how I can add mutliple .c and .h files in Kdevelop and make one project. I want to do it to avail the debugging capabilities hopefully.

This is what I have tried so far - If I add a single HelloWorld.c file and build fine with autobuild etc.

But if I add more files to same/different target - my build fails.

Is there a tutorial for C that does a walkthrough.

Cheers!
Jay
 
Old 04-16-2007, 10:36 AM   #2
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
When you build fail, does it give you some errors messages.
I didn't found any problem with this matters:
Add a .h file, define some functions here.
Add a .c file with the same name with the .h and code those functions here, don't forget to include this .h file.
From now on, in any .c file, you can just include this .h file and use these functions. They will be linked together when you build them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can't create a new project in kdevelop Quercus ruber Linux - Software 9 05-29-2006 05:41 PM
kdevelop project packaging sayantam Programming 0 11-16-2004 04:22 AM
Kdevelop project trouble. Help! gunslinger77 Linux - Newbie 0 09-06-2004 02:36 AM
KDevelop and no QT project possible? Misel Slackware 2 11-03-2003 02:18 PM
Cannot see Open GL project in KDevelop project wizard SparceMatrix Programming 2 08-07-2002 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:23 PM.

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