Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: msbuild ilink error



Permlink Replies: 1 - Last Post: Nov 6, 2016 11:12 PM Last Post By: Alain Bourgeois Threads: [ Previous | Next ]
Alain Bourgeois

Posts: 26
Registered: 3/15/00
msbuild ilink error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 3, 2016 4:12 AM
Hi,

I am trying to set up a build server, using c++ builder XE10 on win7x64 sp 1. I have a project that builds fine in IDE (VCL, Release).
So I build it using IDE then I delete the exe file, run rad studio command prompt:
msbuild giservice_formonly.cbproj /t:Make /p:config=Release /p:platform=Win32

I get:
...
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Fatal: Unable to open file 'CRGRID.OBJ'
Done Building Project "N:\cec\gestioninterne\pgm2010\GIServices\giservice_formonly.cbproj" (Make target(s)) -- FAILED.

Build FAILED.

"N:\cec\gestioninterne\pgm2010\GIServices\giservice_formonly.cbproj" (Make target) (1) ->(_PerformBCCILink target) -> C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Fatal: Unable to open file 'CRGRID.OBJ'

0 Warning(s)
1 Error(s)

CRGrid.obj doesn't exist, there is a crgrid.dcu in devart's unidac components.

Question: why does it build fine in IDE (same settings: release) and not in command-line? How can I do so that command-line and IDE link (and build) the same way?

Thanks.

Alain Bourgeois

Posts: 26
Registered: 3/15/00
Re: msbuild ilink error
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 6, 2016 11:12 PM   in response to: Alain Bourgeois in response to: Alain Bourgeois
Issue found: one of the upgrades to cbproj renamed "Debug" and "Release" configs in 'Release Build"/"Debug Build".
=> /p:config=Release couldn't find right config.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02