compilation

More than one instance of overloaded function

断了今生、忘了曾经 提交于 2019-12-11 15:14:13
问题 I am trying to compile a library that uses CUDA, on an Ubuntu system using CUDA 8.0 and clang 3.8. The library includes Eigen headers in several *.cu files, which apparently includes the cmath header, causing an ambiguity in the CUDA headers. /usr/local/cuda-8.0/include/cuda_fp16.h(3068): error: more than one instance of overloaded function "isinf" matches the argument list: function "std::isinf(float)" function "isinf(float)" argument types are: (float) CUDA defines its own __device__ ​ _

How can I reduce the size of a compiled Delphi code? [duplicate]

南楼画角 提交于 2019-12-11 15:11:50
问题 This question already has answers here : EXE Size is too big in Delphi XE2 (2 answers) Closed 6 years ago . I just wrote a really short and simple code in Delphi with no even arrays neither data structures and when I compile it I get a 11 MB exe file , it was compiled for 32 bits architecture under RAD Studio X3 IDE for 64 bits. I think this isn't optimal , even a jar would weigh less! Are there any settings I can do so I get a smaller compiled? Maybe any units I can dismiss in the code? 回答1:

Vim failing to compile with python on OS X

老子叫甜甜 提交于 2019-12-11 14:51:56
问题 I've been trying to compile vim 7.3 with python 2.7 support on mac OS X 10.6 . Vim itself compiles fine, but the embedded python not so much. The steps I've taken: hg clone https:/vim.googlecode.com/hg/ vim cd vim/src ./configure --without-x --disable-gui --disable-darwin \ --enable-pythoninterp --with-features=huge make make install That gives me a working vim but without python. The auto/config.log indicates there's a file error: configure:5387: checking if compile and link flags for Python

JavaEE compiling files

一笑奈何 提交于 2019-12-11 14:19:48
问题 I feel like a 4-year old who has a slice of bread with pb and a slice with jelly and is asking how to make a sandwich.. I've been given the responsibility of maintaining a javaEE website that was done by our parent company that no loner supports us. I'm relatively new to JavaEE and I'm trying to figure out how to recompile the files that need to be modified from within the root folder of the site. I downloaded NetBeans to help me with this, but still can't figure it out. My problem is that

Static links - how to determine the number of steps to reach an outer scope local?

不想你离开。 提交于 2019-12-11 13:56:54
问题 I've been reading about using static (aka access) links to implement nested procedures. I have no trouble understanding the concept except how to determine how many "hops" are needed to reach the stack frame of the function that contains the local we want to access. Many sources - among them, this PDF handout (page 4) - list two cases: Suppose f calls g. Let nf = nesting level of f and ng = nesting level of g. We now have two cases: 1) nf < ng --- the callee is nested more deeply than the

Cython compile to exe, Windows

回眸只為那壹抹淺笑 提交于 2019-12-11 13:53:04
问题 I'm having trouble compiling Cython generated C code to an EXE on Windows. Windows 10 Python 3.5, 32bit, Anaconda Visual Studio 14.0 Using this stackoverflow thread, I was able to convert test.py to test.c using the command line: Python C:\Anaconda3\Scripts\cython-script.py test.py --embed I tried compiling test.c to test.exe again using the command line: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat x86 # (not shown) cd to test.c directory cl.exe /nologo /Ox /MD /W3

libthrift-0.9.1.so: cannot open shared object file: No such file or directory

▼魔方 西西 提交于 2019-12-11 13:38:40
问题 I have installed thrift 0.9.1 using the git repository. After building thrift I started the precompiled cpp Server and and the php client. This precompiled examples worked fine. Now I am trying to compile my own cpp Server by following this tutorial (http://wiki.apache.org/thrift/ThriftUsageC++). I used: g++ -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -Wall -I/usr/local/include/thrift *.cpp -L/usr/local/lib -lthrift -o something to compile the server which worked without errors. When I execute the

create mail template with $compile in angularjs

馋奶兔 提交于 2019-12-11 13:11:23
问题 I have a large html file with some css in it. This html forms the body for follow up email after filling in a form. The way it is implemented now, is by string concatenation, which I don't like. The new html email body is also larger. I figured I could do it using angulars $compile function but I cant get it to work correctly. This is the link to the plunk. I have tried this (which is the current state of the plunk) and also the answer of this question. The completed and 'interpolated'

std::sort and std::unique problem with a struct

被刻印的时光 ゝ 提交于 2019-12-11 13:08:21
问题 The following code: #include <vector> #include <algorithm> struct myStructDim { int nId; int dwHeight; int dwWidth; }; void main() { ::std::vector<myStructDim> m_vec_dim; ::std::sort(m_vec_dim.begin(), m_vec_dim.end()); m_vec_dim.erase( ::std::unique(m_vec_dim.begin(), m_vec_dim.end()), m_vec_dim.end() ); } will not compile with many errors, such as: error C2784: 'bool std::operator ==(const std::vector<_Ty,_Alloc> &,const std::vector<_Ty,_Alloc> &)' : could not deduce template argument for

Can't import collections because of missing <collection.py>

五迷三道 提交于 2019-12-11 12:58:39
问题 I spent a few days to make python run on an arm board. Then I succeed to install Django on it, too. But when I used django-admin.py to start a project, error came out: [root@FriendlyARM /]# django-admin.py Traceback (most recent call last): File "/usr/bin/django-admin.py", line 2, in <module> from django.core import management File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line 1, in <module> import collections ImportError: No module named collections So it's