Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT Introductory Tutorial
CDT Introductory Tutorial [message #80248] Mon, 15 September 2003 17:01 Go to next message
Eclipse UserFriend
We have posted a simple, introductory tutorial
on getting the CDT plugin installed in Eclipse.
The tutorial is available in pdf and ps formats and is located at:
http://www.cs.umanitoba.ca/~eclipse/

(The remainder of the tutorials deal primarily with
using Eclipse and Java and the SWT to develop desktop applications.)

The tutorial was developed with Eclipse 2.1, MinGW 3.0.0.1, and CDT 1.1.0.

David Scuse
Department of Computer Science
University of Manitoba
Winnipeg, Manitoba, Canada
Re: CDT Introductory Tutorial [message #81508 is a reply to message #80248] Wed, 01 October 2003 14:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Thanks for putting this tutorial together! This was quite helpful for
me, being a first time user of Eclipse and the CDT.

- Corey


David Scuse wrote:

> We have posted a simple, introductory tutorial
> on getting the CDT plugin installed in Eclipse.
> The tutorial is available in pdf and ps formats and is located at:
> http://www.cs.umanitoba.ca/~eclipse/
>
> (The remainder of the tutorials deal primarily with
> using Eclipse and Java and the SWT to develop desktop applications.)
>
> The tutorial was developed with Eclipse 2.1, MinGW 3.0.0.1, and CDT 1.1.0.
>
> David Scuse
> Department of Computer Science
> University of Manitoba
> Winnipeg, Manitoba, Canada
>
>
Re: CDT Introductory Tutorial [message #86883 is a reply to message #80248] Sun, 23 November 2003 18:19 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.

------=_NextPart_000_0018_01C3B1E5.F9C17C20
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0019_01C3B1E5.F9C17C20"


------=_NextPart_001_0019_01C3B1E5.F9C17C20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am still having problems.
1) When after naming the new project and pressing NEXT there is no Build =
Settings tab. I selected the MAKE BUILDER tab to make the change. When =
I pressed FINISH there were no more windows!!!

2) After creating main.cpp And the makefile I had no red x's, but I =
added using namespace std; anyway.

3) I did not see make.exe any where at al in the project!!!

4) When clicking on RUN ->RUN, I did not have to add anything. It was =
already there. At the top left of the window was a red x that said: =
Program does not exist and the run button was disabled.

I then tried to rebuild the project and ended up with the following =
message:=20
*** missing separator. Stop. =
makefile StdHelloWorld =
line 2

I have attached the project. I have no idea what I am doing wrong. I =
tried 3 times.

Can you help???

Neil Swartz



"David Scuse" <scuse@cs.umanitoba.ca> wrote in message =
news:bk598k$p0m$1@eclipse.org...
> We have posted a simple, introductory tutorial
> on getting the CDT plugin installed in Eclipse.
> The tutorial is available in pdf and ps formats and is located at:
> http://www.cs.umanitoba.ca/~eclipse/
>=20
> (The remainder of the tutorials deal primarily with
> using Eclipse and Java and the SWT to develop desktop applications.)
>=20
> The tutorial was developed with Eclipse 2.1, MinGW 3.0.0.1, and CDT =
1.1.0.
>=20
> David Scuse
> Department of Computer Science
> University of Manitoba
> Winnipeg, Manitoba, Canada
>=20
>
------=_NextPart_001_0019_01C3B1E5.F9C17C20
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I am still having =
problems.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>1) When after naming the new project =
and pressing=20
NEXT there is no Build Settings tab.&nbsp; I selected the <STRONG>MAKE =
BUILDER=20
</STRONG>tab to make the change.&nbsp; When I pressed FINISH there were =
no more=20
windows!!!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>2) After creating main.cpp And the =
makefile=20
I&nbsp;had no red x's, but I added <FONT=20
face=3DTimesNewRomanPS-BoldMT><STRONG>using namespace std;=20
</STRONG>anyway.</FONT></FONT><FONT face=3DArial size=3D2></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>3) I did not see make.exe any where at =
al in the=20
project!!!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>4) When clicking on <STRONG>RUN =
-&gt;RUN,=20
</STRONG>I did not have to add anything.&nbsp; It was already =
there.&nbsp; At=20
the top left of the window was a red x that said: <EM>Program does not =
exist=20
</EM>and the run button was disabled.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I then tried to rebuild the project and =
ended up=20
with the following message: </FONT></DIV>
<DIV><FONT face=3DArial size=3D2><EM>*** missing separator.&nbsp;=20
Stop.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n b=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb s=
p;&nbsp;=20
makefile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;=20
StdHelloWorld&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;=20
line 2</EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have attached the project.&nbsp; I =
have no idea=20
what I am doing wrong.&nbsp; I tried 3 times.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can you help???</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Neil Swartz</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"David Scuse" &lt;</FONT><A=20
href=3D"mailto:scuse@cs.umanitoba.ca"><FONT face=3DArial=20
size=3D2>scuse@cs.umanitoba.ca</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote in=20
message </FONT><A href=3D"news:bk598k$p0m$1@eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:bk598k$p0m$1@eclipse.org</FONT></A><FONT face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; We have posted =
a simple,=20
introductory tutorial<BR>&gt; on getting the CDT plugin installed in=20
Eclipse.<BR>&gt; The tutorial is available in pdf and ps formats and is =
located=20
at:<BR>&gt; </FONT><A =
href=3D"http://www.cs.umanitoba.ca/~eclipse/"><FONT=20
face=3DArial =
size=3D2>http://www.cs.umanitoba.ca/~eclipse/</FONT></A><BR><FONT=20
face=3DArial size=3D2>&gt; <BR>&gt; (The remainder of the tutorials deal =
primarily=20
with<BR>&gt; using Eclipse and Java and the SWT to develop desktop=20
applications.)<BR>&gt; <BR>&gt; The tutorial was developed with Eclipse =
2.1,=20
MinGW 3.0.0.1, and CDT 1.1.0.<BR>&gt; <BR>&gt; David Scuse<BR>&gt; =
Department of=20
Computer Science<BR>&gt; University of Manitoba<BR>&gt; Winnipeg, =
Manitoba,=20
Canada<BR>&gt; <BR>&gt; </FONT></BODY></HTML>

------=_NextPart_001_0019_01C3B1E5.F9C17C20--

------=_NextPart_000_0018_01C3B1E5.F9C17C20
Content-Type: application/x-zip-compressed;
name="StdHelloWorld.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="StdHelloWorld.zip"

UEsDBBQAAAAIAEKIdy8BqdSPoAAAADgBAAAZAFwAU3RkSGVsbG9Xb3JsZC8u Y2R0cHJvamVjdFNE
RwBoAAAAAAgAfO12zmNkYGkQYWBgMGCAAB8gZmQFM1lFgcTCLyxJMpwbOJ3F uYwYWfDIMTEwMDHI
MDCCpUUY/jPKMzBCOGASAFVUDQAHbDzBP2w8wT9rPME/jZDBCsIwDIbvgu9Q erfTm4fO3YQdBEF9
gNLGEd2SkZWxx7eO6QQPmtP/k3x/QmwxNLXqQTpkyvXGrLUC8hyQqlxfzvvV Vhe75cL6EFvhG/io
MOSapTLga2w7MKllGndPggVGpROhUlkYItAz+gd0SOrkHRHIUbjHAKJVy0jx mxqBabikK7+B7LU1
uOgmPXqM0Pxx9UfmnJVNYTabP5DsA1BLAwQUAAAACABCiHcvTOWaO7cBAABw CAAAFgBcAFN0ZEhl
bGxvV29ybGQvLnByb2plY3RTREcAaAAAAAAIAHztds5jZGBpEGFgYDBggAAf IGZkBTNZRYHEwi8s
STKcGzidxbmMGFnwyDExMDAxyDAwgqVFGP4zyjMwQjhgEgBVVA0AB2w8wT9s PME/azzBP71WXU/C
MBR9xsT/sPAO8+PFxAJBEDVBMQH1uXR3ZNK1Sz9Q/r1tt0kGjSMm46337pye 23vTnqHBd0qDDQiZ
cNZrX3Yv2gEwwqOErXrtt8Wkc9Me9M/PUCb4JxA1BklEkimDNtkWYjiF/lxF j0Ap/+CCRih0OfuR
8DQFpvooLFc2W+wkXRBWoqVOaDTPgNioCEeGilnkMoUeF6suEJpkErokUt0U r82CC3CrO8sCsavD
0LBYaVuAzOMWihJiz4DFtsi00Bq2Bzu7TUEILmZaZVq9YiHt1hZb8jaY6sOa HPNhNLq35Jx268cM
5/WY6bgW82yOXgt6r9SDwrz2oifhQVOObdNuALGm1A1gYVoOytcpQgGzAFPa gHzCiAA7aFxXRTP6
wPCSwlAr7uR9wjGmEhqQdpdlygm2NJ9wY8edlDP3qSqhmzhtrhw97c37hBVo CWOIsabKKY/S0097
WL5qPuVOHFh4nNDG9Iun2aeeGv/4ur7qWEYD8ri8Yae+4FLxbMbcI/rvcaOw akco3De6IlM6oXE9
pQUU6DzwGw7JP1rvc6C/CFXXfDmemCt5pMq1LfTX2at/DD9QSwMEFAAAAAgA O4l3LzaJA994AAAA
igAAABYAXABTdGRIZWxsb1dvcmxkL21haW4uY3BwU0RHAGgAAAAACAB87XbO Y2RgaRBhYGAwYIAA
HyBmZAUzWUWBxMIvLEkynBs4ncW5jBhZ8MgxMTAwMcgwMIKlRRj+M8ozMEI4 YBIAVVQNAAdBPsE/
QT7BP8g8wT8dzDEKAjEQQNF6A7nDsDYqwtobrPcGFmIxJMMaSCYymdiIdzex e/zi7yL71AKBi6Wq
EOarNa1G3oAxU32hJ6gaLtZYE1khY+T9AMrmT+CfKHDsft8fB/hYM/nSFJyD eaWUCtyKpDCPQBxS
30xC2oTh3P1dlpH/0x9QSwMEFAAAAAgAQIl3L03rFNF6AAAApgAAABYAXABT dGRIZWxsb1dvcmxk
L21ha2VmaWxlU0RHAGgAAAAACAB87XbOY2RgaRBhYGAwYIAAHyBmZAUzWUWB xMIvLEkynBs4ncW5
jBhZ8MgxMTAwMcgwMIKlRRj+M8ozMEI4YBIAVVQNAAdIPsE/SD7BP0c9wT/L TczMU7BSyAVSevm8
XOna2gq6+WAuVExB10fB2UrfNzPPPVw/JzNJPz05WRdE52bmpZcbG+kb6xnp Gesr6OYUl6Qka2vz
ckH1QQ1NLiiAGpuenpKkoJuMJJyYk6NgxculUu3r6O1aC5bg5UrOSU3MAwnr pqTmQB0BAFBLAQIW
CxQAAAAIAEKIdy8BqdSPoAAAADgBAAAZABEAAAAAAAEAIAC2gQAAAABTdGRI ZWxsb1dvcmxkLy5j
ZHRwcm9qZWN0U0QEAGgAAABVVAUAB2w8wT9QSwECFgsUAAAACABCiHcvTOWa O7cBAABwCAAAFgAR
AAAAAAABACAAtoEzAQAAU3RkSGVsbG9Xb3JsZC8ucHJvamVjdFNEBABoAAAA VVQFAAdsPME/UEsB
AhYLFAAAAAgAO4l3LzaJA994AAAAigAAABYAEQAAAAAAAQAgALaBegMAAFN0 ZEhlbGxvV29ybGQv
bWFpbi5jcHBTRAQAaAAAAFVUBQAHQT7BP1BLAQIWCxQAAAAIAECJdy9N6xTR egAAAKYAAAAWABEA
AAAAAAEAIAC2gYIEAABTdGRIZWxsb1dvcmxkL21ha2VmaWxlU0QEAGgAAABV VAUAB0g+wT9QSwUG
AAAAAAQABABXAQAAjAUAAAAA

------=_NextPart_000_0018_01C3B1E5.F9C17C20--
Re: CDT Introductory Tutorial [message #86914 is a reply to message #86883] Sun, 23 November 2003 20:40 Go to previous messageGo to next message
Eclipse UserFriend
You forgot to insert a TAB infront of each command!!!

all :
$(MAKE) ...
^^^^
HERE IS A TAB!

WyleySam schrieb:
> I am still having problems.
> 1) When after naming the new project and pressing NEXT there is no Build Settings tab. I selected the MAKE BUILDER tab to make the change. When I pressed FINISH there were no more windows!!!
>
> 2) After creating main.cpp And the makefile I had no red x's, but I added using namespace std; anyway.
>
> 3) I did not see make.exe any where at al in the project!!!
>
> 4) When clicking on RUN ->RUN, I did not have to add anything. It was already there. At the top left of the window was a red x that said: Program does not exist and the run button was disabled.
>
> I then tried to rebuild the project and ended up with the following message:
> *** missing separator. Stop. makefile StdHelloWorld line 2
>
> I have attached the project. I have no idea what I am doing wrong. I tried 3 times.
>
> Can you help???
>
> Neil Swartz
>
>
>
> "David Scuse" <scuse@cs.umanitoba.ca> wrote in message news:bk598k$p0m$1@eclipse.org...
>
>>We have posted a simple, introductory tutorial
>>on getting the CDT plugin installed in Eclipse.
>>The tutorial is available in pdf and ps formats and is located at:
>>http://www.cs.umanitoba.ca/~eclipse/
>>
>>(The remainder of the tutorials deal primarily with
>>using Eclipse and Java and the SWT to develop desktop applications.)
>>
>>The tutorial was developed with Eclipse 2.1, MinGW 3.0.0.1, and CDT 1.1.0.
>>
>>David Scuse
>>Department of Computer Science
>>University of Manitoba
>>Winnipeg, Manitoba, Canada
>>
>
>>
Re: CDT Introductory Tutorial [message #86930 is a reply to message #86914] Sun, 23 November 2003 20:09 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C3B1F5.4B8950A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ok, I put tabs in front of"

g++ -o main main.o -L C:/MinGW/lib/gcc-lib/mingw32/3.2.3/ -lstdc++
g++ -ggdb -c main.cpp
${MAKE} main
-del main.o

I am now getting the message:

*** commands commence before first target. Stop. Makefile =
StdHelloWorld =
line 1


"Henning Riedel" <kesselhaus@gmx.net> wrote in message =
news:bprjof$qs$1@eclipse.org...
> You forgot to insert a TAB infront of each command!!!
>=20
> all :
> $(MAKE) ...
> ^^^^
> HERE IS A TAB!
>=20
> WyleySam schrieb:
> > I am still having problems.
> > 1) When after naming the new project and pressing NEXT there is no =
Build Settings tab. I selected the MAKE BUILDER tab to make the change. =
When I pressed FINISH there were no more windows!!!
> >=20
> > 2) After creating main.cpp And the makefile I had no red x's, but I =
added using namespace std; anyway.
> >=20
> > 3) I did not see make.exe any where at al in the project!!!
> >=20
> > 4) When clicking on RUN ->RUN, I did not have to add anything. It =
was already there. At the top left of the window was a red x that said: =
Program does not exist and the run button was disabled.
> >=20
> > I then tried to rebuild the project and ended up with the following =
message:=20
> > *** missing separator. Stop. =
makefile StdHelloWorld =
line 2
> >=20
> > I have attached the project. I have no idea what I am doing wrong. =
I tried 3 times.
> >=20
> > Can you help???
> >=20
> > Neil Swartz
> >=20
> >=20
> >=20
> > "David Scuse" <scuse@cs.umanitoba.ca> wrote in message =
news:bk598k$p0m$1@eclipse.org...
> >=20
> >>We have posted a simple, introductory tutorial
> >>on getting the CDT plugin installed in Eclipse.
> >>The tutorial is available in pdf and ps formats and is located at:
> >>http://www.cs.umanitoba.ca/~eclipse/
> >>
> >>(The remainder of the tutorials deal primarily with
> >>using Eclipse and Java and the SWT to develop desktop applications.)
> >>
> >>The tutorial was developed with Eclipse 2.1, MinGW 3.0.0.1, and CDT =
1.1.0.
> >>
> >>David Scuse
> >>Department of Computer Science
> >>University of Manitoba
> >>Winnipeg, Manitoba, Canada
> >>
> >=20
> >>=20
>
------=_NextPart_000_000B_01C3B1F5.4B8950A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Ok, I put tabs in front =
of"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; g++ -o main main.o =
-L=20
C:/MinGW/lib/gcc-lib/mingw32/3.2.3/ -lstdc++</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT size=3D2>&nbsp;&nbsp;&nbsp; g++ =
-ggdb -c=20
main.cpp</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT size=3D2><FONT =
size=3D1>&nbsp;&nbsp;&nbsp; <FONT=20
size=3D2>${MAKE} main</FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; -del =
main.o</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am now getting the =
message:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT>
<DIV><FONT face=3DArial size=3D2>*** commands commence before first =
target.&nbsp;=20
Stop.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Makefile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;=20
StdHelloWorld&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;=20
line 1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Henning Riedel" &lt;</FONT><A=20
href=3D"mailto:kesselhaus@gmx.net"><FONT face=3DArial=20
size=3D2>kesselhaus@gmx.net</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in=20
message </FONT><A href=3D"news:bprjof$qs$1@eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:bprjof$qs$1@eclipse.org</FONT></A><FONT face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; You forgot to =
insert a TAB=20
infront of each command!!!<BR>&gt; <BR>&gt; all :<BR>&gt; $(MAKE) =
....<BR>&gt;=20
^^^^<BR>&gt; HERE IS A TAB!<BR>&gt; <BR>&gt; WyleySam schrieb:<BR>&gt; =
&gt; I am=20
still having problems.<BR>&gt; &gt; 1) When after naming the new project =
and=20
pressing NEXT there is no Build Settings tab.&nbsp; I selected the MAKE =
BUILDER=20
tab to make the change.&nbsp; When I pressed FINISH there were no more=20
windows!!!<BR>&gt; &gt; <BR>&gt; &gt; 2) After creating main.cpp And the =

makefile I had no red x's, but I added using namespace std; =
anyway.<BR>&gt; &gt;=20
<BR>&gt; &gt; 3) I did not see make.exe any where at al in the=20
project!!!<BR>&gt; &gt; <BR>&gt; &gt; 4) When clicking on RUN -&gt;RUN, =
I did=20
not have to add anything.&nbsp; It was already there.&nbsp; At the top =
left of=20
the window was a red x that said: Program does not exist and the run =
button was=20
disabled.<BR>&gt; &gt; <BR>&gt; &gt; I then tried to rebuild the project =
and=20
ended up with the following message: <BR>&gt; &gt; *** missing =
separator.&nbsp;=20
Stop.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n b=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb s=
p;&nbsp;=20
makefile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;=20
StdHelloWorld&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;=20
line 2<BR>&gt; &gt; <BR>&gt; &gt; I have attached the project.&nbsp; I =
have no=20
idea what I am doing wrong.&nbsp; I tried 3 times.<BR>&gt; &gt; <BR>&gt; =
&gt;=20
Can you help???<BR>&gt; &gt; <BR>&gt; &gt; Neil Swartz<BR>&gt; &gt; =
<BR>&gt;=20
&gt; <BR>&gt; &gt; <BR>&gt; &gt; "David Scuse" &lt;</FONT><A=20
href=3D"mailto:scuse@cs.umanitoba.ca"><FONT face=3DArial=20
size=3D2>scuse@cs.umanitoba.ca</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote in=20
message </FONT><A href=3D"news:bk598k$p0m$1@eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:bk598k$p0m$1@eclipse.org</FONT></A><FONT face=3DArial=20
size=3D2>...<BR>&gt; &gt; <BR>&gt; &gt;&gt;We have posted a simple, =
introductory=20
tutorial<BR>&gt; &gt;&gt;on getting the CDT plugin installed in =
Eclipse.<BR>&gt;=20
&gt;&gt;The tutorial is available in pdf and ps formats and is located=20
at:<BR>&gt; &gt;&gt;http://www.cs.umanitoba.ca/~eclipse/<BR>&gt;=20
&gt;&gt;<BR>&gt; &gt;&gt;(The remainder of the tutorials deal primarily=20
with<BR>&gt; &gt;&gt;using Eclipse and Java and the SWT to develop =
desktop=20
applications.)<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;The tutorial was =
developed with=20
Eclipse 2.1, MinGW 3.0.0.1, and CDT 1.1.0.<BR>&gt; &gt;&gt;<BR>&gt;=20
&gt;&gt;David Scuse<BR>&gt; &gt;&gt;Department of Computer =
Science<BR>&gt;=20
&gt;&gt;University of Manitoba<BR>&gt; &gt;&gt;Winnipeg, Manitoba,=20
Canada<BR>&gt; &gt;&gt;<BR>&gt; &gt; <BR>&gt; &gt;&gt; <BR>&gt;=20
</FONT></BODY></HTML>

------=_NextPart_000_000B_01C3B1F5.4B8950A0--
Re: CDT Introductory Tutorial [message #86975 is a reply to message #86930] Mon, 24 November 2003 05:47 Go to previous message
Eclipse UserFriend
Right out of the GNU Make Manual:
> `commands commence before first target. Stop.'
> `missing rule before commands. Stop.'
> This means the first thing in the makefile seems to be part of a
> command script: it begins with a TAB character and doesn't appear
> to be a legal `make' command (such as a variable assignment).
> Command scripts must always be associated with a target.
>
> The second form is generated if the line has a semicolon as the
> first non-whitespace character; `make' interprets this to mean you
> left out the "target: prerequisite" section of a rule. *Note Rule
> Syntax::.

Seems like your makefile has some tab where it should not have one.
Anything that is not a command, should either start at column 0 or
indented by spaces.
Each command-line should be tab-indented.

BTW, I suggest you (and any other new to makefiles) grab a copy of the
GNU Make manual.
This should be no problem, since there are already documentation plugins
ready for use with Eclipse.
They are listed here
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/cdt- home/community.html?cvsroot=Tools_Project

They are a good base of knowledge.

When using GNU Tools (as GCC is) http://www.gnu.org/manual/manual.html.
I even saw somewhere a site with Windows-HTML-Help files of GNU
documentations.

WyleySam schrieb:
> Ok, I put tabs in front of"
>
> g++ -o main main.o -L C:/MinGW/lib/gcc-lib/mingw32/3.2.3/ -lstdc++
> g++ -ggdb -c main.cpp
> ${MAKE} main
> -del main.o
>
> I am now getting the message:
>
> *** commands commence before first target. Stop. Makefile StdHelloWorld line 1
>
>
> "Henning Riedel" <kesselhaus@gmx.net> wrote in message news:bprjof$qs$1@eclipse.org...
>
>>You forgot to insert a TAB infront of each command!!!
>>
>>all :
>>$(MAKE) ...
>>^^^^
>>HERE IS A TAB!
>>
>>WyleySam schrieb:
>>
>>>I am still having problems.
>>>1) When after naming the new project and pressing NEXT there is no Build Settings tab. I selected the MAKE BUILDER tab to make the change. When I pressed FINISH there were no more windows!!!
>>>
>>>2) After creating main.cpp And the makefile I had no red x's, but I added using namespace std; anyway.
>>>
>>>3) I did not see make.exe any where at al in the project!!!
>>>
>>>4) When clicking on RUN ->RUN, I did not have to add anything. It was already there. At the top left of the window was a red x that said: Program does not exist and the run button was disabled.
>>>
>>>I then tried to rebuild the project and ended up with the following message:
>>>*** missing separator. Stop. makefile StdHelloWorld line 2
>>>
>>>I have attached the project. I have no idea what I am doing wrong. I tried 3 times.
>>>
>>>Can you help???
>>>
>>>Neil Swartz
>>>
>>>
>>>
>>>"David Scuse" <scuse@cs.umanitoba.ca> wrote in message news:bk598k$p0m$1@eclipse.org...
>>>
>>>
>>>>We have posted a simple, introductory tutorial
>>>>on getting the CDT plugin installed in Eclipse.
>>>>The tutorial is available in pdf and ps formats and is located at:
>>>>http://www.cs.umanitoba.ca/~eclipse/
>>>>
>>>>(The remainder of the tutorials deal primarily with
>>>>using Eclipse and Java and the SWT to develop desktop applications.)
>>>>
>>>>The tutorial was developed with Eclipse 2.1, MinGW 3.0.0.1, and CDT 1.1.0.
>>>>
>>>>David Scuse
>>>>Department of Computer Science
>>>>University of Manitoba
>>>>Winnipeg, Manitoba, Canada
>>>>
>>>
>>
Previous Topic:Error in simple HelloWorld App
Next Topic:gdb problem
Goto Forum:
  


Current Time: Sat Jul 19 11:50:07 EDT 2025

Powered by FUDForum. Page generated in 0.04794 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top