>> Edit article
이름
제목
패스워드
드뎌 시작했씁니다 근데 첫날부터 헤매내요^^ 우선 소스하나를 받아서 결과를 보려고 하는데 에러가 나서요 소스는 다음과 같습니다 화일명은 connect.c로 저장 했구요 #include <stdio.h> #include <mysql.h> #include <errno.h> void main(void) { MYSQL mysql ; mysql_init(&mysql) ; if(!mysql_real_connect(&mysql, NULL, "mysql","", NULL ,3306, (char *)NULL, 0)) { printf("%s",mysql_error(&mysql)); exit(1) ; } printf("성공적으로 연결되었습니다.") ; mysql_close(&mysql) ; } [agness11@acebiz public_html]$ gcc -o con connect.c -I/usr/local/mysql/include/ mysql -L/usr/local/mysql/lib/mysql -lmysqlclient connect.c: In function `main': connect.c:6: warning: return type of `main' is not `int' [agness11@acebiz public_html]$ 이런식의 에러 메세지가 뜹니다 어떻게 된건지...... 귀찮게 해드려 죄송합니다만 가르쳐 주시면 고맙겠습니다
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved