如何在make之后运行.o文件

 美猴qing_243 发布于 2023-01-19 13:58

我一直试图从https://github.com/rinon/Simple-Homomorphic-Encryption运行一个c ++程序

正如README我在运行以下命令中指定的那样,

make

make test

make demo

现在,我的目录中有以下文件,

zakirhussain@zakirhussain-K52F:~/Simple-Homomorphic-Encryption$ ls
circuit.cpp             demo_vote_counter.cpp  fully_homomorphic.cpp  main.o                 security_settings.h     test_suite.o  utilities.o
circuit.h               demo_vote_counter.h    fully_homomorphic.h    makefile               security_settings.o     type_defs.h
circuit.o               demo_vote_counter.o    fully_homomorphic.o    README                 test_fully_homomorphic  utilities.c
demo_fully_homomorphic  fully_homomorphic      main.cpp               security_settings.cpp  test_suite.cpp          utilities.h

有人可以帮助我运行demo_vote_counter.o文件吗?

2 个回答
  • 您无法运行.o文件.这是一个目标文件,必须链接到最终的可执行文件中.甲.o文件通常缺乏附加的库,其在该连接阶段加入.

    看着你outoput我假设的一个demo_fully_homomorphic,test_fully_homomorphic或者fully_homomorphic是你可以运行可执行文件.

    2023-01-19 14:01 回答
  • 一个目标文件.o)是不可执行的。您要运行./demo_fully_homomorphic(例如,不带扩展名的文件)。确保您具有执行权限(chmod a+x demo_fully_homomorphic)。

    2023-01-19 14:01 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有