Pregunta

I'm willing to use x264 in my Windows project, so I've build the library from source using MinGW and gcc into a static library.

The library and the header are included correctly, the only problem is that linker now complains, because __umoddi3, __udivdi3, _fseeko64 and __chkstk_ms. Looks like this functions are a part of some standard library, but where can I find it in Windows?

Thanks.

¿Fue útil?

Solución

I wouldn't copy/past full answer here but you should read this topic at doom10.org In short, you can't directly use MinGW compiled .a libraries (static or shared) in MSVS. You need to compile libx264.dll and make MSVS specific .lib library from .def file and than use this library for linking.

Otros consejos

You have compiled a static library in MinGW and are trying to use it in Visual Studio. That does not work. In order to use a static library, it must be compiled with the same compiler, and against the same runtime, as the program that uses it.

If you are set on using this as a static library then you must compile the x264 source in Visual Studio.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top