OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> How To Use Multiple .cpp Files?
Capn_Fish
post Aug 19 2007, 04:07 PM
Post #1





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



I'm starting to hopefully code a game for the Z, but I need to put stuff not only in multiple .hpp files but also in .cpp files. Does anybody have a good link for how to do this? My horrible searching skills failed to turn anything up.

Also, is there a good tutorial for using the autotools/makefiles? Those seem to be important to using multiple source files as well.

Thanks.
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
koan
post Aug 19 2007, 04:14 PM
Post #2





Group: Members
Posts: 328
Joined: 25-February 04
From: UK
Member No.: 2,025



QUOTE(Capn_Fish @ Aug 19 2007, 04:07 PM)
I'm starting to hopefully code a game for the Z, but I need to put stuff not only in multiple .hpp files but also in .cpp files. Does anybody have a good link for how to do this? My horrible searching skills failed to turn anything up.

Also, is there a good tutorial for using the autotools/makefiles? Those seem to be important to using multiple source files as well.

Thanks.
*


What is an hpp file ?

I assume you mean a C/C++ header file; most people use .h and for C++ source files they use .cc or .cpp. Some people even use .C. I prefer .cc.

How about arm-linux-g++ file1.cpp file2.cpp -o myprogram ?

You can do it all using GNU make. I have the O'Reilly book; I've found it useful.

I don't know about the dev system for pdaXrom. Do they use tmake/qmake ?
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th December 2014 - 09:14 AM