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

  • Home
  • SEARCH
  • 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 7653989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:09:57+00:00 2026-05-31T12:09:57+00:00

PROJ = . SRC_ROOT = . FLAGS = -g -Wall -Wextra INC = -I$(PROJ)

  • 0
PROJ     =      .
SRC_ROOT =      .
FLAGS    =      -g -Wall -Wextra

INC      =      -I$(PROJ)                               \
                -I$(SRC_ROOT)/Exception                 \
                -I$(SRC_ROOT)/MapFile

DEPS     =      $(SRC_ROOT)/Exception/Exception.h       \
                $(SRC_ROOT)/Exception/Exception.cpp     \
                $(SRC_ROOT)/MapFile/MapFile.h           \
                $(SRC_ROOT)/MapFile/MapFile.cpp

OBJS     =      $(SRC_ROOT)/MapFile/MapFIle.o           \
                $(SRC_ROOT)/Exception/Exception.o

all: main $(OBJS)

%.o : %.cpp %.h
        g++ -c $(FLAGS) $(INC) $< -o $@

main: $(DEPS) $(OBJS) main.cpp
        g++ -o main $(FLAGS) $(INC) main.cpp $(OBJS)

$(SRC_ROOT)/MapFile/MapFIle.o : $(SRC_ROOT)/MapFile/MapFIle.cpp $(SRC_ROOT)/MapFile/MapFIle.h
        g++ -c $(FLAGS) $(INC) $< -o $@


clean:
        rm -f *~
        rm -f $(OBJS)
        rm -f main
        rm -f -R *.dSYM

When I comment out the explicit rule for MapFile.o I get a “no rule to build error for it” yet the implicit rule clearly works for Exception.o. Any idea what could be the issue? Hope it is not something simple that I am missing having been staring at it for a few. Thanks in advance.

Using GNU Make 3.81

  • 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-31T12:09:59+00:00Added an answer on May 31, 2026 at 12:09 pm

    The filenames are case-sensitive; in some places you have MapFile.cpp and MapFile.h, but elsewhere you have MapFIle.o (with a capital I) and MapFIle.cpp and so on.

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

Sidebar

Related Questions

I have three projects - proj-a, proj-b, and main such that main depends on
In svn Repository having a folder exProject.(which contains all the proj files) . In
Consider: public proj 3 { static string [][]Item; public static void main(String [] args){
here is the structure of my project. proj ---src ----main ----java ----Main.java ----resources ----res.txt
I am doing an attendance take up proj. I have all my sudent names
I have a class in my asp.net proj, I would like to get access
Our continuous integration system currently runs a perl script to parse our sln/proj files
Is there a way to programatically determine the current workspace of the open sln/proj
Today I came across a problem where someone had accidentally committed a proj.user file
MSBuild 3.5 I have the following project structure: trunk/MainSolution.sln trunk/Build/MyBuild.Proj trunk/Library/... trunk/etc... So far,

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.