To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1911
1910  |  1912
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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR