These are chat archives for fmtlib/fmt

17th
Oct 2017
Michael Schiller
@M-Schiller
Oct 17 2017 11:25
Has anyone already successfully built fmt using VS2015?
Lectem
@Lectem
Oct 17 2017 11:32
Yes
Michael Schiller
@M-Schiller
Oct 17 2017 11:35
I am getting > 500 errors during build; most of them being "... identifier not found" and "... is not a member of `global namespace". Am I missing something?
Lectem
@Lectem
Oct 17 2017 11:48
How did you setup your project? What is the first error?
Michael Schiller
@M-Schiller
Oct 17 2017 11:50
I used the Cmake GUI 3.8.2 and selected VS14 2015 Win64 as the generator. The first error is
Error C3306 '<unnamed-tag>': unnamed class template is not allowed fmt C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ymath.h 41
Lectem
@Lectem
Oct 17 2017 13:07
Mmhhh, is fmt the first thing you include? Sounds like some macro might have replaced it
Actually, it might be because your header tries to use something called fmt
Michael Schiller
@M-Schiller
Oct 17 2017 13:09
This happens when I try to build fmt. Do I not have to build it?
Lectem
@Lectem
Oct 17 2017 13:09
Oh thought it was in your project
And no it is not mandatory
You can use FMT_HEADER_ONLY
But it's still weird that you can't build it, I'll try in a bit
Lectem
@Lectem
Oct 17 2017 13:19
builds just fine for me
can you paste the log somewhere ?
Michael Schiller
@M-Schiller
Oct 17 2017 13:21
Michael Schiller
@M-Schiller
Oct 17 2017 13:51
printf() will not be able to format my defined types, right?
Like this fmt::printf(" %s - %05d", MyVariant("test"), MyVariant(5));
did you try the master branch ? It's as if you were missing some types
did you change any cmake variable ?
Michael Schiller
@M-Schiller
Oct 17 2017 14:12
I used the 4.0.0 release and did not change any variable. Now, I deleted my build folder and regenerated the project and it worked.
Thank you for your help.
Michael Schiller
@M-Schiller
Oct 17 2017 14:27
Will the format_arg also be called for printf() ?
Lectem
@Lectem
Oct 17 2017 14:53
I think it should, though I didn't test