Subject:
|
Re: showing my ignorance of makefiles :)
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Sun, 3 Jun 2001 17:13:24 GMT
|
Viewed:
|
1603 times
|
| |
| |
Ciaran Jessup wrote:
> Hi, once again a stupid problem :) .. I've just moved all my code over from
> procedural C , to nice object orientated C++ legos code...
> the problem is... how does one compile in more than one file, at the minute
> I get around it by including my files from test.cpp , and putting all the
> code in the header files I include...but obviously this isn't a very neat
> solution.
>
> How can I change the makefile to allow my to add in other modules, say
> hardware.cpp and functions.cpp ???
>
> Please help....please! :)
>
> - Ciaran
>
>
>
>
Hi-
You need to compile the the source files into object files with "make
blah.o", replacing blah with the "blah" in blah.cpp. Then, just add the
.o file names to DOBJECTS in the Makefile.
HTH,
--Quentin
|
|
Message is in Reply To:
| | showing my ignorance of makefiles :)
|
| Hi, once again a stupid problem :) .. I've just moved all my code over from procedural C , to nice object orientated C++ legos code... the problem is... how does one compile in more than one file, at the minute I get around it by including my files (...) (24 years ago, 5-Mar-01, to lugnet.robotics.rcx.legos)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|