Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

undefined references to std::basic_string with PK4.0 interop

0 views
Skip to first unread message

Schoeler@discussions.microsoft.com Thorsten Schoeler

unread,
Jan 14, 2010, 4:21:01 AM1/14/10
to
Dear all,

we are currently porting a native ANSI C library to NETMF PK4.0.
Access to the library is achieved via a NETMF interop. The interop
code is C++ and uses the C++ string class.

We are able to build and use the interop and native libary in our
NETMF PK emulator project. When we try to build the project for the
target AUG board (ARM architecture) we get several linking errors
like:

Command:

""D:\DATA\mch07790\Programme\Raisonance\Ride\arm-gcc"\bin\arm-none-ea
bi-ld.exe"

undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::basic_string(std::string const&)'

It seems to me that either the ARM build process does not include the
string library or the build process uses the wrong linker
(ld).

Can anyone help? Thank you in advance.

Lorenzo Tessiore

unread,
Jan 14, 2010, 12:19:01 PM1/14/10
to
Hello Thorsten,

it looks like you are missing the STL library for strings. We do not use
that, so it must have folded in with so other addition. Or maybe tehe
version of GCC you are using requires it.
You might want to try and add it exploiting the following construct
<ExtraLibs Condition="'$(INSTRUCTION_SET)'=='arm'"></ExtraLibs>

in the target file
tools\Targets\Microsoft.Spot.system.gcc.targets

Let us know how it works
Lorenzo

Ant

unread,
Feb 8, 2010, 4:03:01 AM2/8/10
to
Dear Thorsten,
if you posted in the command you showed us directly from the build output -
that is - if there really are double quotes in the path - then please check
your SetEnv script and remove the quotes! For your long path use
..\progra~1\raison~1\... so that there is no need for quotes any more.
Best regards, AUG Team

fannysörfelth

unread,
Mar 8, 2010, 11:33:35 AM3/8/10
to
hej på ha hckoy in jajag ha bra nu ha sa bra ni nu ha
löst ni ja ha vi ja ni ja kan ja ha på ja
kan ja ha ni kan ja bin om kan ja ha ni ja ha bra ja ni ja ha
jan ha vi ja 20-23-24 mål kan ja om ja ja löst in ja /fanny

0 new messages