Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 4 and Version 5 of FAQ

Show
Ignore:
Author:
Whyte (IP: 79.112.53.179)
Timestamp:
02/15/10 23:56:42 (8 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v4 v5  
    1010 
    1111  * Your project has a standard library in it's include path, like phobos or Tango. Actually, the minimum requirement is that you have an object.d or an object.di file in your include path. Both of these libraries have them. 
    12   * You add include paths in the correct way. That means pointing the include path to the correct directory. For example you include a folder named "foo" that contains a lot of D files. One of those D files is called "bar.d". You open "bar.d" and notice it's module declaration: "module foo.bar;". That means the module is supposed to be inside a "foo" directory. So you should really be including the "foo" directory, but instead you should be including the parent directory of "foo". 
     12  * You add include paths in the correct way. That means pointing the include path to the correct directory. For example you include a folder named "foo" that contains a lot of D files. One of those D files is called "bar.d". You open "bar.d" and notice it's module declaration: "module foo.bar;". That means the module is supposed to be inside a "foo" directory. So you shouldn't really be including the "foo" directory, but instead you should be including the parent directory of "foo". 
    1313 
    1414If none of these work, you can tell what's the real problem by turning semantic errors on by going to "Windows -> Preferences -> D -> Compiler". It should ask you to re-analyze every project. Then you should see red squiggles indicating the error.