Re: copiling error in proc

From: Berny <bernhard.voelker_at_siemens.com>
Date: Fri, 04 Oct 2002 08:39:40 +0200
Message-ID: <anjd3d$3r4$1_at_news.mch.sbs.de>


Ammar wrote:
> heloo im new to proc ... im compiling the demo program under soloaris
> platform .. i have precompiled the sample1.c progra and it was
> precompiled successfullyy now im compiling the program with gcc now im
> getting problem compulinh the precompiled
>
> i have used the command $gcc sample1.c
> sample1.c: In function 'main'
> sample1.c:233: return type of 'main' is not 'int;
> undefined first referenced
> symbol in file
> sqlglm /var/tmp/ccSe160a.o
> sqlcxt /var/tmp/ccSe160a.o
> ld: fatal: Symbol referencing errors. No output written to a.out
> collect2: ld returned 1 exit status

Link with '-lclntsh' and don't forget to tell the linker where it is (either LD_LIBRARY_PATH or -L/path/to/oralce/version/lib).

Berny Received on Fri Oct 04 2002 - 08:39:40 CEST

Original text of this message