Jump to content

precompiled headers question


aiaf
 Share

Recommended Posts

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 ?

 

 

I made this with Leadwerks/UAK:

Structura Stacky Desktop Edition

Website:

Binary Station

Link to comment
Share on other sites

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”.

  • Thanks 1

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...