Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Specifing a program in the Run/Debug
Specifing a program in the Run/Debug [message #79212] Thu, 28 August 2003 04:56 Go to next message
Eclipse UserFriend
Originally posted by: gilhn.netscape.net

Hi,
I have installed Eclipse 2.1.1 with CDT 1.1 on my Win2K OS.
I have downloaded the Borland C++ compiler and extracted it to
"c:\program files\BCC55" (I don't think it installed anything else).

I've tried to copile the standard "Hello World" program from the tutorial,
but I'm getting a "program not specified" message.
When I write the path of my compiler "c:\program files\BCC55\bin" I'm
getting a "Program does not exist" message. When I click on "Search..." a
window appears with no selections.

I've read previous articles in the newsgroup. I did choose the correct
Windows parser, so this is no the problem.

Can someone help me?

Gil
Re: Specifing a program in the Run/Debug [message #79226 is a reply to message #79212] Thu, 28 August 2003 08:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rb200m.doc.ic.ac.uk

Gil wrote:

> Hi,
> I have installed Eclipse 2.1.1 with CDT 1.1 on my Win2K OS.
> I have downloaded the Borland C++ compiler and extracted it to
> "c:program filesBCC55" (I don't think it installed anything else).

> I've tried to copile the standard "Hello World" program from the tutorial,
> but I'm getting a "program not specified" message.
> When I write the path of my compiler "c:program filesBCC55bin" I'm
> getting a "Program does not exist" message. When I click on "Search..." a
> window appears with no selections.

> I've read previous articles in the newsgroup. I did choose the correct
> Windows parser, so this is no the problem.

> Can someone help me?

> Gil

make sure u specify the right path to your make.exe and g++.exe in the
makefile.
Re: Specifing a program in the Run/Debug [message #79267 is a reply to message #79226] Thu, 28 August 2003 10:34 Go to previous message
Eclipse UserFriend
ali wrote:

> Gil wrote:
>
>> Hi,
>> I have installed Eclipse 2.1.1 with CDT 1.1 on my Win2K OS.
>> I have downloaded the Borland C++ compiler and extracted it to
>> "c:program filesBCC55" (I don't think it installed anything else).
>
>> I've tried to copile the standard "Hello World" program from the
>> tutorial, but I'm getting a "program not specified" message.
>> When I write the path of my compiler "c:program filesBCC55bin" I'm
>> getting a "Program does not exist" message. When I click on "Search..." a
>> window appears with no selections.
>
>> I've read previous articles in the newsgroup. I did choose the correct
>> Windows parser, so this is no the problem.
>
>> Can someone help me?
>
>> Gil
>
> make sure u specify the right path to your make.exe and g++.exe in the
> makefile.

Gil is using Borland tools, though it probably is using bcc32 as compiler
and not g++! I don't know which make-tool is provided with BC++, but this
one you have to set as the default build command in the Projects Settings.

@Gil:
The Makefile syntax depends on this make-program though the Makefile needs
to adapt to this too, even though you could use the standard make command.
If you use make you could adapt your makefile like:
# CC is the compiler for plain C (probably the same as C++)
CC = bcc32
# CXX is the compiler for C++
CXX = bcc32
# LD sets the linker i guess its called blink.exe
# (or whatever the borland linker is named)
LD = blink
# compile flags
CXXFLAGS = <bcc32 specific compile flags>
# link flags like libs to link against
LDFLAGS = <blink specific flags for linking>

# the app target gets linked like this
app.exe: $(APP_OBJECTS)
$(LD) -o $@ $^ $(LDFLAGS)

# compile a single object file from source
%.o: %.cpp
$(CXX) $(CXXFLAGS) -o $@ -c $<

---
Be warned, I don't know if this works, since I don't use Borland Tools.
It's just a guess, but it should work with some adoption.
Previous Topic:Debugging arm-elf
Next Topic:Build Error
Goto Forum:
  


Current Time: Tue May 13 07:36:10 EDT 2025

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

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

Back to the top