This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problem with ld in cygwin


Hi,

I'm trying to compile the modules for metahtml-6.11.01 on cygwin under Windows 
95/98.  I'm not very familiar with teh ld command, but it seems that the 
problem has to do with the line ld -o example.o example.so... the following 
error message results:

ld   -o example.so example.o
ld: warning: cannot find entry symbol _mainCRTStartup; defaulting to 00401000
example.o(.text+0x64):example.c: undefined reference to `sprintf'
example.o(.text+0x6d):example.c: undefined reference to `symbol_intern'
example.o(.text+0x98):example.c: undefined reference to `mhtml_function_package'
example.o(.text+0x9e):example.c: undefined reference to 
`symbol_intern_in_package'
example.o(.text+0xb6):example.c: undefined reference to `symbol_add_value'
example.o(.text+0x125):example.c: undefined reference to `get_positional_arg'
example.o(.text+0x12b):example.c: undefined reference to `mhtml_evaluate_string'
example.o(.text+0x14e):example.c: undefined reference to `regcomp'
example.o(.text+0x156):example.c: undefined reference to `AllPackages'
example.o(.text+0x163):example.c: undefined reference to `AllPackages'
example.o(.text+0x18c):example.c: undefined reference to `symbols_of_package'
example.o(.text+0x21e):example.c: undefined reference to `regexec'
example.o(.text+0x244):example.c: undefined reference to `bprintf_insert'
example.o(.text+0x2b1):example.c: undefined reference to `AllPackages'
example.o(.text+0x2df):example.c: undefined reference to `regfree'
example.o(.text+0x2ee):example.c: undefined reference to `free'
make[1]: *** [example.so] Error 1
make[1]: Leaving directory `/cygdrive/metahtml-6.11.01/modules'
make: *** [modules] Error 2

and from a previous messsage, it seems iI have to link against an import 
library?

Any ideas how I can fix this?

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]