Hello, your gcc link call links against the wrong library. You should link with -lpcrl not with -lsqlod
Regards Burkhard -----Urspr�ngliche Nachricht----- Von: zhouyan [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 19. April 2005 08:00 An: [email protected] Betreff: About cpc && gcc My DB id "test",user is dba,passwd is dba. My code contain likes below: //================myprogram.c=================== exec sql begin declare section; char *name = pchrchr; exec sql end declare section; AUTHID("DBA"); //connect database db1 Your exec sql insert into test1 values (4,:name); if(SQLCODE != 0) printf("SQL ERRER !! SQLCODE = %d\n",SQLCODE); else printf("SQL SUCCESS !!\n"); //================================================== Compile: cpc -d test -u dba,dba myprogram cpclnk myprogram This programs run successlly; But the program run err when compile by this way: cpc -d db1 -u dba,dba -c myprogram gcc -o myprogram myprogram.c -I/opt/sdb/programs/sdk/7500/incl -L/opt/sdb/programs/sdk/7500/lib -lsqlca -L/opt/sdb/programs/lib -lsqlod This program run with core. Please tell me how the program run successlly with compile by gcc -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]
