openh264 icon indicating copy to clipboard operation
openh264 copied to clipboard

New link error in codec_unittest when building with OS=msvc

Open ethanhugg opened this issue 12 years ago • 2 comments

cl -nologo -Fecodec_unittest.exe test/decoder/DecUT_Deblock.obj test/decoder/Dec UT_ErrorConcealment.obj test/decoder/DecUT_ExpandPicture.obj test/decoder/DecUT_ IdctResAddPred.obj test/decoder/DecUT_IntraPrediction.obj test/decoder/DecUT_Mot ionCompensation.obj test/decoder/DecUT_PredMv.obj test/encoder/EncUT_DecodeMbAux .obj test/encoder/EncUT_EncoderMb.obj test/encoder/EncUT_EncoderMbAux.obj test/e ncoder/EncUT_ExpandPic.obj test/encoder/EncUT_ExpGolomb.obj test/encoder/EncUT_G etIntraPredictor.obj test/encoder/EncUT_MemoryAlloc.obj test/encoder/EncUT_Motio nEstimate.obj test/encoder/EncUT_Sample.obj test/processing/ProcessUT_ScrollDete ction.obj test/api/BaseDecoderTest.obj test/api/BaseEncoderTest.obj test/api/cpp _interface_test.obj test/api/DataGenerator.obj test/api/decode_encode_test.obj t est/api/decoder_test.obj test/api/encoder_test.obj test/api/simple_test.obj test /api/c_interface_test.obj test/api/sha1.obj gtest.lib decoder.lib encoder.lib pr ocessing.lib common.lib -L. gtest.lib decoder.lib encoder.lib processing.lib com mon.lib user32.lib cl : Command line warning D9002 : ignoring unknown option '-L.' EncUT_MotionEstimate.obj : error LNK2019: unresolved external symbol "void __cde cl WelsSVCEnc::SetFeatureSearchIn(struct WelsSVCEnc::TagWelsFuncPointerList ,st ruct WelsSVCEnc::TagWelsME const &,struct WelsSVCEnc::TagSlice const *,struct We lsSVCEnc::TagScreenBlockFeatureStorage *,int,int,struct WelsSVCEnc::TagFeatureSe archIn *)" (?SetFeatureSearchIn@WelsSVCEnc@@YAXPAUTagWelsFuncPointerList@1@ABUTa gWelsME@1@PBUTagSlice@1@PAUTagScreenBlockFeatureStorage@1@HHPAUTagFeatureSearchI n@1@@Z) referenced in function "private: virtual void __thiscall FeatureMotionEs timateTest_TestFeatureSearch_Test::TestBody(void)" (?TestBody@FeatureMotionEstim ateTest_TestFeatureSearch_Test@@EAEXXZ) codec_unittest.exe : fatal error LNK1120: 1 unresolved externals make: ** [codec_unittest.exe] Error 2

ethanhugg avatar May 20 '14 16:05 ethanhugg

I believe this is caused by pull req. 831. SetFeatureSearchIn has changed from void to bool return type.

ethanhugg avatar May 20 '14 16:05 ethanhugg

This should be fixed by pull req #872

ethanhugg avatar May 21 '14 15:05 ethanhugg