[cfe-dev] [PATCH] plugin problem on Windows

Óscar Fuentes ofv at wanadoo.es
Tue Apr 5 14:09:22 PDT 2011


John Thompson <john.thompson.jtsoftware at gmail.com> writes:

>> It is -DBUILD_SHARED_LIBS=ON, not -D SHARED_LIBRARY=true.
>>
>
> Oh sorry, I was typing from memory.  But that was one of the iterations I
> tried, and just now retried, with the same hang.  So you are not seeing the
> hang when trying to build any of the generated projects?

BUILD_SHARED_LIBS is not supported on Windows, so there is no point on
trying it.

> BTW, we could really use some extension to the documentation for the options
> available in the cmake stuff.

Like this?

http://www.llvm.org/docs/CMake.html#freccmake

>> What's the difference among indexed and non-indexed exports? The exports
>> file I created was just a list of symbols and the linker failed
>> complaining about the 2^16 limit. Then I read some documents on msdn and
>> the 2^16 limit was mentioned, but nothing about 2^32.
>>
>
> By "indexed" I assume you mean "ordinal".

That was my guess, but it failed without the ordinal too.

[snip]

> In the past, I've always just used the __declspec(export) and
> __declspec(import) directives in the headers for DLLs.  Basically you put
> something like the following in a main header for the library, for example,
> for MyLibrary:
>
[snip]

> I'd be willing to take on this task, if this is the way we want to handle
> it.  If we can't automate the .def file creation, this would probably be the
> better option.

My advice is to describe your intent on the llvm-commits mailing list,
showing an example, and ask if it acceptable.

[snip]



More information about the cfe-dev mailing list