ianlancetaylor / libbacktrace

A C library that may be linked into a C/C++ program to produce symbolic backtraces
Other
971 stars 228 forks source link

Compilation error on MSVC 19.40 #131

Closed toge closed 3 months ago

toge commented 3 months ago

I met compilation error on latest libbacktrace.

src\pecoff.c(86): error C2059: syntax error: '('
src\pecoff.c(89): error C2059: syntax error: '('

I think it is caused by this commit.

It works fine if deleting CALLBACK and NTAPI.

It also worked fine with source code from about 2021. Is there any configuration needed to compile with MSVC?

ianlancetaylor commented 3 months ago

Is this on x86 or ARM?

toge commented 3 months ago

@ianlancetaylor Sorry for lack of information. It is on x86_&4.

ianlancetaylor commented 3 months ago

Should be fixed now, I think. Thanks.