[CR #272553] When you generate stubs and skeletons for a package that contains C components, the make.unix file may be generated with incorrect file names. For example, with these files:
/sybase/EAServer/cpplib/cPkg/cComp.h
/sybase/EAServer/cpplib/cPkg/cComp.c
/sybase/EAServer/cpplib/cPkg/create.c
/sybase/EAServer/cpplib/cPkg/destroy.c
/sybase/EAServer/cpplib/cPkg/method1.c
/sybase/EAServer/cpplib/cPkg/method2.c
/sybase/EAServer/cpplib/cPkg/make.unix
make.unix can contain these lines:
LIB_OBJECTS = impl.o skel.o impl.o: impl.hpp $(CC) $(CCFLAGS) $(CCINCLUDE) -c impl.cpp skel.o: impl.hpp skel.cpp $(CC) $(CCFLAGS) $(CCINCLUDE) -c skel.cpp
Workaround: Make these changes to the make.unix file:
Replace the line LIB_OBJECTS = impl.o
skel.o
with these lines:
LIB_OBJECTS = create.o destroy.o method1.o method2.o cComp.o .c.o: $(CC) $(CCFLAGS) $(CCINCLUDE) $<
Remove these lines:
impl.o: impl.hpp $(CC) $(CCFLAGS) $(CCINCLUDE) -c impl.cpp skel.o: impl.hpp skel.cpp $(CC) $(CCFLAGS) $(CCINCLUDE) -c skel.cpp
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |