[QUOTE=joyrock;3859116]gcc -DLINUX -ansi -I/home/hirak/apue.2e/include -I/usr/arm-gp2x-linux/include -Wall -D_GNU_SOURCE -L../lib conf.c ../lib/libapue.a -o conf
/usr/lib/gcc/i586-redhat-linux/4.4.0/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
QUOTE]
This error arises if your code does NOT define a main function as follows:
Code:
int main (int argc, char *argv[])
{
// call your other functions
return 0;
}
Alternatively, you could leave the parameters from main ...
- Andi -