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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:27:47+00:00 2026-05-27T07:27:47+00:00

While running my make file which is as follows, ../bin/output : ../lib/libfun.a ../obj/main.o gcc

  • 0

While running my make file which is as follows,

../bin/output : ../lib/libfun.a ../obj/main.o
                gcc ../main.o -L ../lib/ -lfun -o $@
../lib/libfun.a : ../obj/file_write.o ../obj/error.o
                ar -rc $@ $^
../obj/main.o   : ../src/main.c
                gcc -c $^ -o $@ -I ../include
../obj/file_write.o     : ../src/file_write.c
                gcc -c $^ -o $@ -I ../include
../obj/error.o  : ../src/error.c
                gcc -c $^ -o $@ -I ../include

I am getting error like

make: Warning: File `makefile' has modification time 2.2e+03 s in the future
ar -rc ../lib/libfun.a ../obj/file_write.o ../obj/error.o
ar: ../lib/libfun.a: No such file or directory
make: *** [../lib/libfun.a] Error 1

and sometimes

“* missing separator (did you mean TAB instead of 8 spaces?). Stop”

Why is this happening? I gave correct Target,Pre-Requests and Command values whichever needed. Whats wrong in this?

  • 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-27T07:27:47+00:00Added an answer on May 27, 2026 at 7:27 am

    For the first error, make sure the ../lib directory exists before trying to create a library in it. ar will return that error if the path doesn’t exist.

    For the second make syntax is strict: the commands after a target must be indented with a tab, not spaces.

    target: deps
            command
    #  ^ this here needs to be a tab character, not spaces
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While running a batch file in Windows XP I have found randomly occurring error
While running my application (which does a good bit of custom drawing) I get
How to hide cmd window while running a batch file? I use the following
I am getting the following error while running my MVC application, which uses the
When I make a change to a javascript or jsp file while my app
While running through the cheat sheet create a navigation rule for the Eclipse JavaServer
I get numerous method redefined warnings while running an application under Merb 0.9.3. Of
I'm getting an Undefined Instruction error while running an embedded system, no coprocessor, no
I wish to automatically enter a password while running an install script. I have
I am getting he following Exception while running my Quartz Schdular program. Below is

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.