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 / 1748
1747  |  1749
Subject: 
showing my ignorance of makefiles :)
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 5 Mar 2001 00:51:53 GMT
Viewed: 
1451 times
  
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



Message has 1 Reply:
  Re: showing my ignorance of makefiles :)
 
(...) 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 (23 years ago, 3-Jun-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