Compile library:
CC -c -I./ -I./unix -g -D_DEBUG -D__SUNOS__ -D__UNIX__ -c *.cpp
BaseClass.cpp:
CommandLine.cpp:
DHException.cpp:
DHLogException.cpp:
DataBase.cpp:
Date.cpp:
FileUtilities.cpp:
General.cpp:
Globals.cpp:
Identifiable.cpp:
Log.cpp:
MainProgram.cpp:
MultiLog.cpp:
Printable.cpp:
StringUtils.cpp:
Link library:
CC -G -lsocket -lnsl -ldl *.o -o libhoff.so
Compile app:
CC -w -c -I./ -I../libs -D__SUNOS__ -c *.cpp
Link app:
CC -Bdynamic -lhoff *.o -o MyApp
---------------------------------------
Failed attempt with static:
CC -c -I./ -I./unix -g -D_DEBUG -D__SUNOS__ -D__UNIX__ -c *.cpp
BaseClass.cpp:
CommandLine.cpp:
DHException.cpp:
DHLogException.cpp:
DataBase.cpp:
Date.cpp:
FileUtilities.cpp:
General.cpp:
Globals.cpp:
Identifiable.cpp:
Log.cpp:
MainProgram.cpp:
MultiLog.cpp:
Printable.cpp:
StringUtils.cpp:
Link library:
/usr/ccs/bin/ar rc libhoffstatic.a *.o
Compile and Link app (and link errors)
CC -w -c -I./ -I../libs -I../libs/unix -D__SUNOS__ -c *.cpp
CC *.o ../libs/libhoffstatic.a -o Hoff
Undefined first referenced
symbol in file
long Properties,std::allocator >,std::basic_string,std::allocator > >::getPropertyL(const std::basic_string,std::allocator >&,const long) ../libs/libhoffstatic.a(CommandLine.o)
bool Properties,std::allocator >,std::basic_string,std::allocator > >::getPropertyBool(const std::basic_string,std::allocator >&) ../libs/libhoffstatic.a(CommandLine.o)
int Properties,std::allocator >,std::basic_string,std::allocator > >::getPropertyI(const std::basic_string,std::allocator >&) ../libs/libhoffstatic.a(CommandLine.o)
__rwstd::__rb_tree,std::allocator >,std::pair,std::allocator >,CommandLineArg>,__rwstd::__select1st,std::allocator >,CommandLineArg>,std::basic_string,std::allocator > >,std::less,std::allocator > >,std::allocator,std::allocator >,CommandLineArg> > >::iterator __rwstd::__rb_tree,std::allocator >,std::pair,std::allocator >,CommandLineArg>,__rwstd::__select1st,std::allocator >,CommandLineArg>,std::basic_string,std::allocator > >,std::less,std::allocator > >,std::allocator,std::allocator >,CommandLineArg> > >::erase(__rwstd::__rb_tree,std::allocator >,std::pair,std::allocator >,CommandLineArg>,__rwstd::__select1st,std::allocator >,CommandLineArg>,std::basic_string,std::allocator > >,std::less,std::allocator > >,std::allocator,std::allocator >,CommandLineArg> > >::iterator,__rwstd::__rb_tree,std::allocator >,std::pair,std::allocator >,CommandLineArg>,__rwstd::__select1st,std::allocator >,CommandLineArg>,std::basic_string,std::allocator > >,std::less,std::allocator > >,std::allocator,std::allocator >,CommandLineArg> > >::iterator) ../libs/libhoffstatic.a(CommandLine.o)
void Properties,std::allocator >,CommandLineArg>::add(const std::basic_string,std::allocator >&,const CommandLineArg&,bool) ../libs/libhoffstatic.a(CommandLine.o)
std::list,std::allocator >,std::allocator,std::allocator > > >::iterator std::list,std::allocator ...
..etc...