C++Builder console application

I'm building a console application with Embarcadero RAD Studio 2010 (C++Builder personality). The FB actions I used to do this is the "C++Builder 2006/7/8 Project" which has a drop-down for "C++Builder 2010" for the compiler version. I point to the .cbproj project file and hit run.

The build fails on the link with a couple of errors, a typical one being:

G:\Borland\RAD Studio 7\Embarcadero\RAD Studio\7.0\Bin\CodeGear.Cpp.Targets(2175,3): error : Error: Unresolved external '__InitVCL' referenced from G:\BORLAND\RAD STUDIO 7\EMBARCADERO\RAD STUDIO\7.0\LIB\CP32MT.LIB|crtlvcl
 

I suspec that this is because the VCL is cropping up somewhere but since this is a console application the VCL is not wanted.

Naturally, if I build the project via the IDE it compiles file, and if I build from a DOS command line using:

bds -pCBuilder -b project.cbproj

that also works fine. Is FB making an assumption it shouldn't when it uses the bcc32 comand line?

 

 

Hi

If you do not specify a Config then you will get this error. Either type the config name in the combo box (typically Debug or Release), or make sure the correct compiler version is select and hit the refresh button next to the project file name to load the config names from the project, then choose the appropriate config from the combo. I guess we should enforce this.

Ah, such a little button with quite a big effect! Thanks very much

Just wanted to say thanks for this information.  Clicking on the refresh fixed my issues as well (although not a console app, I was having trouble getting it to compile).

 

Thanks,

Michael