Setting Compiler options

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
dstest
Participant
Posts: 66
Joined: Sun Aug 19, 2007 10:52 pm

Setting Compiler options

Post by dstest »

I installed Visual Studio .NET 2008 Express Edition C++ .Still i am unable to compile parallel jobs with transformer.Can any one please tell what are the values i need to user for the following env variables.


APT_COMPILEOPT
APT_COMPILER
APT_LINKER
APT_LINKOPT

Thanks for your help
lstsaur
Participant
Posts: 1139
Joined: Thu Oct 21, 2004 9:59 pm

Post by lstsaur »

Either .NET 2003 or .NET 2005 C++ compiler works for DS 8.0.1. But not .NET 2008.
dstest
Participant
Posts: 66
Joined: Sun Aug 19, 2007 10:52 pm

Post by dstest »

Now i installed VisualC++ 2005 express editiotion.Still I am getting the following error.

Output from transformer compilation follows:

##I IIS-DSEE-TFCN-00001 16:39:11(000) <main_program>
IBM WebSphere DataStage Enterprise Edition 8.0.1.4458
Copyright (c) 2001, 2005-2007 IBM Corporation. All rights reserved



##I IIS-DSEE-TOSH-00002 16:39:11(001) <main_program> orchgeneral: loaded
##I IIS-DSEE-TOSH-00002 16:39:11(002) <main_program> orchsort: loaded
##I IIS-DSEE-TOSH-00002 16:39:11(003) <main_program> orchstats: loaded
##W IIS-DSEE-TOSH-00049 16:39:11(006) <main_program> Parameter specified but not used in flow: DSPXWorkingDir
##E IIS-DSEE-TBLD-00076 16:39:21(000) <main_program> Error when checking composite operator: Subprocess command failed with exit status 20,480.
##E IIS-DSEE-TFSR-00019 16:39:21(001) <main_program> Could not check all operators because of previous error(s)
##W IIS-DSEE-TFTM-00012 16:39:21(002) <transform> Error when checking composite operator: The number of reject datasets "0" is less than the number of input datasets "1".
##I IIS-DSEE-TBLD-00000 16:39:21(003) <main_program> Error when checking composite operator: Output from subprocess: G:/PROGRA~1/MKSTOO~1/include\nutc/stdarg.h(55) : warning C4005: '_APALIGN' : macro redefinition
G:/Program Files/Microsoft Visual Studio 8/VC/include\vadefs.h(84) : see previous definition of '_APALIGN'
G:/PROGRA~1/MKSTOO~1/include\nutc/stdarg.h(61) : warning C4005: '_INTSIZEOF' : macro redefinition
G:/Program Files/Microsoft Visual Studio 8/VC/include\vadefs.h(101) : see previous definition of '_INTSIZEOF'
G:\IBM\InformationServer\Server\PXEngine\include\apt_util/keylookup.h(1148) : war
##I IIS-DSEE-TBLD-00000 16:39:21(004) <main_program> Error when checking composite operator: Output from subprocess: ning C4251: 'APT_KeyLookupRange::rangeOptions_' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'APT_KeyLookupRange'
with
[
_Ty=APT_KeyLookupRange::rangeOption
]
G:\IBM\InformationServer\Server\Projects\DS_TEST\RT_BP2.O\V0S21_TXTest_Transformer_21.C(313) : warning C4244: '=' : conversion from 'APT_Int64' to 'int', possible loss of data

##I IIS-DSEE-TBLD-00079 16:39:21(005) <transform> Error when checking composite operator: cxx -s -W/dll -LG:/IBM/InformationServer/Server/Projects/DS_TEST/RT_BP2.O/ -LG:/IBM/InformationServer/Server/PXEngine/lib -LG:/IBM/InformationServer/Server/PXEngine/user_lib -lliborchnt -lliborchcorent -lliborchbuildopnt G:/IBM/InformationServer/Server/Projects/DS_TEST/RT_BP2.O/V0S21_TXTest_Transformer_21.tmp.o -o G:/IBM/InformationServer/Server/Projects/DS_TEST/RT_BP2.O/V0S21_TXTest_Transformer_21.dll.
##I IIS-DSEE-TBLD-00000 16:39:21(006) <main_program> Error when checking composite operator: Output from subprocess: LINK : fatal error LNK1104: cannot open file 'uuid.lib'

##E IIS-DSEE-TCOS-00029 16:39:21(007) <main_program> Creation of a step finished with status = FAILED. (TXTest.Transformer_21)

*** Internal Generated Transformer Code follows:
0001: //
0002: // Generated file to implement the transform operator.
0003: //
0004:
0005: // define our input/output link names
0006: inputname 0 DSLink3;
0007: outputname 0 DSLink4;
0008:
0009: initialize {
0010: // define our row rejected variable
0011: int8 RowRejected0;
0012:
0013: // define our null set variable
0014: int8 NullSetVar0;
0015:
0016: }
0017:
0018: mainloop {
0019: // initialise our row rejected variable
0020: RowRejected0 = 1;
0021:
0022: // evaluate columns (no constraints) for link: DSLink4
0023: writerecord 0;
0024: RowRejected0 = 0;
0025: }
0026:
0027: finish {
0028: }
0029:
*** End of Internal Generated Transformer Code
DS_FocusGroup
Premium Member
Premium Member
Posts: 197
Joined: Sun Jul 15, 2007 11:45 pm
Location: Prague

Re: Setting Compiler options

Post by DS_FocusGroup »

I got the same error while compiling a job having SCD stage,after installing the VC++ compiler i changed the default values of compiler environment variables in my Administrator client

FROM

APT_COMPILEOPT=-W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c -W/Zc:wchar_t-
APT_LINKOPT =-s -W/dll -W/base:0x50000000 -W/Zc:wchar_t-

TO

APT_COMPILEOPT=-W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c
APT_LINKOPT =-s -W/dll -W/base:0x50000000

And its worked
Post Reply