LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   kdevelop - simple c project (https://www.linuxquestions.org/questions/linux-software-2/kdevelop-simple-c-project-546144/)

jabbertrex 04-15-2007 12:37 AM

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

TruongAn 04-16-2007 10:36 AM

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.


All times are GMT -5. The time now is 03:08 PM.