Unable to include Teradata header files in TURBO C

October 19, 2012 at 03:28:21
Specs: Windows 7
I am trying to create a UDF in Teradata .UDF's are written in C Language.But while trying to include Teradata Header File in C Program, am facing error message "Unable to open include fIle 'SQLTYPES_TD.H' ".

See More: Unable to include Teradata header files in TURBO C

Report •


#1
October 19, 2012 at 03:40:44
Check that the header file is located in one of the directories listed in the INCLUDE environment variable.

Report •

#2
October 20, 2012 at 07:31:05
Hi ijack,
The header file 'sqltypes_td.h' is not there in the directories listed in the INCLUDE environment variable.Instead its there in the etc folder of the Teradata. I have given the path of the header file in the C program as below
"C:\Program Files\Teradata\Tdat\TDBMS\13.00.00.12\etc\sqltypes_td.h"
But still am getting an error "Unable to open include fIle 'SQLTYPES_TD.H' ".



Report •

#3
October 20, 2012 at 07:37:58
Try adding that location to the INCLUDE variable. I'm surprised it's in a directory called "etc"; most SDKs use an "include" directory.

Report •

Related Solutions

#4
October 21, 2012 at 23:38:27
I have added header file in the include folder of TC.But still it is showing the error "unable to open include file 'C:\TC\include\SQLTYPES_TD.H' ."

Report •

#5
October 21, 2012 at 23:58:38
That doesn't make sense. Can you open the file in, for example, notepad?

Edit: Just had a thought. Is this the DOS version of Turbo C? If so it will ony recognize 8.3 filenames. Either use a more modern compiler, rename the header file to a shorter name, or use the 8.3 short version of that long filename.


Report •

#6
October 22, 2012 at 03:07:38
On thinking further about your question, I'm pretty sure that you need to use Microsoft's C++ compiler to develop UDFs on Windows. I don't think that Turbo C is going to do the job, especially if it is the 16-bit DOS version.

Report •

#7
October 24, 2012 at 23:14:23
Yes ijack, am able to open the file in notepad and am using Microsoft's C++ compiler.It is not DOS-box.

Report •

#8
October 25, 2012 at 01:00:30
Now I'm confused.Your subject heading says Turbo C; that is not Microsoft's compiler.

If you are using the Microsoft compiler and still get the error I have no explanation


Report •

Ask Question