All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
unresolved _alloca with libcrypto.a
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
unresolved _alloca with libcrypto.a - May 12, '06, 4:57:14 PM
|
|
|
demyn
Posts: 34
Joined: Jun. 20, '05,
Status: offline
|
Hi,
Our application is built with MSVC and we are static linking to libssl.a and libcrypto.a. This gives us an unresolved symbol error:
Linking...
libcrypto.a(err_prn.o) : error LNK2019: unresolved external symbol __alloca referenced in function _ERR_print_errors_cb
libcrypto.a(sha512.o) : error LNK2001: unresolved external symbol __alloca
libcrypto.a(bn_prime.o) : error LNK2001: unresolved external symbol __alloca
We can get the link to success by including libgcc.a, but that makes me uneasy since we are using Visual C++. The app is mixed-mode so we aren't able link dynamically.
Could libcrypto.a get rebuilt with the inline version of alloca? Other thoughts on the matter?
Thanks,
Demyn
|
|
|
RE: unresolved _alloca with libcrypto.a - May 12, '06, 5:44:37 PM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Actually that is the solution (linking to libgcc.a).
Mark looked into this a couple of years ago now. I believe he extracted out specifically what
is needed. The specific posting is:
http://www.interopsystems.com/tools/tm.aspx?m=7818&mpage=1&key=__allocaẊ
|
|
|
RE: unresolved _alloca with libcrypto.a - May 15, '06, 4:24:07 PM
|
|
|
demyn
Posts: 34
Joined: Jun. 20, '05,
Status: offline
|
Sounds good ... thanks for the link.
Mostly, I was concerned about symbols in libgcc.a colliding with MSVC library symbols. I check our app's .map file and only __alloca and ___chkstk are pulled in from libgcc. libstd (MSVC) has __chkstk (one less underscore), so I suppose it's okay.
Thanks
Demyn
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|