Background Image

FORUM

조회 수 21946 추천 수 0 댓글 2
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

7.3에서는 잘 돌아가는데 R.1.4에선 자료를 못넣고 있습니다.
db에 자료를 넣기 위해 c로 만들어 컴파일을 하면 아래와 같은 오류가 떨어집니다.
그래도 db_con.o 파일을 생성되지안 db에 저장이 안됩니다.
대체 어디가 문제인지 몇일째 헤메고 있습니다.

make 파일 내용
----------------------------------
CC=gcc
SMS=/DBl/mysql/lib
SMH=/DB/mysql/include/mysql
CCI=/DB/CUBRID/lib
CCH=/DB/CUBRID/include
CFLAGS = -g -Wall -I. -I$(CCI) -I$(CCH) -I$(SMH)
LDFLAGS = -L$(SMS) -L$(CCI) -lmysqlclient -lcascci -lnsl -lz

DBMAIN_OBJS = db_con.o sms_send.o

EXES = db_con

all: $(EXES)

db_con: $(DBMAIN_OBJS)
 $(CC) -o $@ $(DBMAIN_OBJS) $(LDFLAGS)

clean :
 rm -f db_con.o db_con

오류 메세지
-------------------------------------------------
gcc -g -Wall -I. -I/DB/CUBRID/lib -I/DB/CUBRID/include -I/DB/mysql/include/mysql   -c -o db_con.o db_con.c
gcc -o db_con db_con.o sms_send.o -L/DB/mysql/lib -L/DB/CUBRID/lib -lmysqlclient -lcascci -lnsl -lz
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [db_con] 오류 1

  • ?
    cubebridge 2009.12.05 01:06
    http://www.cubrid.com/zbxe/?mid=bbs_developer_tutorial&category=161
    위의 경로에서 CCI API의 사용법 확인을 부탁드립니다.
  • ?
    cubebridge 2009.12.05 03:16
    db_con.o, sms_send.o 두 파일 중 main함수가 없거나 오타가 있어 발생하는 에러로 보입니다.
    예)
    float man()
    {

    }
    와 같은 형태의 c파일을 컴파일 하면
    $gcc -o tt test.c
    /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crt1.o: In function `_start':
    (.text+0x20): undefined reference to `main'
    collect2: ld returned 1 exit status
    위와 같이 에러가 나옵니다. 질문하신 에러와 동일한 것과 같이 main함수의 이상 유무를 확인하시기 바랍니다.

  1. CUBRID 사용자를 위한 DBeaver 도구 출시 안내

    Date2024.04.23 Byadmin Views136
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4477
    read more
  3. 오라클과의 호환성과 대용량 검색 속도

    Date2009.12.16 By오004 Views26155
    Read More
  4. 오라클에서 max() keep의 기능은 어떻게 변경해야할까요

    Date2021.10.05 By12 Views331
    Read More
  5. 오라클에서 사용하는 날짜 함수에 대해서 문의 할려고요.

    Date2017.09.22 By펌피 Views894
    Read More
  6. 오라클에서 쓰던 달력 쿼리 관련 하여 질문 드립니다.

    Date2018.07.24 ByoSONYo Views646
    Read More
  7. 오라클에서 제공하는 DB 링크

    Date2015.06.04 By아코 Views10
    Read More
  8. 오라클에서 큐브리드 to_DATETIME 질문요 .. ㅠㅠ

    Date2019.02.26 Bykks Views1221
    Read More
  9. 오라클에서 큐브리드 데이터 이관

    Date2016.12.07 By으라챠챠 Views16240
    Read More
  10. 오라클에서 큐브리드 이관 관련 문의

    Date2016.10.28 ByMohikan Views12
    Read More
  11. 오라클에서 큐브리드로 마이그레이션 방법이 있나요?

    Date2009.03.03 By삽질쟁이 Views16004
    Read More
  12. 오라클의 LAG (위 Row 값), LEAD (아래 Row 값) 가져올수 있는 쿼리 대체할만한것이 있나요?

    Date2015.03.29 By거만고양이 Views12419
    Read More
  13. 오라클의 Aggregation Function(집합 함수) 관련 문의

    Date2013.11.14 By샤방석이 Views24635
    Read More
  14. 오라클의 SUBSTRB 기능 문의

    Date2023.12.26 By방글이 Views110
    Read More
  15. 오라클의 USER_CONSTRAINTS

    Date2013.10.28 Byagkim Views9283
    Read More
  16. 오라클의 contains()문과 비슷한 기능을 소개해주세요

    Date2009.02.17 By타이거팀 Views36307
    Read More
  17. 오라클의 listagg 기능이 큐브리드에 있을까요?

    Date2018.11.21 By위니텍 Views1264
    Read More
  18. 오라클의 with 테이블명 as 구문은 큐브리드에서 사용이 안되는지요?

    Date2017.04.06 By최범규 Views9221
    Read More
  19. 오류 관련 문의 드립니다.

    Date2015.05.28 By아코 Views11
    Read More
  20. 오류 관련 문의 드립니다.

    Date2015.05.27 By아코 Views10
    Read More
  21. 오류 꼭 좀 도와주세요 ㅠㅠ

    Date2010.08.25 By딩이 Views9852
    Read More
  22. 오류 메세지 문의 Derived column names are not allowed for simple class specifications.

    Date2023.12.01 By달이맘 Views125
    Read More
Board Pagination Prev 1 ... 139 140 141 142 143 144 145 146 147 148 ... 201 Next
/ 201

Contact Cubrid

대표전화 070-4077-2110 / 기술문의 070-4077-2113 / 영업문의 070-4077-2112 / Email. contact_at_cubrid.com
Contact Sales