[Libcgi-general] Compiling sttatic with cgilib
Brought to you by:
rafaelsteil
From: Rafael V. <rr...@ti...> - 2003-06-18 06:17:04
|
I'm trying to use cgilib cross compiled for an ARM platform. But I can't compile static executables because when I add the -static flag to gcc I get the following error: ___________________________ arm-linux-gcc -Wall -L/home/praga/web/cgilib/libcgi-0.8.2/src -I/home/praga/web/cgilib/libcgi-0.8.2/src -static -lcgi form1.c -o ./form1.cgi /tmp/ccHh3lBS.o: En la funci=F3n `main': /tmp/ccHh3lBS.o(.text+0x2c): referencia a `cgi_init' sin definir /tmp/ccHh3lBS.o(.text+0x30): referencia a `cgi_init_headers' sin definir /tmp/ccHh3lBS.o(.text+0x44): referencia a `cgi_include' sin definir /tmp/ccHh3lBS.o(.text+0x4c): referencia a `cgi_include' sin definir /tmp/ccHh3lBS.o(.text+0x54): referencia a `cgi_include' sin definir /tmp/ccHh3lBS.o(.text+0x60): referencia a `cgi_end' sin definir collect2: ld returned 1 exit status make: *** [all] Error 1 ___________________________ (By the way, this happens when I try to compile the example "simple_form") This also happens when I try to compile code for my PC. (The shared version gives me no problem) Any idea on what am I doing wrong. |