delorie.com/archives/browse.cgi | search |
> Urk. I love these types of comments ;-) > Here's what hello.o looks like when hello.c uses > __declspec(dllimport) (and hwstr.c uses __declspec(dllexport)). > Recall that this configuration works as expected. Right, because we're effectively telling gcc that hwstr1 is a pointer, not an array. That changes how gcc generates code. Pointers must be indexed at runtime, arrays may be indexed at compile time. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |