Page 1 of 1

Transformer Compilation problem

Posted: Thu May 21, 2009 5:58 am
by anand_dafaria
Hi
I have installed Information server V 8.1 on Windows XP. We got C++ software litle late a as such installed Microsoft Visual Studio 2005 after installing Datastage server. Now server is running fine but the compiler is giving issue and transformer is not getting compiled. According to the documentation also I installed SDK(Microsoft Platform SDK for Windows Server 2003), I couldnt find SDK for Windows XP.

The compiler options are set as:

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

Please sugest accordingly

Thanks

I'm getting below error:

********************************************************
Output from transformer compilation follows:

##I IIS-DSEE-TFCN-00001 17:16:24(000) <main_program>
IBM WebSphere DataStage Enterprise Edition 8.1.0.4987
Copyright (c) 2001, 2005-2008 IBM Corporation. All rights reserved



##I IIS-DSEE-TFCN-00006 17:16:24(001) <main_program> conductor uname: -s=Windows_NT; -r=1; -v=5; -n=IBM-49135B17F34; -m=Pentium
##I IIS-DSEE-TOSH-00002 17:16:24(002) <main_program> orchgeneral: loaded
##I IIS-DSEE-TOSH-00002 17:16:24(003) <main_program> orchsort: loaded
##I IIS-DSEE-TOSH-00002 17:16:24(004) <main_program> orchstats: loaded
##W IIS-DSEE-TOSH-00049 17:16:24(007) <main_program> Parameter specified but not used in flow: DSPXWorkingDir
##E IIS-DSEE-TBLD-00076 17:16:29(000) <main_program> Error when checking composite operator: Subprocess command failed with exit status 24,576.
##E IIS-DSEE-TFSR-00019 17:16:29(001) <main_program> Could not check all operators because of previous error(s)
##W IIS-DSEE-TFTM-00012 17:16:29(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 17:16:29(003) <main_program> Error when checking composite operator: Output from subprocess: C:\IBM\InformationServer\Server\PXEngine\include\apt_util/keylookup.h(1148) : warning 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
]
C:\IBM\InformationServer\Server\Projects\test\RT_BP2.O\V0S3_test_transformer_Transformer_3.C(178) : warning C4101: 'output' : unreferenced local variable
C:\IBM\InformationServer\Server\Pro
##I IIS-DSEE-TBLD-00000 17:16:29(004) <main_program> Error when checking composite operator: Output from subprocess: jects\test\RT_BP2.O\V0S3_test_transformer_Transformer_3.C(173) : warning C4101: 'input' : unreferenced local variable

##I IIS-DSEE-TBLD-00079 17:16:29(005) <transform> Error when checking composite operator: cxx -LC:/IBM/InformationServer/Server/Projects/test/RT_BP2.O/ -LC:/IBM/InformationServer/Server/PXEngine/lib -LC:/IBM/InformationServer/Server/PXEngine/user_lib -s -W/dll -W/base:0x50000000 -lliborchnt -lliborchcorent -lliborchbuildopnt C:/IBM/InformationServer/Server/Projects/test/RT_BP2.O/V0S3_test_transformer_Transformer_3.tmp.o -o C:/IBM/InformationServer/Server/Projects/test/RT_BP2.O/V0S3_test_transformer_Transformer_3.dll.
##I IIS-DSEE-TBLD-00000 17:16:29(006) <main_program> Error when checking composite operator: Output from subprocess: V0S3_test_transformer_Transformer_3.tmp.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall APT_BasicString<wchar_t>::~APT_BasicString<wchar_t>(void)" (__imp_??1?$APT_BasicString@_W@@QAE@XZ) referenced in function __unwindfunclet$??_EAPT_UString@@QAEPAXI@Z$0
V0S3_test_transformer_Transformer_3.tmp.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl APT_BasicString<wchar_t>::operator delete(void *)" (__imp_??3?$APT_BasicString@
##I IIS-DSEE-TBLD-00000 17:16:29(007) <main_program> Error when checking composite operator: Output from subprocess: _W@@SAXPAX@Z) referenced in function "public: void * __thiscall APT_UString::`vector deleting destructor'(unsigned int)" (??_EAPT_UString@@QAEPAXI@Z)
V0S3_test_transformer_Transformer_3.tmp.o : error LNK2019: unresolved external symbol "__declspec(dllimport) private: void __thiscall APT_BasicString<wchar_t>::dtor(void)" (__imp_?dtor@?$APT_BasicString@_W@@AAEXXZ) referenced in function "public: void * __thiscall APT_UString::`vector deleting destructor'(unsigned int)" (??_EAPT_UString@@QAEPAXI@Z)
C:\IBM\In
##I IIS-DSEE-TBLD-00000 17:16:29(008) <main_program> Error when checking composite operator: Output from subprocess: formationServer\Server\Projects\test\RT_BP2.O\V0S3_test_transformer_Transformer_3.dll : fatal error LNK1120: 3 unresolved externals

##E IIS-DSEE-TCOS-00029 17:16:29(009) <main_program> Creation of a step finished with status = FAILED. (test_transformer.Transformer_3)

*** Internal Generated Transformer Code follows:
0001: //
0002: // Generated file to implement the V0S3_test_transformer_Transformer_3 transform operator.
0003: //
0004:
0005: // define our input/output link names
0006: inputname 0 DSLink2;
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

Posted: Thu May 21, 2009 4:22 pm
by ray.wurlod
The compiler needs to be installed before DataStage server.

Posted: Thu May 21, 2009 10:28 pm
by anand_dafaria
Ray,
Thanks for your reply. One quick question, am I correct in installing the mentioned SDK and iniitiating the LIB and INCLUDE environment variables???

Posted: Thu May 21, 2009 10:31 pm
by ray.wurlod
It is correct that you need to do so. Whether you did so correctly remains to be seen.

Posted: Fri May 22, 2009 5:51 am
by nagarjuna
Use the search option , this type of problem has been discussed many times previously

Posted: Fri May 22, 2009 7:40 am
by anand_dafaria
Hi Ray,
Thanks for your suggestion. Transformer is geting compiled correctly