小编has*_*981的帖子

使用visual-studio 2010为Windows7 64编译OpenEXR失败

我在使用CMake为Windows 7构建OpenEXR时遇到问题.

我按照这里描述的方向

运行cmake命令后的cmd输出如下:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

D:\openexr-2.2.0>setlocal

D:\openexr-2.2.0>cmake -DZLIB_ROOT="C:\Program Files\zlib" -DILMBASE_PACKAGE_PREFIX="d:\ilmbase-2.2.0\builds" -DCMAKE_INSTALL_PREFIX="d:\openexr-2.2.0" -G "Visual Studio 10 Win64" ..\openexr-2.2.0
-- The C compiler identification is MSVC 16.0.40219.1
-- The CXX compiler identification is MSVC 16.0.40219.1
-- Check for working C compiler using: Visual Studio 10 Win64
-- Check for working C compiler using: Visual Studio 10 Win64 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler …
Run Code Online (Sandbox Code Playgroud)

c++ cmake visual-studio-2010 openexr visual-c++

9
推荐指数
1
解决办法
4572
查看次数

Scala Slick编译的查询相当于"select*from table where word in in(words)"

我的问题是:如何创建一个等效于以下SQL的Slick编译查询:

select * from table where word in ('word1', 'word2', 'word3')
Run Code Online (Sandbox Code Playgroud)

我目前坚持使用的代码如下所示:

val findByWords = Compiled { words: Set[String] =>
  keywords.filter(_.word inSet words)
}
Run Code Online (Sandbox Code Playgroud)

编译时,我收到以下错误:

Computation of type Set[String] => slick.lifted.Query[com.company.business.db.CensoredKeyWords,com.company.business.db.CensoredKeyWords#TableElementType,Seq] cannot be compiled (as type C)
val findByWords = Compiled { words: Set[String] =>
                           ^

请注意,箭头指向大括号.

我正在使用Slick 3.2.1.Scala 2.12.3

scala slick

1
推荐指数
1
解决办法
240
查看次数

标签 统计

c++ ×1

cmake ×1

openexr ×1

scala ×1

slick ×1

visual-c++ ×1

visual-studio-2010 ×1