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]

linking with errno


I get the following error message when trying to link some files using gcc

comd.o(.text+0x1abf):comd.c: undefined reference to `errno'

What cygwin thing must I install, and what file/library must I include on
the gcc command line to access this variable?

Some command lines that may be relevent are shown next...

example compile:
	gcc -O -DUNIX -DTERMCAP -DLINUX -DANSIC   -c -o sedt.o sedt.c
(Various files all compile with no apparent problem)

linking:
	gcc -O -DUNIX -DTERMCAP -DLINUX -DANSIC sedt.o edit.o (...etc...)
		-ltermcap  -o sedt

I tried adding various library files (e.g. -lcygwin) but I haven't figured
out which one is the one I need to link with to get errno, or perhaps
something entirely different is what I need to do (?) . 

Thanks for any assistance...

malcolm



--
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]