Hi
i have a simple C HelloWorld program the code is:
//--------------------------------------------------------
#include<stdio.h>
void main(void)
{
printf("Hello"
}
//--------------------------------------------------------
i compiled it using Script:
echo
echo "--------------------------------------"
echo 'Compiling' $1.c
echo
rm $1.o
cc -I. -I/usr/sybase/OCS-12_0/include -qmaxmem=8192 -O -c $1.c
//--------------------------------------------------------
When i try to link using this script i get an error:
echo 'linking '$1'.o -lcurses active'
cc $1.o $OBJ -lcurses -lm -O -o $1
OUTPUT:
linking Hello.o -lcurses active
ld: 0711-317 ERROR: Undefined symbol: .__C_runtime_startup
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
//--------------------------------------------------------
what am i doing wrong?
thanks ronen.
i have a simple C HelloWorld program the code is:
//--------------------------------------------------------
#include<stdio.h>
void main(void)
{
printf("Hello"
}
//--------------------------------------------------------
i compiled it using Script:
echo
echo "--------------------------------------"
echo 'Compiling' $1.c
echo
rm $1.o
cc -I. -I/usr/sybase/OCS-12_0/include -qmaxmem=8192 -O -c $1.c
//--------------------------------------------------------
When i try to link using this script i get an error:
echo 'linking '$1'.o -lcurses active'
cc $1.o $OBJ -lcurses -lm -O -o $1
OUTPUT:
linking Hello.o -lcurses active
ld: 0711-317 ERROR: Undefined symbol: .__C_runtime_startup
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
//--------------------------------------------------------
what am i doing wrong?
thanks ronen.