Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi.

I tried to use _std_strlprintf function but always got error like below:

1>c_ui_widgets.obj : error LNK2019: unresolved external symbol _std_strlprintf referenced in function _MyApp_CreateHelloWidget

I used c_ui_widgets sample project. Steps are:

1. Open c_ui_widgets sample project.
2. put #include on c_ui_widgets.c file
3. Inside of MyApp_CreateHelloWidget function, write this:

char buffer[100];
std_strlprintf(buffer,20,"%d.%d", 3, 4);

4. Compile the code.

Need your help! Thanks.

i think symbol is unresolved coz ur not linking the library.
try--
goto project->prooperties->linker->general->additional library directories and enter the path "$(BREWMP_PLATFORM)\system\lib\Win32_Debug"
also goto project->prooperties->linker->input->additional dependencies and enter these libraries there - a1std.lib a1_imp.lib a1mod.lib
HTH
Manju!

i think symbol is unresolved coz ur not linking the library.
try--
goto project->prooperties->linker->general->additional library directories and enter the path "$(BREWMP_PLATFORM)\system\lib\Win32_Debug"
also goto project->prooperties->linker->input->additional dependencies and enter these libraries there - a1std.lib a1_imp.lib a1mod.lib
HTH
Manju!

Thanks. It is working for the Simulation workplace.
But for the Physical Target, it doesn't work either.
I get the same error message
Error: L6218E: Undefined symbol std_strlprintf (referred from ...).
How we set the linking environment for Brew MP Physical Target?

Thanks. It is working for the Simulation workplace.
But for the Physical Target, it doesn't work either.
I get the same error message
Error: L6218E: Undefined symbol std_strlprintf (referred from ...).
How we set the linking environment for Brew MP Physical Target?

these libraries should also be included for physical compilation in your make file.
in my case i have included like this:
Appname_LIBS =a1std
Appname_LIBS +=a1mod
Appname_IMPLIBS = a1_imp

these libraries should also be included for physical compilation in your make file.
in my case i have included like this:
Appname_LIBS =a1std
Appname_LIBS +=a1mod
Appname_IMPLIBS = a1_imp

I think this might help you in resolving the issue that you are seeing for Target compilation:
Just add the below line in the make file that it generates:
c_ui_widgets_LIBS = a1std a1mod
This may be due to you have chosen DLL/MOD format while creating the project, the project created with this setting doesn't add linking of standard libraries and hence you need to explicitly add the above line in the make file (or) you can try creating DLL1/MOD1 project which will have this line already in the make file.
Kindly revert back to me if you still see any issue.
Thanks,
Sreekanth Aila

I think this might help you in resolving the issue that you are seeing for Target compilation:
Just add the below line in the make file that it generates:
c_ui_widgets_LIBS = a1std a1mod
This may be due to you have chosen DLL/MOD format while creating the project, the project created with this setting doesn't add linking of standard libraries and hence you need to explicitly add the above line in the make file (or) you can try creating DLL1/MOD1 project which will have this line already in the make file.
Kindly revert back to me if you still see any issue.
Thanks,
Sreekanth Aila

Still I get error. I think just simply adding the line doesn't help the physical build successful.
cs-make.exe: *** No rule to make target `a1mod.lib', needed by `ADS12arm9_Debug/c_ui_widgets.mod'.
How can I solve the issue? Need your help.

Still I get error. I think just simply adding the line doesn't help the physical build successful.
cs-make.exe: *** No rule to make target `a1mod.lib', needed by `ADS12arm9_Debug/c_ui_widgets.mod'.
How can I solve the issue? Need your help.

it says it cant find the path to a1mod.lib
can you try adding this in your make file
LIBDIRS += $(SYSTEM_DIR)/lib/$(OBJ_DIR)

it says it cant find the path to a1mod.lib
can you try adding this in your make file
LIBDIRS += $(SYSTEM_DIR)/lib/$(OBJ_DIR)