boehm-gc: Length of .comm "_C" [[ problem found, how do I fix it? ]]
Adam Megacz
gcj@lists.megacz.com
Tue Dec 11 20:20:00 GMT 2001
I did a gcc -E, grabbed the output, and then just started deleting
stuff off the end until it compiled (binary search). The critical line
is:
GC_API CRITICAL_SECTION GC_allocate_ml;
Hrm, let's expand that GC_API (from gc.h):
# define GC_API __declspec(dllimport)
Commenting out the above line causes the compile to run cleanly to
completion. Whether or not it's going to barf everywhere when I try to
run it is another matter... =)
Can anybody comment on:
1. The exact semantics of __declspec(dllimport)? I understand
__declspec(dllexport)... is dllimport how you declare functions
defined in as-yet-to-be-linked-with DLL's? I somehow doubt that
GC_allocate_ml is going to be in another (microsoft-supplied)
DLL...
2. Possible hackarounds
3. If this is a gcc code-generation bug (I assume so; no matter
what, gcc's output should assemble...) or a boehm-gc bug?
Thanks!
Oh, and, sorry about the 20799 line message I sent to the list...
- a
More information about the Java
mailing list