C++ Builder IDE >> BCB6 does not produce exe on build

by Ian Bromfield » Tue, 01 Nov 2005 21:53:52 GMT

I am having problems with Builder 6 in that it has stopped producing an exe
on "build". The only way I can get the exe is to use "run", I can even
delete the exe and neither "make" or "build" will recreate it.

Can anyone help me get back to where I was when the exe would always be
produced on "build"

TIA
Ian




C++ Builder IDE >> BCB6 does not produce exe on build

by Bill D. Pirkle » Tue, 01 Nov 2005 23:05:57 GMT






Sorry, I don't know the answer, but I have seen a similar problem with
BCB6 (all patches). Maybe comparing notes will help.

I'm using project groups: one .bpg file, five .bpr files. My program
is a fairly large Win32 application. Final .exe size is around 3.7
Meg, and that's using runtime packages. I use some components from TMS
Software, and those are statically linked.

Building recompiles everything, creating all .obj files, but doesn't
always create the .exe file. In my case, "Make all projects"
consistently does produce the .exe file.

It would probably be a good idea for both of us to first save a copy of
our project file(s), then recreate them from scratch. If that helped,
we could then compare for differences. I just haven't had the time
sine this started. Have you tried that yet?

--
Bill D. Pirkle
www.worldchessnetwork.com - Where the world plays chess!
www.tentonhammer.com - EQ2, WoW, GuildWars, Middle-Earth Online, and
more!



C++ Builder IDE >> BCB6 does not produce exe on build

by Bruce Salzman » Wed, 02 Nov 2005 00:44:10 GMT

> Building recompiles everything, creating all .obj files, but doesn't

Did you add an RC file to your project by any chance? Build will try
to invoke the resource compiler (which may not work) while Make will
just use the RES file if it exists.

--
Bruce




BCB6 does not produce exe on build

by hgiese » Wed, 02 Nov 2005 02:10:54 GMT

On Tue, 1 Nov 2005 13:53:52 -0000, "Ian Bromfield"


Hi Ian,
IIRC when having a project group with several targets you have to
/activate/ the one you currently want to work with (right click |
context menu | activate ... or some such).
HTH
Helmut Giese


BCB6 does not produce exe on build

by Bill D. Pirkle » Wed, 02 Nov 2005 22:49:32 GMT





Yes I did. I almost never change any of my resources, so including a
.RES instead is no biggie. I'll give that a whirl and see how it goes.

Thanks Bruce!

--
Bill D. Pirkle
www.worldchessnetwork.com - Where the world plays chess!
www.tentonhammer.com - EQ2, WoW, GuildWars, Middle-Earth Online, and
more!


BCB6 does not produce exe on build

by Ian Bromfield » Thu, 03 Nov 2005 00:32:29 GMT








I did the same.

I also found an article at
http://support.borland.com/entry.jspa?externalID=3432&categoryID=172
describing how to get around the problem. The problem with editing the BPL
file is that if you go to Project options it gets changed back to RC, so I
found that using the RES or renaming the extension was the failsafe way.

Ian







BCB6 does not produce exe on build

by Bill D. Pirkle » Sat, 05 Nov 2005 02:17:45 GMT





Thanks for the link!

After switching to RES, it seems the problem is indeed fixed. I rarely
change anything in the resources (like, once in the last year) so this
solution is quick, simple, and effective for me. Hooray!

--
Bill D. Pirkle
www.worldchessnetwork.com - Where the world plays chess!
www.tentonhammer.com - EQ2, WoW, GuildWars, Middle-Earth Online, and
more!


Similar Threads

1. CG2007 CB Produces Good Exe's in MultiProject Build [an apology] - C++ Builder IDE

2. Build does not create an .exe file

I'm using CBuilder 6.
I have a project that builds normally on development machine, but when
built on our build machine does not produce an .exe file.

It creates .obj files, and 'acts' normally (no errors during link), but
does not create an exe file in the default folder (source code).

I found a workaround, if I state the output path to some other
location, it builds.
If I state the actual build path that should be done by default, it
does not work.

I've been using CBuilder for 6 years, never saw this one before.

3. Can not find "ShdocVW.obj" when building project mix with D7 and BCB6 units - Borland C++ Builder VCL Components

4. Terrifying error messages produced by vc .exe: win32 error 11

Hello and thanks for helping.

I have been developing a program on a win98 computer but then switched to a
w2k computer for a while.   Now I have to go back to the win98 computer and
support the program on other win98 computers.  Problem is, when I
reinstalled VC++, cleaned then rebuilt all, then executed, the following 2
dialog boxes appeared:

1)"Error starting program"  "Program appears to be corrupt"

2) "Microsoft Visual C++"  "Incorrect format (win32 error 11)"

this same project, when compiled for win98 3 months ago, worked fine.
This same project, when compiled for win2k on win2k yesterday worked as
well.

Some of the work I did over the last 3 months is somehow incompatible with
win98.  Can anyone help me get a clue as to how to figure out whaaa?  cmon
throw a newbie a bone.  My date is set correctly.

Thank you,

Ivan



5. Error messages produced by vc .exe: win32 error 11

6. Terrifying error messages produced by vc .exe: win32 error 11

Hello and thanks for helping.

I have been developing a program on a win98 computer but then switched to a
w2k computer for a while.   Now I have to go back to the win98 computer and
support the program on other win98 computers.  Problem is, when I
reinstalled VC++, cleaned then rebuilt all, then executed, the following 2
dialog boxes appeared:

1)"Error starting program"  "Program appears to be corrupt"

2) "Microsoft Visual C++"  "Incorrect format (win32 error 11)"

this same project, when compiled for win98 3 months ago, worked fine.
This same project, when compiled for win2k on win2k yesterday worked as
well.

Some of the work I did over the last 3 months is somehow incompatible with
win98.  Can anyone help me get a clue as to how to figure out whaaa?  cmon
throw a newbie a bone.  My date is set correctly.  I tried to post this in
the ide newsgroup but I don't think anyone goes there but maybe the MFC
newsgroup is apropos anyway.

Thank you,

Ivan





7. Build an exe from another exe

8. Free Pascal produces large .exe's

I was comparing the size of a minimal "Hello World" program; 1 written
in C, and 1 written in Pascal, and I was surprised of the differences
in the sizes of the resulting .EXE files.

The exact code I used is as follows:

// C Version of "Hello World"
#include <stdio.h>

int main(void)
{
  printf("Hello World");
  return 0;
}


{ Pascal version of "Hello World" }
program hello;
begin
  writeln('Hello World');
end;


I compiled the C code using Borland's C++ command line compiler v5.5.
The Pascal code was compiled using Free Pascal 2.0 with many compiler
options disabled. The size of the C .EXE was 51k, and the Free Pascal
.EXE was a whopping 103k! Why is the Free Pascal .EXE so large?