smadaminov / ovs-dpdk-meson-issues

VMware Summer 2021
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

GNU compiler to one that supports __declspec #55

Open williamtu opened 2 years ago

williamtu commented 2 years ago
In file included from ../ovsdb/ovsdb-server.c:63:
In file included from ..\include\openvswitch/vlog.h:35:
In file included from ..\include\openvswitch/thread.h:20:
In file included from C:\PTHREADS-BUILT\include\pthread.h:72:
C:\PTHREADS-BUILT\include\_ptw32.h:55:4: warning: "Please upgrade your GNU compiler to one that supports __declsp
ec." [-W#warnings]
#  warning "Please upgrade your GNU compiler to one that supports __declspec."
   ^
5 warnings generated.
williamtu commented 2 years ago

I checked clang

#if __has_declspec_attribute(dllexport)
#define DLLEXPORT __declspec(dllexport)
#else
# error "no dllexport"
#endif
smadaminov commented 2 years ago

So the clang worked for you, right? Can you please say what version of gcc do you have? I will update then the meson.build file to require at least some newer version of gcc (one that supports __declspec).