aiaf Posted July 10, 2021 Share Posted July 10, 2021 I created a fresh UAK project on windows. And added some util i always use Configuration.h Configuration.cpp: in main: #include "UltraEngine.h" #include "Configuration.h" using namespace UltraEngine; int main(int argc, const char* argv[]) Configuration.h: #pragma once #include <string> #include <iostream> #include <fstream> #include "Libraries/nlohmann_json/single_include/nlohmann/json.hpp" using json = nlohmann::json; class Configuration I get this error, no matter how i include it, and can be seen the UltraEngine is included first in the main. Severity Code Description Project File Line Suppression State Error C1010 unexpected end of file while looking for precompiled header. Did you forget to add '#include "UltraEngine.h"' to your source? Mega C:\Users\alex\Documents\Ultra Engine\Projects\Mega\Source\Configuration.cpp 50 I read about precompiled headers and what they are used for, i even tried to deactivate them but doesnt work. https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1010?f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk(C1010)%26rd%3Dtrue&view=msvc-160 For sure im missing something ... anyone can help ? Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
Josh Posted July 10, 2021 Share Posted July 10, 2021 There is a setting to use precompiled headers or not, on a per-file basis. If the file uses precompiled headers then the first line must include the precompiled header “UltraEngine.h”. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.