Coder Social home page Coder Social logo

not compatible with PCH about blink HOT 6 CLOSED

crosire avatar crosire commented on May 16, 2024
not compatible with PCH

from blink.

Comments (6)

crosire avatar crosire commented on May 16, 2024

PCH is a bit of an issue. Information about the compiled PCH is stored in the application PDB, but it can't be specified on the command-line or else the compiler will attempt to modify it, which won't work while the application is running. blink could copy it to a temporary location and specify that path to workaround this. But what then what happens if the user decides to modify the file generating the PCH? All future compiles would now reference the old PCH data from the application PDB, which no longer makes sense.

from blink.

Trass3r avatar Trass3r commented on May 16, 2024

Yeah quite tricky, you could also try to disable PCH but most code out there probably does not compile both ways.

By the way what I tested was the Win32 (GUI) sample project VS generates. That uses PCH by default.

from blink.

ajweeks avatar ajweeks commented on May 16, 2024

@crosire It would be great if this limitation was advertised on the readme. Too bad it won't work, I was excited to try this out on my project!

from blink.

crosire avatar crosire commented on May 16, 2024

blink should still work, it will just take longer to compile a change, since it cannot make use of PCH data.

from blink.

ajweeks avatar ajweeks commented on May 16, 2024

It looks like it gets setup fine, but then once I make a code change (in this case to main.cpp) I get the following output:

Detected modification to: C:\Code\Flex\Flex\FlexEngine\src\main.cpp
main.cpp
C:\Code\Flex\Flex\FlexEngine\src\main.cpp(1): fatal error C1083: Cannot open include file: 'stdafx.hpp': No such file or directory
Finished compiling "C:\Code\Flex\Flex\FlexEngine\src\main.temp.obj" with code 2.

I'm compiling with /ZI, are there any other flags which are necessary? (Edit and Continue for example?)

from blink.

crosire avatar crosire commented on May 16, 2024

See #32 (comment)

from blink.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.