compile a program in C with teradata sentences using cc

hi,

I want to compile a program in C. It have a multiple calls to teradata. I have no idea how to compile in Aix.

The compiler that I should be use is cc.

I tried

cc -G -KPIC tdsfbd0358.c this generates a tdsfbd0358.i and after I have no Idea what I have to make, a link? how? help please?

Here, I show a sample code of sentences that my program has

void Fin (int rc) {
if (rc != 0 && ProcessId > 0) {
EXEC SQL RollBack; if (SQLCODE != 0) rc = -2048;
Num = rc;
EXEC SQL Update TSFMARNU Set COD_RC = :Num
,TIM_FMODIFIC = Current_TimeStamp
Where COD_ID = :ProcessId;
if (SQLCODE != 0) rc = 199;
EXEC SQL Commit; if (SQLCODE != 0) rc = 199;
}
Mssg (23, Cnt_Total);
Mssg (21, rc);
EXEC SQL LOGOFF;
exit (rc);
}
/*

I'm looking in forum and I don't found nothing

Thanks and sorry my bad english

All compilers call themselves cc, that doesn't tell us what it actually is.

If an .i means the same on your system as it does on mine, it hasn't even been compiled yet, all it did was preprocess. The .i still contains human-readable source code.

I don't know any more, the code is the less important. Somebody in my work change the library of teradata y the program should be recompiled for correctly work.

The code not has change. I only need to recompile and I don't idea of how to do it.

Thanks

Yes, it is important, because that code as posted looks nothing at all like normal C++ and probably needs proprietary extensions or at the very least extra processing steps of which we have no knowledge. Did they not give you a makefile or anything? Try 'make'.