Hi Keith,
Thanks for you reply.
I did everything that you have mentioned in your last mail.
i have globaliy defined the _get_output_format function in my code.
But still i am getting same linking error.
About msvcr80.dll, i did not get you.
Please help me out.
With Regards,
Sukhbir
On Fri, Jan 23, 2009 at 1:30 AM, Keith Marshall <
keithmarshall@...> wrote:
> On Thursday 22 January 2009 17:02:42 Sukhbir Singh wrote:
> > While intergrating FFMpeg static libs with my own code written in
> > c++ using MSVC++ 6.0,
>
> First, a plug for free software: had you chosen to build your entire
> application using MinGW, instead of using this outdated, proprietary,
> non-free and restrictively licensed compiler suite, then you would
> never have encountered...
>
> > I am getting following linking error:
> > libmingwex.a(pformat.o) : error LNK2001: unresolved external symbol
> > __get_output_format
>
> ...this error.
>
> Ok. This probably isn't the answer you hoped for, so here is the
> authoritative answer I promised, when I responded to your earlier
> post to MinGW-MSYS.
>
> int _get_output_format( void );
>
> is a standard MSVC function, but it was not introduced until VS-2005;
> therefore, there is no implementation provided by VC-6.0. To support
> users of more recent MSVC, (with MSVCRT version >= 8.00), who might
> also wish to use the _set_output_format() feature, and who also wish
> to use MinGW's enhanced printf() implementation, (which is what uses
> pformat.o), a call to _get_output_format() is needed. To satisfy
> that requirement, when linking against earlier MSVCRT versions,
> MinGW's own import libraries provide a stub implementation of this
> function, which isn't provided by Microsoft's own libraries. Thus,
> you need to provide your own stub; add:
>
> int _get_output_format( void ){ return 0; }
>
> as a global function definition, to the source which provides your
> main() function, when you must use non-MinGW libraries, for linking
> to MSVCRT versions predating msvcr80.dll.
>
> --
>
> Regards,
> Keith.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@...
>
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
>
> _______________________________________________
> This list observes the Etiquette found at
> http://www.mingw.org/Mailing_Lists.
> We ask that you be polite and do the same.
>
|