Link errorwhile compiling decode video application
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- c
- Domain
- build-system
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.
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
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 319
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/FFmpegInterop
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
microsoft/FFmpegInterop#330 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
microsoft/FFmpegInterop#327 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/FFmpegInterop#324 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
microsoft/FFmpegInterop#323 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
microsoft/FFmpegInterop#278 ·
All issues in microsoft/FFmpegInterop
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·