Problems updating lime (dev)

Before latest openAL changes I could run lime rebuild windows just fine. I pulled latest submodules, and now I can’t do it anymore:

Error: While running :cl.exe -Ilib/openal/Alc -Ilib/openal/include/ -Ilib/openal/OpenAL32/include/ -DAL_ALEXT_PROTOTYPES -D_LARGEFILE_SOURCE -D_LARGE_FILES -DWIN32 -D_WINDOWS -D_WIN32 -D_WIN32_WINNT=0x0502 -Drestrict= -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE /wd4098 -Dstrcasecmp=_stricmp -Dstrncasecmp=_strnicmp -nologo /WX- /fp:precise -DHX_WINDOWS -GR -O2 -Oy- -c -EHs -GS- -arch:SSE -ID:/Programs/Haxe/haxe/lib/hxcpp/3,3,49/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=0 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -wd4996 -DMisiurWasHere -MT ./lib/openal/OpenAL32/alFilter.c -FoD:/Dev/haxe/lime/project/obj/msvc17xp/d71a8e1e_alFilter.obj
alFilter.c
lib/openal/OpenAL32/include/alMain.h(16) : fatal error C1083: Cannot open include file: 'fenv.h': No such file or directory

I checked windows config file for native-toolkit/openlAL and it seems fenv support is enabled. I commented it, I got

Error: While running :cl.exe -Ilib/openal/Alc -Ilib/openal/include/ -Ilib/openal/OpenAL32/include/ -DAL_ALEXT_PROTOTYPES -D_LARGEFILE_SOURCE -D_LARGE_FILES -DWIN32 -D_WINDOWS -D_WIN32 -D_WIN32_WINNT=0x0502 -Drestrict= -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE /wd4098 -Dstrcasecmp=_stricmp -Dstrncasecmp=_strnicmp -nologo /WX- /fp:precise -DHX_WINDOWS -GR -O2 -Oy- -c -EHs -GS- -arch:SSE -ID:/Programs/Haxe/haxe/lib/hxcpp/3,3,49/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=0 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -wd4996 -DMisiurWasHere -MT ./lib/openal/OpenAL32/alExtension.c -FoD:/Dev/haxe/lime/project/obj/msvc17xp/d71a8e1e_alExtension.obj
alExtension.c
d:\dev\haxe\lime\project\lib\openal\include\bool.h(5) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory

Google says VS C compiler doesn’t support C99, so there’s no stdbool.h. Ok, I commented out HAVE_STDBOOL_H.

Now I’ve got tons of errors:

lib/openal/include/atomic.h(194) : error C2054: expected '(' to follow 'inline'
lib/openal/include/atomic.h(195) : error C2085: 'AtomicAdd32' : not in formal parameter list
lib/openal/include/atomic.h(195) : error C2143: syntax error : missing ';' before '{'
lib/openal/include/atomic.h(198) : error C2054: expected '(' to follow 'inline'
lib/openal/include/atomic.h(199) : error C2085: 'AtomicSub32' : not in formal parameter list
lib/openal/include/atomic.h(199) : error C2143: syntax error : missing ';' before '{'
lib/openal/include/atomic.h(203) : error C2054: expected '(' to follow 'inline'
lib/openal/include/atomic.h(204) : error C2085: 'AtomicSwap32' : not in formal parameter list
lib/openal/include/atomic.h(204) : error C2143: syntax error : missing ';' before '{'
lib/openal/include/atomic.h(207) : error C2054: expected '(' to follow 'inline'
lib/openal/include/atomic.h(208) : error C2085: 'AtomicSwap64' : not in formal parameter list

Well, I should’ve expect that commenting bunch of probably neccessary includes.

I’m running commands from git bash/msysgit/mingw, so maybe there’s option to use gcc instead of cl.exe?

I see @singmajesty commited some changes directly related to this issue. Thanks! But as it is with windows, that’s not end of headaches.

 - Link : ../ndll/Windows/lime.ndll
   Creating library obj/lib/lime.lib and object obj/lib/lime.exp
aa98e850_reverb.obj : error LNK2001: unresolved external symbol _isfinite
d71a8e1e_alListener.obj : error LNK2019: unresolved external symbol _isfinite re              ferenced in function _alListener3f
d71a8e1e_alSource.obj : error LNK2001: unresolved external symbol _isfinite
d71a8e1e_alState.obj : error LNK2001: unresolved external symbol _isfinite
aa98e850_dedicated.obj : error LNK2001: unresolved external symbol _isfinite
ccce9ddb_winmm.obj : error LNK2001: unresolved external symbol _snprintf
ccce9ddb_dsound.obj : error LNK2001: unresolved external symbol _snprintf
ccce9ddb_mmdevapi.obj : error LNK2001: unresolved external symbol _snprintf
0fd0c071_ALc.obj : error LNK2019: unresolved external symbol _snprintf reference              d in function _alc_initconfig
0fd0c071_alcConfig.obj : error LNK2001: unresolved external symbol _snprintf
0fd0c071_hrtf.obj : error LNK2001: unresolved external symbol _snprintf
0fd0c071_panning.obj : error LNK2001: unresolved external symbol _snprintf
aa98e850_modulator.obj : error LNK2001: unresolved external symbol _lrintf
aa98e850_reverb.obj : error LNK2001: unresolved external symbol _lrintf
0fd0c071_helpers.obj : error LNK2001: unresolved external symbol _lrintf
0fd0c071_hrtf.obj : error LNK2019: unresolved external symbol _lrintf referenced               in function _AddFileEntry
0fd0c071_ALu.obj : error LNK2001: unresolved external symbol _lrintf
aa98e850_chorus.obj : error LNK2001: unresolved external symbol _lrintf
aa98e850_echo.obj : error LNK2001: unresolved external symbol _lrintf
aa98e850_flanger.obj : error LNK2001: unresolved external symbol _lrintf
0fd0c071_alcConfig.obj : error LNK2019: unresolved external symbol _strtof refer              enced in function _ConfigValueFloat
obj/lib/lime.ndll : fatal error LNK1120: 4 unresolved externals
Error: error running link.exe -out:obj/lib/lime.ndll -nologo -machine:x86 -dll -              libpath:lib @obj/msvc17xp/all_objs gdi32.lib opengl32.lib user32.lib kernel32.li              b advapi32.lib winmm.lib imm32.lib ole32.lib oleaut32.lib version.lib ws2_32.lib               wldap32.lib shell32.lib comdlg32.lib

It was working with Visual Studio Community, but the build server uses an older Visual Studio – I am getting the same error. I ran out of time, but I see the same linker error and hope to resolve this soon

You could try undefining “HAS_STDINT_H” (or something like that) in the config, it may be related

Should be fixed now, new releases out :slight_smile:

1 Like

Works now, thank you again.