On 1/29/2013 12:22 PM, Danilo Nicolò wrote:
> Hi,
>
> I'm trying to develop in OpenSC project and I modified opensc-tool.c
> I added a code block and in this code there is "int res = sc_load_foo(s);"
> The function sc_load is declared in /src/libopensc/opensc.h (int sc_load_foo(char *);) and is implemented in /src/libopensc/card.c
It is?
Are you saying you added the function sc_load_foo?
What version are you using. I don't see it in 0.12.3 or 0.13
> When I try to compile project I get this error :
> "*undefined reference to 'sc_load_foo(s)'*" in opensc-tool.c
> But in opensc-tool.c there is the line #include "libopensc/opensc.h" and in card.c there is #include "internal.h"
> and in internal.h there is #include "libopensc/opensc.h"
> Why when I try to do make I get this error?
> Anyone can help me?
If you added this function to the library, you need to update the
libopensc.exports file too.
>
> Regards,
>
> Danilo
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
>
>
>
> _______________________________________________
> Opensc-devel mailing list
> Ope...@li...
> https://lists.sourceforge.net/lists/listinfo/opensc-devel
>
--
Douglas E. Engert <DEE...@an...>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
|