Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Unable to build
Unable to build [message #43349] Sun, 29 September 2002 10:18 Go to next message
Eclipse UserFriend
--------------115A41FE05C04C052F6871D0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello:
I have followed the instructions given in CDT User FAQ to create a Hello
World Project. I am getting an error when I issue build command. The
error text is as follows:

make -f makefile
!CBuilder.build_error!
(CreateProcess: make -f makefile error=2)

I installed MinGW at C:\MinGW and changed the makefile accordingly.
Also, I have added the C:\MinGW\bin directory to the PATH environment
variable. Is CDT running make command that ships with MinGW? If so, I
dont see the make.exe in C:\MinGW\bin directory? Could that be the
problem?

The makefile is as follows:

objects = hello.o

hello : $(objects)
gcc -o hello $(objects) -L C:/MinGW/lib/gcc-lib/mingw32/3.2/
-lstdc++

$(objects) : hello.cpp
gcc -c hello.cpp

all :
${MAKE} hello

..PHONY : clean
clean :
-del hello.exe $(objects)

Thanks in advance.
Anil

--------------115A41FE05C04C052F6871D0
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello:
<br>I have followed the instructions given in CDT User FAQ to create a
Hello World Project. I am getting an error when I issue build command.
The error text is as follows:
<p><tt>make -f makefile</tt>
<br><tt>!CBuilder.build_error!</tt>
<br><tt>(CreateProcess: make -f makefile error=2)</tt><tt></tt>
<p>I installed MinGW at C:\MinGW and changed the makefile accordingly.
Also, I have added the C:\MinGW\bin directory to the PATH environment variable.
Is CDT running <tt>make</tt> command that ships with MinGW? If so, I dont
see the make.exe in C:\MinGW\bin directory? Could that be the problem?
<p>The makefile is as follows:
<p><tt>objects = hello.o</tt><tt></tt>
<p><tt>hello : $(objects)</tt>
<br><tt>&nbsp;&nbsp;&nbsp; gcc -o hello $(objects) -L C:/MinGW/lib/gcc-lib/mingw32/3.2/
-lstdc++</tt><tt></tt>
<p><tt>$(objects) : hello.cpp</tt>
<br><tt>&nbsp;&nbsp;&nbsp; gcc -c hello.cpp</tt><tt></tt>
<p><tt>all :</tt>
<br><tt>&nbsp;&nbsp;&nbsp; ${MAKE} hello</tt><tt></tt>
<p><tt>.PHONY : clean</tt>
<br><tt>clean :</tt>
<br><tt>&nbsp;&nbsp;&nbsp; -del hello.exe $(objects)</tt>
<p>Thanks in advance.
<br>Anil</html>

--------------115A41FE05C04C052F6871D0--
Re: Unable to build [message #43453 is a reply to message #43349] Mon, 30 September 2002 03:57 Go to previous messageGo to next message
Eclipse UserFriend
CDT will launch that make.exe which could find in the PATH. So if you
insert C:\MinGW\bin in PATH and there is no make.exe CDT will post such a
diagnostic

make -f makefile
!CBuilder.build_error!
(CreateProcess: make -f makefile error=2)

You should get make.exe and then everything launch properly.

Hope it helps,
Igor S. Zamyatin
Interstron Ltd.
----------------------------------------
email: isz@interstron.ru
tel: +7 (095) 269-4713
cell: +7 (902) 659-5838
www: http://www.interstron.ru


Anil Ambati wrote:


> --------------115A41FE05C04C052F6871D0
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit

> Hello:
> I have followed the instructions given in CDT User FAQ to create a Hello
> World Project. I am getting an error when I issue build command. The
> error text is as follows:

> make -f makefile
> !CBuilder.build_error!
> (CreateProcess: make -f makefile error=2)

> I installed MinGW at C:\MinGW and changed the makefile accordingly.
> Also, I have added the C:\MinGW\bin directory to the PATH environment
> variable. Is CDT running make command that ships with MinGW? If so, I
> dont see the make.exe in C:\MinGW\bin directory? Could that be the
> problem?

> The makefile is as follows:

> objects = hello.o

> hello : $(objects)
> gcc -o hello $(objects) -L C:/MinGW/lib/gcc-lib/mingw32/3.2/
> -lstdc++

> $(objects) : hello.cpp
> gcc -c hello.cpp

> all :
> ${MAKE} hello

> ..PHONY : clean
> clean :
> -del hello.exe $(objects)

> Thanks in advance.
> Anil

> --------------115A41FE05C04C052F6871D0
> Content-Type: text/html; charset=us-ascii
> Content-Transfer-Encoding: 7bit

> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>
> Hello:
> <br>I have followed the instructions given in CDT User FAQ to create a
> Hello World Project. I am getting an error when I issue build command.
> The error text is as follows:
> <p><tt>make -f makefile</tt>
> <br><tt>!CBuilder.build_error!</tt>
> <br><tt>(CreateProcess: make -f makefile error=2)</tt><tt></tt>
> <p>I installed MinGW at C:\MinGW and changed the makefile accordingly.
> Also, I have added the C:\MinGW\bin directory to the PATH environment
variable.
> Is CDT running <tt>make</tt> command that ships with MinGW? If so, I dont
> see the make.exe in C:\MinGW\bin directory? Could that be the problem?
> <p>The makefile is as follows:
> <p><tt>objects = hello.o</tt><tt></tt>
> <p><tt>hello : $(objects)</tt>
> <br><tt>    gcc -o hello $(objects) -L C:/MinGW/lib/gcc-lib/mingw32/3.2/
> -lstdc++</tt><tt></tt>
> <p><tt>$(objects) : hello.cpp</tt>
> <br><tt>    gcc -c hello.cpp</tt><tt></tt>
> <p><tt>all :</tt>
> <br><tt>    ${MAKE} hello</tt><tt></tt>
> <p><tt>.PHONY : clean</tt>
> <br><tt>clean :</tt>
> <br><tt>    -del hello.exe $(objects)</tt>
> <p>Thanks in advance.
> <br>Anil</html>

> --------------115A41FE05C04C052F6871D0--
Re: Unable to build [message #43669 is a reply to message #43453] Wed, 02 October 2002 10:12 Go to previous messageGo to next message
Eclipse UserFriend
I've tried with this one found in MinGW:

mingw32-make.exe

but then I got this error:

makefile:4: *** missing separator. Stop.

Do I need something different? I'm really newby in C/C++ and I'm
just setting up the tools to start learning.


Igor S. Zamyatin wrote:

> CDT will launch that make.exe which could find in the PATH. So if you
> insert C:\MinGW\bin in PATH and there is no make.exe CDT will post such a
> diagnostic
>
> make -f makefile
> !CBuilder.build_error!
> (CreateProcess: make -f makefile error=2)
>
> You should get make.exe and then everything launch properly.
>
>
> Anil Ambati wrote:
>
>> Hello:
>> I have followed the instructions given in CDT User FAQ to create a
>> Hello World Project. I am getting an error when I issue build
>> command. The error text is as follows:
>>
>> make -f makefile
>> !CBuilder.build_error!
>> (CreateProcess: make -f makefile error=2)
>>
>> I installed MinGW at C:\MinGW and changed the makefile accordingly.
>> Also, I have added the C:\MinGW\bin directory to the PATH
>> environment variable. Is CDT running make command that ships with
>> MinGW? If so, I dont see the make.exe in C:\MinGW\bin directory?
>> Could that be the problem?
>>
>> The makefile is as follows:
>>
>> objects = hello.o
>>
>> hello : $(objects)
>> gcc -o hello $(objects) -L C:/MinGW/lib/gcc-lib/mingw32/3.2/ -lstdc++
>>
>> $(objects) : hello.cpp
>> gcc -c hello.cpp
>>
>> all :
>> ${MAKE} hello
>>
>> .PHONY : clean
>> clean :
>> -del hello.exe $(objects)
>>
>> Thanks in advance.
>> Anil
>>
>

--
Stanimir
Re: Unable to build [message #43732 is a reply to message #43669] Wed, 02 October 2002 17:23 Go to previous message
Eclipse UserFriend
Make sure the indented lines in your makefile are indented with a tab character,
rather than spaces.

Brian


Stanimir Stamenkov wrote:
> I've tried with this one found in MinGW:
>
> mingw32-make.exe
>
> but then I got this error:
>
> makefile:4: *** missing separator. Stop.
>
> Do I need something different? I'm really newby in C/C++ and I'm just
> setting up the tools to start learning.
>
>
> Igor S. Zamyatin wrote:
>
>> CDT will launch that make.exe which could find in the PATH. So if
>> you insert C:\MinGW\bin in PATH and there is no make.exe CDT will post
>> such a diagnostic
>>
>> make -f makefile
>> !CBuilder.build_error!
>> (CreateProcess: make -f makefile error=2)
>>
>> You should get make.exe and then everything launch properly.
>>
>>
>> Anil Ambati wrote:
>>
>>> Hello:
>>> I have followed the instructions given in CDT User FAQ to create a
>>> Hello World Project. I am getting an error when I issue build
>>> command. The error text is as follows:
>>>
>>> make -f makefile
>>> !CBuilder.build_error!
>>> (CreateProcess: make -f makefile error=2)
>>>
>>> I installed MinGW at C:\MinGW and changed the makefile accordingly.
>>> Also, I have added the C:\MinGW\bin directory to the PATH environment
>>> variable. Is CDT running make command that ships with MinGW? If so, I
>>> dont see the make.exe in C:\MinGW\bin directory? Could that be the
>>> problem?
>>>
>>> The makefile is as follows:
>>>
>>> objects = hello.o
>>>
>>> hello : $(objects)
>>> gcc -o hello $(objects) -L C:/MinGW/lib/gcc-lib/mingw32/3.2/
>>> -lstdc++
>>>
>>> $(objects) : hello.cpp
>>> gcc -c hello.cpp
>>>
>>> all :
>>> ${MAKE} hello
>>>
>>> .PHONY : clean
>>> clean :
>>> -del hello.exe $(objects)
>>>
>>> Thanks in advance.
>>> Anil
>>>
>>
>
Previous Topic:Inflexible project structure problem
Next Topic:Debugging in C
Goto Forum:
  


Current Time: Tue Jul 08 17:24:24 EDT 2025

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

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

Back to the top