error compiling parallel routine

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
kirankota79
Premium Member
Premium Member
Posts: 315
Joined: Tue Oct 31, 2006 3:38 pm

error compiling parallel routine

Post by kirankota79 »

can some one please tell me where the problem is. My c++ routine is compiling without any problem from visual studio. But not compiling in the transformer. Please let me know:


Output from transformer compilation follows:

##I TFCN 000001 15:21:14(000) <main_program>
Ascential DataStage(tm) Enterprise Edition 7.5
Copyright (c) 2004, 1997-2004 Ascential Software Corporation.
All Rights Reserved


##I TOSH 000002 15:21:14(001) <main_program> orchgeneral: loaded
##I TOSH 000002 15:21:14(002) <main_program> orchsort: loaded
##I TOSH 000002 15:21:14(003) <main_program> orchstats: loaded
##E TBLD 000000 15:21:17(000) <main_program> Error when checking composite operator: Subprocess command failed with exit status 24576
##E TFSR 000019 15:21:17(001) <main_program> Could not check all operators because of previous error(s)
##W TFCP 000000 15:21:17(002) <transform> Error when checking composite operator: The number of reject datasets "0"is less than the number of input datasets "1".
##I TBLD 000000 15:21:17(003) <main_program> Error when checking composite operator: Output from subprocess: D:\Ascential\DataStage\Projects\VzW_HRPayroll\RT_BP2.O\V0S2_ConvertBaid_Transformer_2.C(237) : warning C4244: '=' : conversion from 'APT_Int64' to 'int', possible loss of data

##I TFCP 000008 15:21:17(004) <transform> Error when checking composite operator: cxx -LD:/Ascential/DataStage/Projects/VzW_HRPayroll/RT_BP2.O/ -LD:/Ascential/DataStage/PXEngine/lib -LD:/Ascential/DataStage/PXEngine/user_lib -W/TP -W/dll -W/base:0x50000000 -lliborchnt -lliborchcorent -lliborchbuildopnt D:\\DataMasking\\VzW_HRPayroll\\baid.o D:/Ascential/DataStage/Projects/VzW_HRPayroll/RT_BP2.O/V0S2_ConvertBaid_Transformer_2.tmp.o -o D:/Ascential/DataStage/Projects/VzW_HRPayroll/RT_BP2.O/V0S2_ConvertBaid_Transformer_2.dll
##I TBLD 000000 15:21:17(005) <main_program> Error when checking composite operator: Output from subprocess: LINK : warning LNK4224: /DEBUGTYPE:BOTH is no longer supported; ignored

##I TBLD 000000 15:21:17(006) <main_program> Error when checking composite operator: Output from subprocess: V0S2_ConvertBaid_Transformer_2.tmp.o : error LNK2019: unresolved external symbol "char * __cdecl baid(char *,char *)" (?baid@@YAPADPAD0@Z) referenced in function "protected: virtual void __thiscall APT_TransformOperatorImplV0S2_ConvertBaid_Transformer_2::processInputRecord(int)" (?processInputRecord@APT_TransformOperatorImplV0S2_ConvertBaid_Transformer_2@@MAEXH@Z)
D:\Ascential\DataStage\Projects\VzW_HRPayroll\RT_BP2.O\V0S2_ConvertBaid_Transformer_2.dll : fatal error LNK1120: 1 unresolved externals

##E TCOS 000029 15:21:17(007) <main_program> Creation of step finished with status = FAILED (ConvertBaid.Transformer_2)

*** Internal Generated Transformer Code follows:
0001: //
0002: // Generated file to implement the V0S2_repos_Transformer_2 transform operator.
0003: //
0004:
0005: // define external functions used
0006: extern string baid(string inbaid,string outbaid);
0007:
0008: // define our input/output link names
0009: inputname 0 DSLink3;
0010: outputname 0 DSLink4;
0011:
0012: initialize {
0013: // define our row rejected variable
0014: int8 RowRejected0;
0015:
0016: // define our null set variable
0017: int8 NullSetVar0;
0018:
0019: // Stage variable declaration and initialisation
0020: string StageVar0_StageVar;
0021: StageVar0_StageVar = "";
0022: }
0023:
0024: mainloop {
0025: // initialise our row rejected variable
0026: RowRejected0 = 1;
0027:
0028: // declare our intermediate variables for this section
0029: string InterVar0_0;
0030:
0031: // evaluate the stage variables first
0032: InterVar0_0 = baid(DSLink3.baid , StageVar0_StageVar);
0033: StageVar0_StageVar = InterVar0_0;
0034:
0035: // evaluate columns (no constraints) for link: DSLink4
0036: writerecord 0;
0037: RowRejected0 = 0;
0038: }
0039:
0040: finish {
0041: }
0042:
*** 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: error compiling parallel routine

Post by DS_FocusGroup »

Install the C++ compiler version 2003 and try to remove the last few values from compiler environment variables,as i did when i got the same error message while compiling my job with range lookup

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 it worked , hope it will also worked for your problem
kirankota79
Premium Member
Premium Member
Posts: 315
Joined: Tue Oct 31, 2006 3:38 pm

Post by kirankota79 »

thanks...Also can you suggest what i need to do for the following problem

viewtopic.php?t=119960&start=0&postdays ... ree+memory

Thanks
Post Reply