Integrating LEIF with an alternate version of SourcePro

Article ID: 1131
Last updated: 07 Feb, 2008
Article ID: 1131
Last updated: 07 Feb, 2008
Revision: 1
Views: 1506
Posted: 01 Jan, 2000
by Dean J.
Updated: 07 Feb, 2008
by Dean J.
Problem


Using the -SourcePro flag, LEIF allows you to generate code which uses SourcePro components.  If you are a SourcePro customer, you may extend your applications with  additional SourcePro features or products, by linking to your own SourcePro libraries.  Or, you may simply want to use LEIF with a version of SourcePro other than the version it was bundled with.





Action


The version of Source Pro you want to use with LEIF must be configured correctly to be compatible with LEIF binaries.  The LEIF user guide (Appendix A1) explains in detail how to create a buildspec using RCB for Source Pro 6.  If you do not already have SourcePro libraries built in a compatible configuration, a new buildspace will have to be created. 

Using your wsdl or schema, generate code and edit the generated makefile as follows:

1. Change the BUILDSPACE variable to point to the Source Pro installation directory.

BUILDSPACE=C:RogueWaveSourceProEd7

2. Add a RW_HOME variable to point to the LEIF installation directory.

RW_HOME= $(RW_HOME)

3. Edit the include line:  

INCLUDES= -I$(BUILDSPACE) -I$(RW_HOME) -I$(SRCDIR)

4. Edit the linker flags:

LINKER_FLAGS=/nologo /LIBPATH:$(BUILDSPACE)lib /LIBPATH:$(RW_HOME)lib

5. And archiver flags:

ARCHIVER_FLAGS=/LIBPATH:$(BUILDSPACE)lib /LIBPATH:$(RW_HOME)lib /dll /out:

6. Update the location of the LEIF libraries 

XSDREQLIBS= $(RW_HOME)/lib/leifcore$(SBTAG).$(LIBSUFFIX) $(RW_HOME)/lib/xmlol$(SBTAG).$(LIBSUFFIX)

7. And compile the code.

Please note the lines above are for illustration purposes from a Windows/MSVC 6.0 makefile.

 

 


This article was:   Helpful | Not helpful
Report an issue
Article ID: 1131
Last updated: 07 Feb, 2008
Revision: 1
Views: 1506
Posted: 01 Jan, 2000 by Dean J.
Updated: 07 Feb, 2008 by Dean J.

Others in this category