Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7887795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:40:26+00:00 2026-06-03T05:40:26+00:00

Seems that CPPPATH does not work env = Environment() target = ‘app’ sources =

  • 0

Seems that CPPPATH does not work

env = Environment()
target = 'app'
sources = ['app.d']
libs = ['phobos2', 'pthread', 'm', 'rt']
includes = ['/home/supertool/devel/d/vibe.d/source/vibe']

env.Program(target = target,
        source = sources,
        LIBS = libs,
        CPPPATH = includes);

and when I run scons, it generates compile command:

dmd -I. -c -ofapp.o app.d

includes is not added into -I part

So how can I config this? Is there a INCLUDEPATH ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:40:27+00:00Added an answer on June 3, 2026 at 5:40 am

    Instead of using the CPPPATH construction variable, for which SCons prepends the -I, you could try manually building the paths, like this:

    includePaths = ['-Ipath1', '-Ipath2']
    ....
    env.Program(target = target,
                source = sources,
                LIBS = libs,
                CCFLAGS = includePaths);
    

    But this may lead to the same problem, that CCFLAGS wont be used for D compilation. I havent seen any D-specific construction variables other than DSUFFIXES

    EDIT: Looks like DFLAGS and DPATH are not documented

    I was playing around with this on my machine and see that CCFLAGS wont work for D, but DFLAGS and DPATH do, and they’re not documented 🙁 DPATH will have "I" prepended at compile time, so it is analogous to CPPPATH

    There has been talk on the SCons user mail list about beefing up the SCons D support.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Seems that a site I made for fun does not like to work in
It seems that jQuery :contains selector does not work on IE8. Please see following
It seems that sending stl complex data via the skeleton/content mechanism does not work.
It seems that this handy Quick Access window does not show the items available
Seems that there are not much work done on Haskell for web. People uses
It seems that Haskell does not the type of symbol as that in Racket?
Seems that requirements on safety do not seem to like systems that use AI
Seems that when i create an object, the time is not correct. You can
Seems that it may not be possible, but hey I might as well ask,
It seems that knockout is not mapping the properties of objects in an array

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.