🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #8728

Re: linux c++ auto wil niet starten :)

#8728
From: gert
Date: Thu, 13 Jun 2002 00:40
43 lines
2031 bytes
Mijn c++ auto werkt perfect nu maar mijn auto fabriek kan geen c++ 
autotjes bij maken?

gert@linux:~/Desktop/auto> make
Makefile:4: *** missing separator.  Stop.   <-----
gert@linux:~/Desktop/auto>

gert@linux:~/Desktop/auto> c++ -o auto auto.cpp interface.cpp motor.cpp
gert@linux:~/Desktop/auto> ./auto
Start motor y or n :y
motor is gestart
Geef de waarde in van gaspedaal :1500
motor rpm =1500
Is er nog contact y or n :y
Geef de waarde in van gaspedaal :10000
motor rpm =10000
Is er nog contact y or n :n
motor is gestopt

----------------------------------
Makefile
----------------------------------
CC = gcc

auto.o: auto.cpp interface.h
  $(CC) -c auto.cpp

interface.o: interface.cpp motor.h
  $(CC) -c interface.cpp

motor.o: motor.cpp
  $(CC) -c motor.cpp

all: auto.o interface.o motor.o
  $(CC) -o auto auto.o interface.o motor.o

#clean:
# rm -f *.o auto

----------------------------------

Groetjes
Your c++ buddy
Technical Details
Message-ID: <3D07EA0C.5000900@easynet.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-08!supernews.com!news.maxwell.syr.edu!mango.news.easynet.net!easynet-monga!easynet.net!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mail
References: <3D04E1A2.1040508@easynet.be> <9N8N8.26036$ud.3504@afrodite.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,c850a5934c174449
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2002-06-12 17:52:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-08!supernews.com!news.maxwell.syr.edu!mango.news.easynet.net!easynet-monga!easynet.net!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mail
Message-ID: <3D07EA0C.5000900@easynet.be>
Date: Thu, 13 Jun 2002 02:40:44 +0200
From: gert <gert@easynet.be>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020606
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: be.comp.programming
Subject: Re: linux c++ auto wil niet starten :)
References: <3D04E1A2.1040508@easynet.be> <9N8N8.26036$ud.3504@afrodite.telenet-ops.be>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 46
Organization: [ posted via Easynet Belgium ]
NNTP-Posting-Host: 213.193.182.4
X-Trace: 1023928839  3767 213.193.182.4
X-Complaints-To: abuse@be.easynet.net