Closed git45016683 closed 1 year ago
I'm afraid you have to give me something more to work with. I don't read Chinese, so I'm relying on google-translate to tell me the meaning of the error messages you quote, and the first says "Missing type specifier - int assumed. Note: C++ does not support default int", which makes sense, except that Trompeloeil always uses explicit type specifiers so that should not happen.
I tried as best I could to convert your case to only Trompeloeil and not doctest, in compiler explorer, and then I get this, which compiles and works fine.
https://godbolt.org/z/6sfex7qo8
Tell me in what important way this differs from your case, and also, please, tell me what version of Trompeloeil you're using.
Thanks for your response. I found the different between my demo with your‘s https://godbolt.org/z/6sfex7qo8
then i change the include form
#include "doctest/trompeloeil.hpp"
to
#include "trompeloeil.hpp"
it works fine. thanks.
i wrote demo code like below just try trompeloeil with VS2022, but it can not work。 code:
please help me fix this