digitalmars.D.learn - Problem linking in C code
- akcom (18/21) May 15 2007 Digital Mars Librarian Version 8.00n
- torhu (3/26) May 16 2007 I haven't used lib like that myself, but does it work if you link
- Hoenir (2/30) Jun 12 2007 I'm interested in the solution of this problem as well.
- Thomas Kuehne (20/50) Jun 12 2007 -----BEGIN PGP SIGNED MESSAGE-----
I'm trying to link some C code into my D program. I'm doing the following (using DMC to retain object file compatbility):dmc.exe aes.c aes.h -c libDigital Mars Librarian Version 8.00n Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com library file (.lib) aes.lib create new library (Y or N)? Y action-object [-+*] (.obj) aes.obj list file (.lst) Digital Mars Librarian complete.build aesc.d aes.libOPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved aes.lib Warning 140: Library probably needs FIXLIB aesc.obj(aesc) Error 42: Symbol Undefined _aes_set_key Any suggestions as to how to resolve the linking issue? Regards, Alex
May 15 2007
akcom wrote:I'm trying to link some C code into my D program. I'm doing the following (using DMC to retain object file compatbility):I haven't used lib like that myself, but does it work if you link directly with the object file? Instead of creating a .lib file first?dmc.exe aes.c aes.h -c libDigital Mars Librarian Version 8.00n Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com library file (.lib) aes.lib create new library (Y or N)? Y action-object [-+*] (.obj) aes.obj list file (.lst) Digital Mars Librarian complete.build aesc.d aes.libOPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved aes.lib Warning 140: Library probably needs FIXLIB aesc.obj(aesc) Error 42: Symbol Undefined _aes_set_key Any suggestions as to how to resolve the linking issue?
May 16 2007
akcom schrieb:I'm trying to link some C code into my D program. I'm doing the following (using DMC to retain object file compatbility):I'm interested in the solution of this problem as well.dmc.exe aes.c aes.h -c libDigital Mars Librarian Version 8.00n Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com library file (.lib) aes.lib create new library (Y or N)? Y action-object [-+*] (.obj) aes.obj list file (.lst) Digital Mars Librarian complete.build aesc.d aes.libOPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved aes.lib Warning 140: Library probably needs FIXLIB aesc.obj(aesc) Error 42: Symbol Undefined _aes_set_key Any suggestions as to how to resolve the linking issue? Regards, Alex
Jun 12 2007
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hoenir schrieb am 2007-06-12:akcom schrieb:Can you post sample .c and .d files? Thomas -----BEGIN PGP SIGNATURE----- iQIVAwUBRm8P4LZlboUnBhRKAQLhVxAAx63uwATFJySumx4c19p/fWUZZo5zvgK2 AbqRoxXK8klUCDmb5CznDonGsEWYVw6MgRM1DQ0IP3gRWU+1UP0ayA76NVZdLT88 4crvPZjMVCKIRrLxMEEOuTmzYu15WL2Ai6ititSyXM/NKqSgV1QjxCxorjIldHaL HVcGbgi9L4HMpr7bF95Sbsk0Yq2P+KeHJw2WcYtwNEgLDicUbk2VLJIUGurWtUL4 q/LAjHhE7s+q7U4i8/GpAB0SpZ9PZenEAYt2RUysRIE6YLigs/wvsAvvroi6+2bl FsuGQSxi3QUTL4jij3oiLSqGXbmC3pGg8wZ63ttZKAX5iHfXLMPHXPPIbhb6envc TIK8443iFbhdotlZVg4vlYcA6aMcruHYgMCfO7bTocQQoM/TLHn7gxkhyHM54kl2 nKDZTaGhoMTvY5Fb6zDzK6zZtnl2nDaNVAp39MT1X1vnRAwObq2zFeD3FrEa5GjW qClrmNpaIlY7ReqnnI5zKbMcfSfCbE70tt7rvhGHhiuG+y0oMNqc/RMR5du7Slo2 JcSqmSDulapJ7vLh0c1gl+O56bGvdYMVJPhGGcql8+2VBhn045D/fn7A0CfLiE6+ nM9uqqsP8/doQ76pbPmkWlt/goh9eWr/wlDJjUcKd3Pl/fXUZ9KDuFixKBIE8cFi lv75v6zQqKU= =Mlzk -----END PGP SIGNATURE-----I'm trying to link some C code into my D program. I'm doing the following (using DMC to retain object file compatbility):I'm interested in the solution of this problem as well.dmc.exe aes.c aes.h -c libDigital Mars Librarian Version 8.00n Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com library file (.lib) aes.lib create new library (Y or N)? Y action-object [-+*] (.obj) aes.obj list file (.lst) Digital Mars Librarian complete.build aesc.d aes.libOPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved aes.lib Warning 140: Library probably needs FIXLIB aesc.obj(aesc) Error 42: Symbol Undefined _aes_set_key Any suggestions as to how to resolve the linking issue? Regards, Alex
Jun 12 2007