Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Getting DevStudio dependencies correct

Getting DevStudio dependencies correct

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestiondiscussion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jonathan Gilligan
    wrote on last edited by
    #1

    I am working on a project in CWeb, where I work on a source file foo.w, which is then compiled by a custom build step to produce foo.c, foo.h, and foo.tex. I include foo.c, foo.h, and foo.tex in my project, and use the basic C compiler settings to control the compilation of the .c files and another custom build rule to control the compilation of the documentation foo.tex to foo.pdf. Here is where I get into trouble. A makefile would have no problem understanding that foo.tex depends on foo.w and that foo.pdf depends on foo.tex, so if foo.w has been changed, a build must FIRST compile foo.w to foo.tex and THEN compile foo.tex to foo.pdf. I can't seem to get DevStudio to understand this, so when I edit foo.w and hit build, it first compiles foo.tex to foo.pdf and then compiles foo.w to foo.tex!. Any thoughts? This is analogous to things people must also have gone through working with Bison and Flex in DevStudio. Bomb our homes and threaten our children, and, as difficult as it is, we will still love you --- Martin Luther King, Jr.

    J 1 Reply Last reply
    0
    • J Jonathan Gilligan

      I am working on a project in CWeb, where I work on a source file foo.w, which is then compiled by a custom build step to produce foo.c, foo.h, and foo.tex. I include foo.c, foo.h, and foo.tex in my project, and use the basic C compiler settings to control the compilation of the .c files and another custom build rule to control the compilation of the documentation foo.tex to foo.pdf. Here is where I get into trouble. A makefile would have no problem understanding that foo.tex depends on foo.w and that foo.pdf depends on foo.tex, so if foo.w has been changed, a build must FIRST compile foo.w to foo.tex and THEN compile foo.tex to foo.pdf. I can't seem to get DevStudio to understand this, so when I edit foo.w and hit build, it first compiles foo.tex to foo.pdf and then compiles foo.w to foo.tex!. Any thoughts? This is analogous to things people must also have gone through working with Bison and Flex in DevStudio. Bomb our homes and threaten our children, and, as difficult as it is, we will still love you --- Martin Luther King, Jr.

      J Offline
      J Offline
      J Patel
      wrote on last edited by
      #2

      Hi, Why not create 2 different projects and just have foo.w in one and the other files in the other project. You can then set project dependencies to have the second project (the one with .c,.h and .tex) files to be dependent on the first one. So, when you hit build it will compile the first project (seeing your .w has changed) and then compile the second one (with the newly generated files). I've never worked with Bison and Flex but this may work.. HTH Jignesh

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups