User forums > Help

DMD 2.x, Linux, C::B 8.02

<< < (2/2)

Brendan:
Saw your message just now. I had quickly removed D 2.xxx and installed 1.xxx. It works pretty nice, as far as I can tell. I don't know precisely, but I guess 2.xxx is too unstable compared to 1.xxx, or D1 code in some parts doesn't work with D2. I might have made a mistake when installing D2. In any case, D1 works, and thanks for your help :)


FWIW, when testing and getting '_D3std6format7__arrayZ', it looked totally unfamiliar to me. And that whole list of errors is what I got with just some very simple code of a few lines.


EDIT: I think I cheered too soon  :x I now noticed that upon a new project, I'm getting errors, but when I tested it before on an existing project it worked. On the existing project I switched the project compiler settings from GDC to DMD. Having both installed shouldn't be a problem, right?

stahta01:

--- Quote from: Brendan on September 05, 2008, 04:21:51 pm ---EDIT: I think I cheered too soon  :x I now noticed that upon a new project, I'm getting errors, but when I tested it before on an existing project it worked. On the existing project I switched the project compiler settings from GDC to DMD. Having both installed shouldn't be a problem, right?

--- End quote ---

Both installed should cause no problem; just make sure the configurations is correct.

The Toolchain executables and additional paths are very important.

Note: There has been time that I thought C::B did things wrong when I did not have the compiler used in a project also the compiler that was the default Compiler. But, I was never able to duplicate the problem consistently.

In other words try, "Settings" -> "Compiler and Debugger" make the default compiler the one you are using and see if problem goes away.

Tim S

Brendan:
Okay, when I try to 'Build & Run' my existing project with F9, the thing just seems okay and the program runs. But when I just do build I get

--- Code: ---
-------------- Build: Debug ---------------

dmd -Wall     -I/usr/include/d/4.2.3 -I/usr/local/lib/phobos -I/usr/lib/phobos  -c human.d -ofobj/Debug/human.o
Error: unrecognized switch '-Wall'
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

--- End code ---
Arrrrrrgh!

And you know what? On the command line when I test a simple 'test.d' with 'dmd test' it says it cannot find 'object.d', and when I look for it it's nowhere to be seen. I mean, I followed those install instructions on the Digital Mars site EXACTLY, but.... arrrrgh. I'm going insane!

edit: yes, I also set DMD compiler to default, but it doesn't seem to matter. Grrrrr, I'm going to break something soon.

Brendan:
And I just tested a new project and it says

--- Code: ---
-------------- Build: Debug in fuck!!! ---------------

Compiling: hello.d
object.d: module object cannot read file 'object.d'
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

--- End code ---
so at least that gives me the same kind of message as in the command line. Maybe if I hit my head against the table long enough it'll work.

Navigation

[0] Message Index

[*] Previous page

Go to full version