Sample program issues  Static page caching

Release Bulletin Sybase® Enterprise Portal Enterprise Edition Version 5.0 for Windows

Makefile for C components

[CR #272553] When you generate stubs and skeletons for a package that contains C components, the make.nt file may be generated with incorrect file names. For example, with these files:

make.nt file can contain these lines:

LIB_OBJECTS = impl.obj skel.obj

impl.obj: impl.hpp
        cl $(CFLAGS) -Fo$@ -c impl.cpp

skel.obj: impl.hpp skel.cpp
        cl $(CFLAGS) -Fo$@ -c skel.cpp

Workaround: Make the following changes to the make.nt file:

  1. Replace the line LIB_OBJECTS = impl.obj skel.obj with these lines:

    LIB_OBJECTS = create.obj destroy.obj method1.obj method2.obj cComp.obj
    
    .c.obj:
       cl /I. /I$(JAGINC) $(CFLAGS) -Fo$@ -c $<
    
  2. Remove these lines:

    impl.obj: impl.hpp
            cl $(CFLAGS) -Fo$@ -c impl.cpp
    
    skel.obj: impl.hpp skel.cpp
            cl $(CFLAGS) -Fo$@ -c skel.cpp
    




Copyright © 2005. Sybase Inc. All rights reserved. Static page caching

View this release bulletin as PDF