Cross-platform SDK and HTML5 tools for mobile app development
X
 

Error: Unresolved symbol '__ZN6MAUtil11BasicStringIcEC1EPKc',

9 posts / 0 new
Last post
sailamtech
sailamtech's picture
Offline
Joined: 2 Jan 2012
Posts:
Error: Unresolved symbol '__ZN6MAUtil11BasicStringIcEC1EPKc',

can anyone help me out iam getting an unresolved errors when i try to run the program..i think i have to add any library file to the existing code the errors are: Error: Unresolved symbol '__ZN6MAUtil11BasicStringIcEC1EPKc', E:\sudarshan\mosync\workspace\Mosyncfirstscreen\Util.cpp:28: Error: Unresolved symbol '__ZN4MAUI5LabelC1EiiiiPNS_6WidgetERKN6MAUtil11BasicStringIcEEiPNS_4FontE', E:\sudarshan\mosync\workspace\Mosyncfirstscreen\Util.cpp:28: Error: Unresolved symbol '__ZN6MAUtil11BasicStringIcED1Ev', E:\sudarshan\mosync\workspace\Mosyncfirstscreen\Util.cpp:35: Error: Unresolved symbol '__ZN4MAUI6LayoutC1EiiiiPNS_6WidgetEii', E:\sudarshan\mosync\workspace\Mosyncfirstscreen\Util.cpp:38: Error: Unresolved symbol '__ZN6MAUtil11BasicStringIcEC1EPKc',

 

{syntaxhighlighter brush: cpp;fontsize: 100; first-line: 1; }#include <MAUI/Label.h>
#include <MAUI/Layout.h>
#include <MAUI/ListBox.h>
#include "Util.h"

Font *gFont;
WidgetSkin *gSkin;
int scrWidth;
int scrHeight;
using namespace MAUI;
using namespace MAUtil;
void setLabelPadding(Widget *w) {
w->setPaddingLeft(PADDING);
w->setPaddingBottom(PADDING);
w->setPaddingRight(PADDING);
w->setPaddingTop(PADDING);
}

Label* createLabel(const char *str, int height) {
Label *label;
label = new Label(0,0, scrWidth-PADDING*2, height, NULL, str, 0, gFont);
label->setSkin(gSkin);
setLabelPadding(label);
return label;
}

Widget* createSoftKeyBar(int height, const char *left, const char *right) {
Layout *layout = new Layout(0, 0, scrWidth, height, NULL, 2, 1);
Label *label;

label = new Label(0,0, scrWidth/2, height, NULL, left, 0, gFont);
label->setHorizontalAlignment(Label::HA_LEFT);
label->setDrawBackground(false);
setLabelPadding(label);
layout->add(label);

label = new Label(0,0, scrWidth/2, height, NULL, right, 0, gFont);
label->setDrawBackground(false);
label->setHorizontalAlignment(Label::HA_RIGHT);
setLabelPadding(label);
layout->add(label);

return layout;
}

// first child is listbox
Layout* createMainLayout(const char *left, const char *right) {
Layout *mainLayout = new Layout(0, 0, scrWidth, scrHeight, NULL, 1, 2);

Widget *softKeys = createSoftKeyBar(30, left, right);
ListBox* listBox = new ListBox(0, 0, scrWidth, scrHeight-softKeys->getHeight(), mainLayout, ListBox::LBO_VERTICAL, ListBox::LBA_LINEAR, true);
listBox->setSkin(gSkin);
listBox->setPaddingLeft(5);
listBox->setPaddingRight(5);
listBox->setPaddingTop(15);
listBox->setPaddingBottom(15);

mainLayout->add(softKeys);

mainLayout->setSkin(NULL);
mainLayout->setDrawBackground(true);
mainLayout->setBackgroundColor(0);

return mainLayout;
}{/syntaxhighlighter}

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:
You need to add MAP.lib to

You need to add MAP.lib to the list of additional libs.

ahsan muzaheed
jahid57's picture
Offline
Joined: 13 Jan 2011
Posts:
i am having this

i am having this error:

 

"D:\MoSync--workspace\map5\main.cpp:22: Error: Unresolved symbol '__ZN3MAP9MapWidgetC1EiiiiPN4MAUI6WidgetE', 

Pipe tool failed. (See console for more information).

 Command line: c:\MoSync\bin\pipe-tool.exe -appcode=SOYK -stabs=stabs.tab -heapsize=524288 -stacksize=131072 -datasize=1048576 -sld=sld.tab -sc:\MoSync\lib\pipe -B D:\MoSync--workspace\map5\Output\Release\JavaME\Default\program D:\MoSync--workspace\map5\Output\Release\JavaME\Default\main.s rescompiler.lib mastd.lib MAUtil.lib"

 

my os:

windows 7 64 bit

jre installed both verasion(32 bit+64 bit).

is this problem related to jre?

 [solved]

"Include Paths: %mosync-home%/include

Library Paths: %mosync-home%/lib/pipe

Additional Libs: mastd.lib, MAUtil.lib, NativeUI.lib"

 

those lines did it work.

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:
Are you using static HashMap

Are you using static HashMap or Map?

annahid
annahid's picture
Offline
Joined: 20 Sep 2012
Posts:
sorry i wrote this comment

sorry i wrote this comment somewhere else on the forum. i cannot find it any more to delete it. In my project, I am getting unresolved symbol problem even if i reference MAUtil.lib in proj properties. The more surprising thing is it does not see MAUtil::Moblet as unresolved, but only when I am using HashMap or Map. Any help will be appreciated.

rishimittal
rishimittal's picture
Offline
Mobile Conjurer
Joined: 8 Mar 2012
Posts:
thanks ..got it

thanks ..got it

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:
Looks like you've not got

Looks like you've not got MAUI.lib (MAUID.lib for Debug builds) in the Additional Libraries path.  Which template did you start with?

rishimittal
rishimittal's picture
Offline
Mobile Conjurer
Joined: 8 Mar 2012
Posts:
Build started at 19/3/12

Build started at 19/3/12 6:43:16 PM IST
Building: Project Multimedia_Player for profile JavaME/Default
Configuration: Release
c:\MoSync\bin\xgcc.exe -o C:\MoSync\workspace\Multimedia_Player\Output\Release\JavaME\Default\mPlayerMain.s -S -g -MMD -MF C:\MoSync\workspace\Multimedia_Player\Output\Release\JavaME\Default\mPlayerMain.s.deps -DMAPIP -O2 -DPLATFORM_JAVAME -DVARIANT_JAVAME_DEFAULT C:\MoSync\workspace\Multimedia_Player\mPlayerMain.cpp -Ic:\MoSync\include -IC:\MoSync\include\MAUI -IC:\MoSync\workspace\Multimedia_Player\Output\Release\JavaME\Default
--> GCC PIPIL Compiler v2:11:50:55:Aug 26 2009 (O2)
c:\MoSync\bin\pipe-tool.exe -appcode=GPMX -stabs=stabs.tab -heapsize=524288 -stacksize=131072 -datasize=1048576 -sld=sld.tab -sc:\MoSync\lib\pipe -sC:\MoSync\lib\pipe\mautil.lib -B C:\MoSync\workspace\Multimedia_Player\Output\Release\JavaME\Default\program C:\MoSync\workspace\Multimedia_Player\Output\Release\JavaME\Default\mPlayerMain.s rescompiler.lib mastd.lib C:\MoSync\lib\pipe\mautil.lib
pipe-tool Copyright 2007-2009 Mobile Sorcery AB
pass 1. 97 known symbols.
pass 2. 20119 known symbols.
In File 'C:\MoSync\workspace\Multimedia_Player\Output\Release\JavaME\Default\mPlayerMain.s': Error: Unresolved symbol '__ZN4MAUI6Screen4showEv',
Pipe tool failed. (See console for more information).
 Command line: c:\MoSync\bin\pipe-tool.exe -appcode=GPMX -stabs=stabs.tab -heapsize=524288 -stacksize=131072 -datasize=1048576 -sld=sld.tab -sc:\MoSync\lib\pipe -sC:\MoSync\lib\pipe\mautil.lib -B C:\MoSync\workspace\Multimedia_Player\Output\Release\JavaME\Default\program C:\MoSync\workspace\Multimedia_Player\Output\Release\JavaME\Default\mPlayerMain.s rescompiler.lib mastd.lib C:\MoSync\lib\pipe\mautil.lib
In File 'C:\MoSync\workspace\Multimedia_Player\Output\Release\JavaME\Default\mPlayerMain.s': Error: Unresolved symbol '__ZN4MAUI6Screen4hideEv',
C:\MoSync\workspace\Multimedia_Player\mPlayerMain.cpp:32: Error: Unresolved symbol '__ZN4MAUI6ScreenD2Ev',
C:\MoSync\workspace\Multimedia_Player\mPlayerMain.cpp:32: Error: Unresolved symbol '__ZN4MAUI6ScreenD2Ev',
C:\MoSync\workspace\Multimedia_Player\mPlayerMain.cpp:26: Error: Unresolved symbol '__ZN4MAUI6ScreenC2Ev',

Patrick Broman
patrick's picture
Offline
Mobile Wizard
Joined: 17 Feb 2009
Posts:
It looks like you're not

It looks like you're not linking with MAUtil.lib. Check in Project -> Properties -> MoSync Project -> Build Settings -> Additional Libraries.

Login or register to post comments