5

我正在尝试在 Visual Studio 2010 中运行一个简单的 GStreamer 程序( http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html )。

我已经包含了所需的库和其他头文件。 可执行目录 包括目录 图书馆目录 参考目录

现在程序编译但给了我链接错误。

gstream.obj : error LNK2019: unresolved external symbol _gst_object_get_type referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _g_main_loop_run referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _gst_element_set_state referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _g_print referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _g_signal_connect_data referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _gst_element_link_many referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _gst_element_link referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _gst_bin_add_many referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _gst_bin_get_type referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _gst_object_unref referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _gst_bus_add_watch referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _gst_pipeline_get_bus referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _gst_pipeline_get_type referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _g_object_set referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _g_type_check_instance_cast referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _gst_element_factory_make referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _gst_pipeline_new referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _g_printerr referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _g_main_loop_new referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _gst_init referenced in function _main
gstream.obj : error LNK2019: unresolved external symbol _g_error_free referenced in function "int __cdecl bus_call(struct _GstBus *,struct _GstMessage *,void *)" (?bus_call@@YAHPAU_GstBus@@PAU_GstMessage@@PAX@Z)
gstream.obj : error LNK2019: unresolved external symbol _g_free referenced in function "int __cdecl bus_call(struct _GstBus *,struct _GstMessage *,void *)" (?bus_call@@YAHPAU_GstBus@@PAU_GstMessage@@PAX@Z)
gstream.obj : error LNK2019: unresolved external symbol _gst_message_parse_error referenced in function "int __cdecl bus_call(struct _GstBus *,struct _GstMessage *,void *)" (?bus_call@@YAHPAU_GstBus@@PAU_GstMessage@@PAX@Z)
gstream.obj : error LNK2019: unresolved external symbol _g_main_loop_quit referenced in function "int __cdecl bus_call(struct _GstBus *,struct _GstMessage *,void *)" (?bus_call@@YAHPAU_GstBus@@PAU_GstMessage@@PAX@Z)
gstream.obj : error LNK2019: unresolved external symbol _gst_pad_link referenced in function "void __cdecl on_pad_added(struct _GstElement *,struct _GstPad *,void *)" (?on_pad_added@@YAXPAU_GstElement@@PAU_GstPad@@PAX@Z)
gstream.obj : error LNK2019: unresolved external symbol _gst_element_get_static_pad referenced in function "void __cdecl on_pad_added(struct _GstElement *,struct _GstPad *,void *)" (?on_pad_added@@YAXPAU_GstElement@@PAU_GstPad@@PAX@Z)
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
C:\Users\vickey\Documents\Visual Studio 2010\Projects\gstream\Debug\gstream.exe : fatal error LNK1120: 27 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

我错过了什么?

4

0 回答 0