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]

Linking MSVC++ and Cygwin libraries: relocation problems


Hi,

I'm trying to link MSVC++ objects with gcc objects.  In order to resolve
the system calls in my gcc code, I need to bring in Cygwin's libc and
libcygwin.   

The Cygwin FAQ indicates that this is possible, but I'm getting relocation
warnings using Microsoft's linker.  

Has anyone ever done this successfully?

----------------------------------------------------------------------------
 link /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO \
      -entry:_DllMainCRTStartup@12 -dll -ignore:4078 -subsystem:native,4.0 \
      -def:test.def -out:test.dll \
      	test.obj test.res 
	msvcrt.lib oldnames.lib kernel32.lib ws2_32.lib \
	mswsock.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib \
	winspool.lib comctl32.lib netapi32.lib \
	test_gcc_obj.o libc.a libcygwin.a

   Creating library test.lib and object test.exp

LINK : warning LNK4092: shared section ".stab" contains relocations; 
	image may not run correctly

----------------------------------------------------------------------------
test.dll - 0 error(s), 1 warning(s)



Thanks,
Mike



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