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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:21:13+00:00 2026-05-12T08:21:13+00:00

I will you show my misinterpretation. it says there must be del *.obj in

  • 0

I will you show my misinterpretation.

  • it says there must be del *.obj in the bat file
  • it says there must be an obj file
  • it says the obj file must actually be a cpp file

Please, show me your interpretation.

http://computerprogramming.suite101.com/article.cfm/the_borland_win32_compiler_guide

Thanks!

  • 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-12T08:21:13+00:00Added an answer on May 12, 2026 at 8:21 am

    Your question’s a little confusing but I’ll try it out.

    Typically, you have a group of C++ source files, for example, x.cpp and y.cpp.

    The compile phase will take these and create, for example, x.obj and y.obj.

    The link phase will take these and create a single executable, for example, xy.exe.

    1/ The reason you would have a "del *.obj" in the batch file is to delete all object files so that the make can recreate them. Make (if you’re using intelligent rules in the makefile) will only rebuild things that are needed (an example being that the cpp file will not be compiled to an obj file if the current obj file has a later date than it). Deleting the object file will force a new one to be created.

    2/ There doesn’t have to be an object file, these are typically created from the c or cpp source files. In addition, you can combine compile and link phases so that no object files are created (or are destroyed pretty quickly once they’re finished with).

    3/ The object file doesn’t have to be a cpp file, but it’s usually built from a cpp file with the same base name.

    Update based on comment:

    If you want to only specify your application name once, your comments have it like this (I think, the format’s not that great as you pointed out):

      PATH=C:\BORLAND\BCC55\BIN;%PATH%
      APP=MyApp
      del *.exe
      del *.obj
      del *.res
      make -f$(APP).mak >err.txt
      if exist $(APP).exe goto RUN_EXE
    :EDIT_ERR
      call notepad.exe err.txt
    :RUN_EXE
      call $(APP).exe
      if exist err.txt delete err.txt :END
    

    I think what you need is:

      PATH=C:\BORLAND\BCC55\BIN;%PATH%
      set APP=MyApp
      del *.exe
      del *.obj
      del *.res
      make -f%APP%.mak >err.txt
      if exist %APP%.exe goto :RUN_EXE
    :EDIT_ERR
      call notepad.exe err.txt
      goto :END
    :RUN_EXE
      call %APP%.exe
      if exist err.txt delete err.txt
    :END
    

    What you have with your "$(APP)" substitutions is something that will work inside a makefile, but not inside a cmd file. There you need to use the %APP% variant to get what you want.

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

Sidebar

Related Questions

I will show the problem with a example. There is some text in the
Is there a tool that will show me what applications are writing to the
Basically I want an activity indicator that will show at a glance that there
I am creating a script that will show your computer information in Non-Geekeese. This
Is there an editor or IDE which will show HTML code with some visual
from this code will show in original color how can i change it to
I'm looking for something that will show me the size of each folder within
Sampling with Activity Monitor/Instruments/Shark will show stack traces full of C functions for the
I can use Firebug and it will show lots of info about files that
I´m working on a project that basically will show some data collected from hardware

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.