Author Topic: Problem with configuration C::B with DMD and Tango.  (Read 4304 times)

Offline mp

  • Single posting newcomer
  • *
  • Posts: 7
Problem with configuration C::B with DMD and Tango.
« on: August 18, 2009, 10:53:42 pm »
Hello,

I've got little problem with DMD and Tango under C::B. I've downloaded Tango and DMD form site. In Settings->Compiler and debugger... In Compiler Setting, tab #defines i've added Tango, in Linker Settings in field Other Linker Settings -lgtango -lgphobos, in Tab Search directories Compiler tab: C:\Program Files\DMD\import\ (C:\Program Files\DMD is my DMD dir), in linker's tab: C:\Program Files\DMD\lib, toolchain exe is of course: C:\Program Files\DMD. And that is all options I've set. After compiling i'm getting:

Code
-------------- Build: Debug in App ---------------

Compiling: hello.d
Digital Mars D Compiler v1.041
Copyright (c) 1999-2009 by Digital Mars written by Walter Bright
Documentation: http://www.digitalmars.com/d/1.0/index.html
Usage:
  dmd files.d ... { -switch }
  files.d        D source files
  @cmdfile       read arguments from cmdfile
  -c             do not link
  -cov           do code coverage analysis
  -D             generate documentation
  -Dddocdir      write documentation file to docdir directory
  -Dffilename    write documentation file to filename
  -d             allow deprecated features
  -debug         compile in debug code
  -debug=level   compile in debug code <= level
  -debug=ident   compile in debug code identified by ident
  -debuglib=name    set symbolic debug library to name
  -defaultlib=name  set default library to name
  -g             add symbolic debug info
  -gc            add symbolic debug info, pretend to be C
  -H             generate 'header' file
  -Hdhdrdir      write 'header' file to hdrdir directory
  -Hffilename    write 'header' file to filename
  --help         print help
  -Ipath         where to look for imports
  -ignore        ignore unsupported pragmas
  -inline        do function inlining
  -Jpath         where to look for string imports
  -Llinkerflag   pass linkerflag to link
  -lib           generate library rather than object files
  -man           open web browser on manual page
  -nofloat       do not emit reference to floating point
  -O             optimize
  -o-            do not write object file
  -odobjdir      write object & library files to directory objdir
  -offilename name output file to filename
  -op            do not strip paths from source file
  -profile profile runtime performance of generated code
  -quiet         suppress unnecessary messages
  -release compile release version
  -run srcfile args...   run resulting program, passing args
  -unittest      compile in unit tests
  -v             verbose
  -v1            D language version 1
  -version=level compile in version code >= level
  -version=ident compile in version code identified by ident
  -w             enable warnings
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

So, it looks like some config settings are missing. Could anyone help me?

best regards
mp

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Problem with configuration C::B with DMD and Tango.
« Reply #1 on: August 18, 2009, 11:10:18 pm »
The first step to try to find a solution is to turn full commandline logging on, to see what is reall sent to the compiler:
change "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings(rightmost tab)" "Compiler logging" to "Full commandline"

Offline mp

  • Single posting newcomer
  • *
  • Posts: 7
Re: Problem with configuration C::B with DMD and Tango.
« Reply #2 on: August 18, 2009, 11:46:48 pm »
The first step to try to find a solution is to turn full commandline logging on, to see what is reall sent to the compiler:
change "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings(rightmost tab)" "Compiler logging" to "Full commandline"

Thx, that was helpful. Now I'm know that it's needed to change in Settings->Compiler and debugger... tab Other settings->Advanced Options->tab Commands to $compiler $file $options $includes -c  -o $object instead of $compiler $options $includes -c $file -o $object, but now i've got error:

Code
object.d: module object cannot read file 'object.d'

Any ideas?

//EDIT: Ok, problem is solved. DMD should be in path without any spaces like "Program Files", etc. And one thing, options "-lgtango -lgphobos" are not needed.
« Last Edit: August 19, 2009, 12:08:55 am by mp »