www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Compile c/cpp error

reply "sdvcn" <sdvcn 126.com> writes:
"*.obj.build.cmd"

call %VCINSTALLDIR%\vcvarsall.bat x64

%VCINSTALLDIR% Including spaces

fix:

call "%VCINSTALLDIR%\vcvarsall.bat" x64


"C/C++ Compiler Cmd" $(CC) Set in there?



" win32-coff " How to use?
Dec 28 2014
parent Rainer Schuetze <r.sagitario gmx.de> writes:
On 28.12.2014 12:10, sdvcn wrote:
 "*.obj.build.cmd"

 call %VCINSTALLDIR%\vcvarsall.bat x64

 %VCINSTALLDIR% Including spaces

 fix:

 call "%VCINSTALLDIR%\vcvarsall.bat" x64
Thanks. Fixed in next version.
 "C/C++ Compiler Cmd" $(CC) Set in there?
You can add common C compile command line options here. Options for output file name, debugging and optimizations will be appended automatically.
 " win32-coff " How to use?
You need a recent dmd/phobos version from github and build druntime and phobos yourself (see http://www.digitalmars.com/d/archives/digitalmars/D/X86_COFF_format_static_libraries_is_very_important_for_d_how_to_use_247333.html). Then build a Visual D project with configuration Win32, but check "Configuration Properties->Compiler->Output->Use MS-COFF". Depending on your configuration in sc.ini, you might also need to add some paths to the x86-COFF-libraries similar to x64. See "Tools->Options->Project and Solutions->Visual D Settings->DMD Directories->Win32-COFF".
Jan 01 2015