Operating System - HP-UX
1833476 Members
2788 Online
110052 Solutions
New Discussion

Unresolved symbol : BadString

 
shivakumara
Occasional Advisor

Unresolved symbol : BadString

Hi,
I am building one application. Here I am creating one archive library by using few .o files. By using these archive file and few.o files I am creating the shared library. Using this shared libraryand one C file I am creating the Executable file. But THis executable will throw the above error.
Can you guide me are these command options are correct?

The commands I am running is as follows.

/opt/ansic/bin/cc +Z -b -Wl,-B nodelete -Wl,-B immediate -Wl,+s -Wl,+b\$/ORIGIN:\$ORIGIN/../share/lib:\$ORIGIN/../lib:. -L./build/HP-UXB.11.11//c/DBG/lib/ -Wl,+hlibMflog4c.sl -o build/HP-UXB.11.11//c/DBG/lib/libMflog4c.sl build/HP-UXB.11.11//c/DBG/obj/appender.o build/HP-UXB.11.11//c/DBG/obj/appender_type_mmap.o build/HP-UXB.11.11//c/DBG/obj/appender_type_stream.o build/HP-UXB.11.11//c/DBG/obj/appender_type_syslog.o build/HP-UXB.11.11//c/DBG/obj/category.o build/HP-UXB.11.11//c/DBG/obj/init.o build/HP-UXB.11.11//c/DBG/obj/layout.o build/HP-UXB.11.11//c/DBG/obj/layout_type_basic.o build/HP-UXB.11.11//c/DBG/obj/layout_type_dated.o build/HP-UXB.11.11//c/DBG/obj/logging_event.o build/HP-UXB.11.11//c/DBG/obj/priority.o build/HP-UXB.11.11//c/DBG/obj/rc.o build/HP-UXB.11.11//c/DBG/obj/version.o build/HP-UXB.11.11//c/DBG/lib/liblog4c_sd.a -L./ext_dep/c/HP-UXB.11.11_DBG.OBJ/SECURITY_JES5_20060505/lib -lnspr4 -lplds4 -lc -lpthread -lnsl -lrt



/opt/ansic/bin/cc -wn +DAportable +Z -Ae -mt -D_REENTRANT -Wl,+s -g -DDEBUG_BUILD -DDEBUG -DHPUX -I include -I src/log4c -I src -I src/sd -Iunittests-jesmf -I./ext_dep/c/HP-UXB.11.11_DBG.OBJ/SECURITY_JES5_20060505/include -L./build/HP-UXB.11.11//c/DBG/lib/ -L../lib/ -o build/HP-UXB.11.11//c/DBG/unit_test/test_log4c-API unittests-jesmf/test_log4c-API.c -L./ext_dep/c/HP-UXB.11.11_DBG.OBJ/SECURITY_JES5_20060505/lib -lnspr4 -lplds4 -L./build/HP-UXB.11.11/c/DBG/lib/ -lMflog4c -lc -lpthread -lnsl -lrt




1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Unresolved symbol : BadString

Where is the error message?
What object/lib has the unsat? Where is BadString defined?

>-Wl,-B nodelete -Wl,-B immediate

These options are incorrect. You need a comma between the -B and the option parm. It may be a fluke that it works.

(Any reason you are using nodelete? That was added just for me. ;-)