Pro-c Help needed

Hi all....

am new to the Pro-c programming...

am running my proc pgm in HP-UX os...

i tried to execute a small pgm in pro-c to connect to Oracle Database..

i pre-compiled it without errors using the following command

$: proc connect3.pc include=/local/apps/oracle/product/8.1.7.4/precomp/public/

when i compiled it it shows the following warnings nd errors..

$: cc -I/local/apps/oracle/product/8.1.7.4/precomp/public/

Warning: /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (connect3.o) was detected.

/usr/ccs/bin/ld: Unsatisfied symbols:

sqlcxt (code)

MY program is given below

#include <stdio.h>

#include <sqlca.h>

#defineUNAME_LEN20

#definePWD_LEN40

VARCHARusername[UNAME_LEN];

VARCHARpassword[PWD_LEN];

void main()

{

strncpy((char *) username.arr, "zuakura", UNAME_LEN);

username.len = strlen((char *) username.arr);

strncpy((char *) password.arr, "dev456", PWD_LEN);

password.len = strlen((char *) password.arr);

EXEC SQL CONNECT :username IDENTIFIED BY :password;

printf("Connected to the database as user: %s\n", username.arr);

}

Please Help me to correct these errors...\

Thanks in advance

Mansoor

[1313 byte] By [pro-c@world] at [2007-11-26 8:50:09]
# 1
This looks more like a question to Oracle or HP than Sun.
MaximKartashev at 2007-7-6 22:40:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...