Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unknown name error, implicit function declarations building on Windows 10 #237

Open
jamiltron opened this issue Dec 29, 2020 · 0 comments
Open

Comments

@jamiltron
Copy link

jamiltron commented Dec 29, 2020

With the latest msi-installed meson/ninja, I get several compiler errors when running ninja, most seem to be unknown types or implicit function declarations. Here's the first:

[7/25] Compiling C object src/libepoxy-0.dll.p/dispatch_wgl.c.obj
FAILED: src/libepoxy-0.dll.p/dispatch_wgl.c.obj
"cc" "-Isrc\libepoxy-0.dll.p" "-Isrc" "-I..\src" "-Iinclude" "-I..\include" "-Iinclude\epoxy" "-fdiagnostics-color=always" "-pipe" "-D_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-std=gnu99" "-O2" "-g" "-Wpointer-arith" "-Wmissing-declarations" "-Wformat=2" "-Wstrict-prototypes" "-Wmissing-prototypes" "-Wnested-externs" "-Wbad-function-cast" "-Wold-style-definition" "-Wdeclaration-after-statement" "-Wunused" "-Wuninitialized" "-Wshadow" "-Wmissing-noreturn" "-Wmissing-format-attribute" "-Wredundant-decls" "-Wlogical-op" "-Werror=implicit" "-Werror=nonnull" "-Werror=init-self" "-Werror=main" "-Werror=missing-braces" "-Werror=sequence-point" "-Werror=return-type" "-Werror=trigraphs" "-Werror=array-bounds" "-Werror=write-strings" "-Werror=address" "-Werror=int-to-pointer-cast" "-Werror=pointer-to-int-cast" "-fno-strict-aliasing" "-Wno-int-conversion" "-fvisibility=hidden" -MD -MQ src/libepoxy-0.dll.p/dispatch_wgl.c.obj -MF "src\libepoxy-0.dll.p\dispatch_wgl.c.obj.d" -o src/libepoxy-0.dll.p/dispatch_wgl.c.obj "-c" ../src/dispatch_wgl.c
../src/dispatch_wgl.c: In function 'epoxy_conservative_has_wgl_extension':
../src/dispatch_wgl.c:41:5: error: unknown type name 'HDC'
   41 |     HDC hdc = wglGetCurrentDC();
      |     ^~~

It looks like ninja is using my msys gcc, but I have also tried running this through the visual studio developer console with similar issues.

@jamiltron jamiltron changed the title Error building on Windows 10 Unknown name error, implicit function declarations building on Windows 10 Dec 29, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant