Hi,

your issue is that you are trying to use static libraries in foreign
link-environment.  Some symbols, which are present in mingw-w64's
library-set, aren't present in VC.  You see that by that error-messages you
got.

I would suggest that you build instead of static libraries a DLL out of
this, and then generate a VC-compatible import-library for that DLL.  Then
you should be able to use this library without issues.

We disencourage people to try to mix static libraries between VC and gcc.
If you insist to do so, you are on your own.

Regards,
Kai



2013/4/3 sivasubramani <sivasubramani.m...@precisionbiometric.co.in>

>  Dear Team,****
>
> ** **
>
>             I have created libpng using *x86_64-w64-mingw32-gcc  *compiler
> and I created a wrapper static library for that libpng using visual c++
>  for 64 bit windows 7 platform . while I try to run that library I got the
> following error’s****
>
> ** **
>
> “error LNK2019: unresolved external symbol mingw_getsp referenced in
> function read_png”****
>
> “error LNK2001: unresolved external symbol mingw_getsp”****
>
> “error LNK2001: unresolved external symbol mingw_getsp”****
>
> “error LNK2019: unresolved external symbol  __strtod referenced in
> function png_handle_sCAL”****
>
> ** **
>
> LSpng.lib(pngreadwrite.o) : error LNK2001: unresolved external symbol
> mingw_getsp referenced in function read_png****
>
> LSpng.lib(pngread.o) : error LNK2001: unresolved external symbol
> mingw_getsp****
>
> LSpng.lib(pngread.o) : error LNK2001: unresolved external symbol
> mingw_getsp****
>
> LSpng.lib(pngrutil.o) : error LNK2019: unresolved external symbol
>  __strtod referenced in function png_handle_sCAL****
>
> ** **
>
> I did same thing using mingw32 for 32 bit windows machine. It was compiled
> and worked properly****
>
> ** **
>
> How can I resolve this problem can anyone help me please.****
>
> ** **
>
> ** **
>
> ** **
>
> Thanks & Regards,****
>
>  Siva****
>
> ** **
>
> This communication may contain confidential information. If you are not
> the intended recipient it may be unlawful for you to read, copy,
> distribute, disclose or otherwise use the information contained within this
> communication.. Errors and Omissions may occur in the contents of this
> Email arising out of or in connection with data transmission, network
> malfunction or failure, machine or software error, malfunction, or operator
> errors by the person who is sending the email. Precision Group accepts no
> responsibility for any such errors or omissions. The information, views and
> comments within this communication are those of the individual and not
> necessarily those of Precision Group. All email that is sent from/to
> Precision Group is scanned for the presence of computer viruses, security
> issues and inappropriate content. However, it is the recipient's
> responsibility to check any attachments for viruses before use.
>
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to