This is the mail archive of the cygwin@sourceware.cygnus.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]

Shared Libraries



I've been told that shared libraries under unix can be built with unresolved
externals. Thus, if I were to build a shared library with gcc under a
unix/cygwin system, I would not need a stub library file containing the
routines that I call within my library.

The vendor have me a header file and a Win32 library file (.lib) and nothing
else. The vendor states that under UNIX, no lib is needed. I can't figure
out how to correctly link my shared library as gcc under cygwin still
returns an "unresolved reference error".

I have a vendor-provided header (vendor.h) defining some structures and
functions. I compile my program like so:

	gcc -c my_module.c -o my_module.o
	gcc -shared -o my_module.so my_module.o

I then get an "unresolved reference" error for each function defined in
vendor.h that I call in my_module.c.

Thanks (in advance) a MILLION for any help!

Nick


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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