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 7580467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:55:29+00:00 2026-05-30T17:55:29+00:00

I wish to include this in my cpp file: #include <boost/lambda/lambda.hpp> For my Makefile

  • 0

I wish to include this in my cpp file:

#include <boost/lambda/lambda.hpp>

For my Makefile Project I have selected Properties>Path and Symbols>GNU C++>Include Directories>
and added:

/opt/local/include

But I get this error when I try to build:

**** Build of configuration Default for project Main ****

make all 
g++ -O2 -g -Wall  -fmessage-length=0   -c -o Main.o Main.cpp
Main.cpp:107:35: error: boost/lambda/lambda.hpp: No such file or directory

What might the problem be?

The file /opt/local/include/boost/lambda/lambda.hpp exists.

This is my makefile:

CXXFLAGS =  -O2 -g -Wall  -fmessage-length=0

SRCS =      Main.cpp 
OBJS =      Main.o 
LIBS =      -framework CoreMIDI -framework CoreAudio -framework CoreFoundation -framework CoreServices

TARGET =    Main 

$(TARGET):  $(OBJS)
    $(CXX) -Wall -D__MACOSX_CORE__ -o $(TARGET) $(SRCS) $(LIBS)

all:    $(TARGET)

clean:
    rm -f $(OBJS) $(TARGET)
  • 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-05-30T17:55:31+00:00Added an answer on May 30, 2026 at 5:55 pm

    Should work.

    CXXFLAGS =  -O2 -g -Wall  -fmessage-length=0
    
    SRCS =      Main.cpp 
    OBJS =      Main.o 
    LIBS =      -framework CoreMIDI -framework CoreAudio -framework CoreFoundation -    framework CoreServices
    INCL_DIR = /opt/local/include
    TARGET =    Main 
    
    $(TARGET):  $(OBJS)
    $(CXX) -Wall -D__MACOSX_CORE__ -o $(TARGET) $(SRCS) $(LIBS) -I $(INCL_DIR)
    
    all:    $(TARGET)
    
    clean:
    rm -f $(OBJS) $(TARGET)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My confuse is like this code: #include stdafx.h #include <boost/bind.hpp> using namespace std; void
I wish to include a file path in an SQL Server query which is
I have a dotnet web solution. I wish to include the silverlight technologies into
I have a localized iOS application in which I wish to include some localized
I wish to include the dll output by a project built from an external
I have several custom widget in my current project. I wish to apply stylesheets
I have the following bits in my makefile : GLFW_FLAG := -m32 -O2 -Iglfw/include
I have a PHP script like this: <?php include 'authorization_script.php'; foreach ($_POST as $key
I have something like this: #include <iostream> namespace N { typedef std::pair<int, double> MyPair;
I have a class that includes a std::list and wish to provide public begin()

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.