Displaying 20 results from an estimated 36 matches for "declspecs".
Did you mean:
declspec
2009 Oct 11
3
[LLVMdev] Problems linking shared library with __declspec(dllexport)
Hi all,
I am trying to use llvm-gcc to link shared libraries on windows/mingw32.
When I try to link libraries that contain functions declared with
__declspec(dllexport) someFunction();
I get the link error:
Cannot export _someFunction: symbol not found
Removing the declspec directive solves the problem, but this is not a
very feasible solution for me.
Using 'regular' gcc does not
2009 Oct 11
0
[LLVMdev] Problems linking shared library with __declspec(dllexport)
> I am trying to use llvm-gcc to link shared libraries on windows/mingw32.
> When I try to link libraries that contain functions declared with
> __declspec(dllexport) someFunction();
>
> I get the link error:
>
> Cannot export _someFunction: symbol not found
dllexport declspec should be put on the function definition, in this
example there is nothing to export - dllexport
2016 Mar 18
2
lld COFF auto-import feature
I read the thread (
http://lists.llvm.org/pipermail/llvm-dev/2016-February/096115.html ).
I think the wonderful feature of the MinGW/Cygwin ld is the option
--enable-auto-import.
The option is limited to COFF, but LINK.exe doesn't have it.
Could we add the feature to lld-link ?
If it is possible, many people will change the coding pattern for using
DLL. -- no more if-def declspec(dllimport)
2015 Oct 14
2
Compiling SAFECode poolalloc in cygwin create different libraries compared to linux.
Hi John,
That worked for me. I am using llvm 3.2 only and following
http://safecode.cs.illinois.edu/docs/Install.html
So for I am able to make inside llvm/projects/poolalloc by doing such
cosmetic changes.
Now, when I tried to make inside llvm/projects/safecode, I see another
error.
kpawar at KPAWAR-LT ~/SAFECode/LLVM_SRC/llvm/projects/safecode
$ /usr/bin/clang -cc1 -triple
2013 Apr 23
0
[LLVMdev] Feedback required on proper dllexport/import implementation
Hi Nico, Reid, and Anton,
I missed the discussion when I implemented dllexport/dllimport for our local tree. I
essentially implemented your approach#1. I was trying to avoid the various
external_linkage + some_attribute approaches because it seems that external_linkage
would imply the external linkage without the dllimport/dllexport semantics, and there
may be existing compiler codes that rely on
2002 Apr 28
2
Building Rgui.exe with Visual Studio
Hi,
I have downloaded and modified the source for rgui - because I wanted to add
a few more custom menus to the GUI. I have almost got it completed, but have
spent the last four hours trying to resolve the following issues (no pun
intended !)
Linking...
R.lib(R.dll) : error LNK2005: _WatchCursor already defined in cursors.obj
R.lib(R.dll) : error LNK2005: _ArrowCursor already defined in
2016 Nov 17
2
Loop invariant not being optimized
I've got an example where I think that there should be some loop-invariant
optimization happening, but it's not. Here's the C code:
#define DIM 8
#define UNROLL_DIM DIM
typedef double InArray[DIM][DIM];
__declspec(noalias) void f1( InArray c, const InArray a, const InArray b )
{
#pragma clang loop unroll_count(UNROLL_DIM)
for( int i=0;i<DIM;i++)
#pragma clang loop
2013 Mar 26
6
[LLVMdev] Feedback required on proper dllexport/import implementation
Hello,
while improving and extending support for dllexport/import I have
noticed that the current way these are implemented is problematic and I
would like some input on how to proceed.
Currently dllexport/dllimport is treated as linkage type. This conflicts
with inlined functions because there is no linkage for the combination
of both. On first though, combining both doesn't make sense, but
2015 Mar 10
2
[LLVMdev] LLVM 3.6: problems building on Windows using MSVC 2013
Ok, I have just found the cause of the error messages I am getting, and it
now makes sense to me why the 'normal' build works fine on Windows, Linux
and OS X, and why my personal build works on Linux and OS X, but not on
Windows. However, I still don't understand why I am getting the error
messages I am getting.
Anyway, it has to do with wanting to export some classes and function,
2015 Jul 16
2
[LLVMdev] [lldb-dev] [3.7 Release] We have branched
On Wed, Jul 15, 2015 at 10:45 AM, Russell Wallace <russell.wallace at gmail.com
> wrote:
> Basic test results on Windows 7, visual studio 2013 (64 bit):
>
> Build clang with visual studio - okay
>
> Build clang with itself - okay
>
> Build Python - okay
>
> Build Ruby - fails on conftest.c, but 3.6 also failed so this is not a
> regression bug
>
> Build
2012 Apr 08
2
[LLVMdev] Building LLVM as a shared library using Visual C++ 2010?
...the code, and we really don't
> > want to deal with maintaining that, as most developers have little to
> > no experience with Windows DLLs.
>
> BTW, you don't put __declspec(dllexport) / __declspec(dllimport) on the
> code, but macros that alternatively expand to those declspecs depending
> on if the library is being compiled or referenced.
I have just realised that I directly replied to Michael rather than the
mailing list (!!), but it was to say the same as Óscar with regards to the
use of a macro. In fact, I am thinking of taking this approach for the
classes that I...
2015 Oct 13
2
Compiling SAFECode poolalloc in cygwin create different libraries compared to linux.
Hi,
On Linux I observed
[root at localhost poolalloc]# find . -name *.a
./Release+Asserts/lib/LLVMDataStructure.a
./Release+Asserts/lib/poolalloc.a
./Release+Asserts/lib/AssistDS.a
./Release+Asserts/lib/libpoolalloc_fl_rt.a
./Release+Asserts/lib/libpoolalloc_rt.a
./Release+Asserts/lib/libpa_pre_rt.a
./Release+Asserts/lib/libcount.a
On cygwin I observed
kpawar at KPAWAR-LT
2015 Jul 24
0
[LLVMdev] [lldb-dev] [3.7 Release] We have branched
On Thu, Jul 16, 2015 at 8:08 AM, Nico Weber <thakis at chromium.org> wrote:
> On Wed, Jul 15, 2015 at 10:45 AM, Russell Wallace <
> russell.wallace at gmail.com> wrote:
>
>> Basic test results on Windows 7, visual studio 2013 (64 bit):
>>
>> Build clang with visual studio - okay
>>
>> Build clang with itself - okay
>>
>> Build Python
2016 Nov 18
2
Loop invariant not being optimized
I tried changing 'noalias' to 'restrict' in the code and I get:
fma.c:17:12: warning: 'restrict' attribute only applies to return values
that are pointers
It seems like 'noalias' would be the correct attribute here, from the
article you linked:
"if a function is annotated as noalias, the optimizer can assume that, in
addition to the parameters themselves,
2017 Sep 08
3
[cfe-dev] [RFC] Open sourcing and contributing TAPI back to the LLVM community
Hi Paul,
My experience has shown the same when it comes to header files and I am not
claiming this is going to work out of the box for all library projects. It
usually requires some cleanup first and that is why the tool comes with a
verification mode to make sure the headers are the truth. Also keep in mind
that you don't have to parse all the headers, but only the small set that
get
2015 Jul 24
2
[LLVMdev] [lldb-dev] [3.7 Release] We have branched
On Fri, Jul 24, 2015 at 12:05 PM, Nico Weber <thakis at chromium.org> wrote:
> On Thu, Jul 16, 2015 at 8:08 AM, Nico Weber <thakis at chromium.org> wrote:
>
>> On Wed, Jul 15, 2015 at 10:45 AM, Russell Wallace <
>> russell.wallace at gmail.com> wrote:
>>
>>> Basic test results on Windows 7, visual studio 2013 (64 bit):
>>>
>>>
2013 Apr 23
2
[LLVMdev] Feedback required on proper dllexport/import implementation
On 23.04.2013 19:10, Gao, Yunzhong wrote:
> I missed the discussion when I implemented dllexport/dllimport for our local tree. I
> essentially implemented your approach#1. I was trying to avoid the various
> external_linkage + some_attribute approaches because it seems that external_linkage
> would imply the external linkage without the dllimport/dllexport semantics, and there
> may
2009 Sep 13
0
[LLVMdev] Saving/restoring executable code from the the JIT?
> My goal is to avoid waiting several minutes on application startup
> until
> optimization and native codegen ends. No suspending/restarting, just
> compiling, saving native generated code, and loading on future sessions,
> more akin a conventional compiler.
>
I'm interested in something like that. I have a case (which seems similar to
one experienced by Nick Capens) where
2009 Oct 12
1
[LLVMdev] Problems linking shared library with __declspec(dllexport)
> > I am trying to use llvm-gcc to link shared libraries on windows/mingw32.
> > When I try to link libraries that contain functions declared with
> > __declspec(dllexport) someFunction();
> >
> > I get the link error:
> >
> > Cannot export _someFunction: symbol not found
> dllexport declspec should be put on the function definition, in this
>
2002 Apr 28
1
Building rgui with Visual C/C++ 6
Hi,
I have downloaded and modified the source for rgui - because I wanted to add
a few more custom menus to the GUI. I have almost got it completed, but have
spent the last four hours trying to resolve the following issue (no pun
intended !)
Linking...
R.lib(R.dll) : error LNK2005: _WatchCursor already defined in cursors.obj
R.lib(R.dll) : error LNK2005: _ArrowCursor already defined in