Sample program issues  Static page caching

Release Bulletin Sybase® Enterprise Portal Enterprise Edition Version 5.0 for Sun Solaris

Makefile for C components

[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:

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:

  1. 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) $<
    
  2. 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. Static page caching

View this release bulletin as PDF