Skip to content

Link errorwhile compiling decode video application #258

Open

Description

@mishralok

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy