Hi!

Im trying to compile a .c file generated from the sqlpp precompiler. But the cc compiler (from Solaris Sun Machine) shows me several error messages (with functions "dbpp_connect_40" and "strncpy"). This messages error has this style: "reference symbols error. Theres no output in a.out". I thinks Its a problem about libreries and include files. Can you help me?. Thanks


---------This is the .c file -----------------------


define _SQL_OS_UNIX
// *************************************************
// ********* GENERATED FILE - DO NOT EDIT! *********
// *************************************************

#define _SQL_SQLPP_VERSION_MAJOR 7
#define _SQL_SQLPP_VERSION_MINOR 0
#define _SQL_SQLPP_VERSION_MAINT 2
#define _SQL_SQLPP_DBLIB_VERSION 7
#include <stdio.h>


/* EXEC SQL INCLUDE SQLCA; */
#include "/opt/sybase/asiq12/include/sqlca.h"
#ifdef __cplusplus
extern "C" {
#endif
extern SQLCA sqlca;
extern SQLCA _fd_ *sqlcaptr;
extern short int _ESQL_Version7_;
extern short int _ESQL_OS_UNIX_;
#ifdef __cplusplus
}
#endif
#include "/opt/sybase/asiq12/include/sqlda.h"
static char __SQLV_segundo_1[] = "DBA";
static char __SQLV_segundo_2[] = "SQL";

/* EXEC SQL INCLUDE SQLDA; */

#include "/opt/sybase/asiq12/include/sqldef.h"

main() {


/* EXEC SQL CONNECT "DBA" IDENTIFIED BY "SQL"; */
{
dbpp_connect_40( (sqlcaptr), __SQLV_segundo_1, __SQLV_segundo_2, SQLNULL, SQLNULL, SQLNULL );

#ifdef __SQLCODE
SQLCODE = __SQLCODE;
#endif
#ifdef __SQLSTATE
strncpy(SQLSTATE,__SQLSTATE,6);
#endif
}


return(0);
}