Help with derelict and codeblocks
Mike Parker
aldacron71 at yahoo.com
Thu May 11 03:32:38 PDT 2006
Jarno Tuomainen wrote:
> Mike Parker wrote:
>> Ah, of course. Missing symbols means the libraries aren't on the
>> linker path. Make sure to add them in the project properties.
>
> Had time to play it bit more today and had little progress.
>
> Doesnt rant about symbols anymore, but now i get error:
>
> -------------- Build: Release in sdl ---------------
> Compiling: main.d
> Error: unrecognized switch '-O2'
> Process terminated with status 1 (0 minutes, 0 seconds)
> 0 errors, 0 warnings
By default, Code::Blocks sets the compiler for D projects to be "GNU GDC
Compiler" at project creation. When creating projects, make sure you
select "Digital Mars D Compiler" if you are using DMD rather than GDC.
If you have created a project with the wrong compiler you can still
switch the configuration by going, in the menu, to Project->Build
Options. The dialog that pops up will have a tree on the left:
Project Name
|
|-- Debug
|-- Release
Select "Project Name". On the right side is a drop down list named
"Selected Compiler". If it is not set to "Digital Mars D Compiler", find
it in the list and select it. Unfortunately, changing the compiler
selection in the root configuration does not change it in the Debug and
Release configurations. You will need to select each node and do the
same thing.
More information about the Digitalmars-d
mailing list