microsoft / microsoft/FFmpegInterop

Link errorwhile compiling decode video application

Open
#258 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.4k
Forks
319
PR merge metrics
No merged PRs in 30d

Description

Hi,

I have modified the doc/example/decode_video.c to start a thread using the pthread_create() call. While compiling the FFMPEG Example with this new (replaced) decode_video.c I get the link error as below:

**> $ make examples

LD doc/examples/decode_video_g.exe
decode_video.o : error LNK2019: unresolved external symbol pthread_create referenced in function main
doc/examples/decode_video_g.exe : fatal error LNK1120: 1 unresolved externals
make: *** [Makefile:108: doc/examples/decode_video_g.exe] Error 96**

I have libpthreadGC1.a and libpthreadGC2.a from Windows pthread pkg but need to understand how to include this pthread lib here to avoid this link error. Do I need to make changes to any Makefile in FFmpeg or include in config parameter?

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with doc/example/decode_video.c and the examples target around Makefile:108, then inspect how the Windows example linker inputs are configured. Reproduce make examples and trace the link command; done means the modified decode_video example links successfully without the pthread_create unresolved-symbol errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.