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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:27:53+00:00 2026-06-13T10:27:53+00:00

When I modify hello.c included with g-wan to include a simple header with #define

  • 0

When I modify hello.c included with g-wan to include a simple header with #define TEST_VALUE 50 and output it in the hello.c file I noticed that a change to the header file did not trigger an update for g-wan to update the servlet. So if I change the header file test value to 51, no change is noted in the output. If I make any change to the hello.c file, it causes g-wan to recompile the servlet including the dependencies and the change in the header is compiled. Is this the expected behavior? I’m curious because that would mean during development with many dependencies, you would need to update just one character in the main servlet file to trigger a re-compile if all the changes being made are in dependency files.

This behavior was noted by Tim Bolton so I decided to also test it, and pose it as a separate question from a previous thread.

Thanks for any input.

G-WAN 3.3.28 64-bit (Mar 28 2012 11:24:16) – the latest version I saw in the download as of Oct 19th, 2012
… running on Ubuntu Server 10.04.4 LTS – 64 bit

  • 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-13T10:27:55+00:00Added an answer on June 13, 2026 at 10:27 am

    Is this the expected behavior?

    Yes.

    that would mean during development with many dependencies, you would need to update just one character in the main servlet file to trigger a re-compile if all the changes being made are in dependency files.

    No. There’s a better way used by programmers for (at least) the past 30 years.

    The touch Unix command is updating the time stamp of a file without changing its contents.

    Just touch the hello.c servlet when you change its headers.

    Also note that C headers are supposed to be more ‘stable’ than C files. What is stored in headers is there to be shared by many C files so you should consider to use C files for defines that change often.

    At least you know how to proceed in both cases now.

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

Sidebar

Related Questions

Here's a simple hello world C program that takes 10 seconds to complete: #include<stdio.h>
I'm working from a simple hello world tutorial and then modify it into the
Hello I am trying to modify one of the default files that comes with
Hello I have a table that may have many rows. I want to modify
Here's a simple example of a program that concatenates two strings. #include <stdio.h> void
Hello i was trying to modify an object form the values of another object
Hello I want to know if is possible to modify a cube dimension in
I'd like to modify the action attribute of the element to include whatever text
I have a program that wants to check if a file has been modified.
Hello to all that read I am self learning C++ from a text book.

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.