构建 Sqlite 模块时 cl.exe 错误 D8003(缺少源文件名) [英] cl.exe error D8003 (missing source filename) when building a Sqlite module

查看:50
本文介绍了构建 Sqlite 模块时 cl.exe 错误 D8003(缺少源文件名)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载并解压了https://sqlite.org/2016/sqlite-src-3110100.zip.然后,当尝试构建为 DLL 时,扩展 spellfix(尽管它在 Linux 上工作)与:

I downloaded and unziped https://sqlite.org/2016/sqlite-src-3110100.zip. Then when trying to build as a DLL the extension spellfix (it works on Linux though) with:

call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
cd sqlite-src-3110100
cl /I"src\" ext\misc\spellfix.c /link

我明白了:

cl : Command line error D8003 : missing source filename

为什么?

推荐答案

你应该尝试:

cl /I <path to sqlite amalgation> <path-to-spellfix.c> /link /DLL /OUT:spellfix.dll

这篇关于构建 Sqlite 模块时 cl.exe 错误 D8003(缺少源文件名)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆