'#include "stdafx.h" to your source?

Hi Root Support,
I have started learning how to use Root dictionary generation using the command line for my C++ program. I have made a simple program run with buttons that trigger actions (opening histogram), but when I open my larger program and input dictionary generation with the command line. I get this error:

Error C1010 unexpected end of file while looking for precompiled header. Did you forget to add ‘#include “stdafx.h”’ to your source?

This error is pointing to my LeptoMainFrameDict.cpp file. But this file shouldnt be changed because it is automatically generated with the command line.

Thanks,
MT

Hi,

I do not understand how exactly you configured your setup. Can you share a reproducer? (source files, dictionary creation commands, compilation commands, os and root version)

Cheers,
D

Hi,
I have managed to fix the problem.

By simply going to the properties of the Dict.cpp file and changing precompiled header to Not Using Precompiled Headers.

However, I still have another bug that I will attempt on first. Thanks anyways.

MT

Hi,

good news.
Let us know with another post if something goes wrong. I mark this post as solved.

Cheers,
D