-
Notifications
You must be signed in to change notification settings - Fork 398
Description
heres the error FAILED: XenonUtils/CMakeFiles/XenonUtils.dir/xex_patcher.cpp.obj
C:\msys64\clang64\bin\clang++.exe -DNOMINMAX -IC:/Users/Allen/XenonRecomp/XenonUtils/. -IC:/Users/Allen/XenonRecomp/thirdparty/libmspack/libmspack/mspack -IC:/Users/Allen/XenonRecomp/thirdparty/tiny-AES-c -IC:/Users/Allen/XenonRecomp/thirdparty/TinySHA1 -IC:/Users/Allen/XenonRecomp/thirdparty/disasm/. -g -std=gnu++17 -MD -MT XenonUtils/CMakeFiles/XenonUtils.dir/xex_patcher.cpp.obj -MF XenonUtils\CMakeFiles\XenonUtils.dir\xex_patcher.cpp.obj.d -o XenonUtils/CMakeFiles/XenonUtils.dir/xex_patcher.cpp.obj -c C:/Users/Allen/XenonRecomp/XenonUtils/xex_patcher.cpp
C:/Users/Allen/XenonRecomp/XenonUtils/xex_patcher.cpp:144:12: error: static declaration of 'lzxDecompress' follows non-static declaration
144 | static int lzxDecompress(const void lzxData, size_t lzxLength, void dst, size_t dstLength, uint32_t windowSize, void windowData, size_t windowDataLength)
| ^
C:/Users/Allen/XenonRecomp/XenonUtils/xex_patcher.h:19:12: note: previous declaration is here
19 | extern int lzxDecompress(const void lzxData, size_t lzxLength, void dst, size_t dstLength, uint32_t windowSize, void windowData, size_t windowDataLength);
| ^
C:/Users/Allen/XenonRecomp/XenonUtils/xex_patcher.cpp:209:26: error: call to 'lzxDecompress' is ambiguous
209 | int result = lzxDecompress(curPatch->patchData, curPatch->compressedLength, &dstData[curPatch->newAddress], curPatch->uncompressedLength, windowSize, &dstData[curPatch->oldAddress], curPatch->uncompressedLength);
| ^~~~~~~~~~~~~
C:/Users/Allen/XenonRecomp/XenonUtils/xex_patcher.h:19:12: note: candidate function
19 | extern int lzxDecompress(const void* lzxData, size_t lzxLength, void* dst, size_t dstLength, uint32_t windowSize, void* windowData, size_t windowDataLength);
| ^
C:/Users/Allen/XenonRecomp/XenonUtils/xex_patcher.cpp:144:12: note: candidate function
144 | static int lzxDecompress(const void lzxData, size_t lzxLength, void dst, size_t dstLength, uint32_t windowSize, void windowData, size_t windowDataLength)
| ^
C:/Users/Allen/XenonRecomp/XenonUtils/xex_patcher.cpp:457:22: error: call to 'lzxDecompress' is ambiguous
457 | resultCode = lzxDecompress(compressBuffer.get(), d - compressBuffer.get(), buffer, uncompressedSize, ((const Xex2FileNormalCompressionInfo)(fileFormatInfo + 1))->windowSize, nullptr, 0);
| ^~~~~~~~~~~~~
C:/Users/Allen/XenonRecomp/XenonUtils/xex_patcher.h:19:12: note: candidate function
19 | extern int lzxDecompress(const void lzxData, size_t lzxLength, void dst, size_t dstLength, uint32_t windowSize, void* windowData, size_t windowDataLength);
| ^
C:/Users/Allen/XenonRecomp/XenonUtils/xex_patcher.cpp:144:12: note: candidate function
144 | static int lzxDecompress(const void *lzxData, size_t lzxLength, void *dst, size_t dstLength, uint32_t windowSize, void *windowData, size_t windowDataLength)
| ^
3 errors generated.
[26/34] Building CXX object XenonRecomp/CMakeFiles/XenonRecomp.dir/cmake_pch.hxx.pch
ninja: build stopped: subcommand failed.
how do i fix this