
[英]How to compile this dll using SDL with MinGW?
好吧,我已经在这个 fork 上工作了一年多了,这个东西不想在运行在 Windows 10 上的 x86-64 mingw 上编译为 dll。我正在按照原始说明进行操作: https://github.com/ kometbomb/klystron/wiki/libksnd#compiling-t ...
[英]How to compile this dll using SDL with MinGW?
好吧,我已经在这个 fork 上工作了一年多了,这个东西不想在运行在 Windows 10 上的 x86-64 mingw 上编译为 dll。我正在按照原始说明进行操作: https://github.com/ kometbomb/klystron/wiki/libksnd#compiling-t ...
[英]Why does Makefile re-compile when source file copied from other directory
我的 Makefile 有 为什么每次我将源文件从 other_dir 复制到当前工作目录时都会编译 object 文件 hello.o ...
[英]How to "write" a makefile which performs actions locally then on the SSH connected VM?
我发现了一个新堆栈(Python/Flask、Makefile、Pip...),而不是我常用的 Node/Express、Npm、package.json...)。 抱歉,如果我的问题有点愚蠢。 我目前正在我的虚拟机上写一个Makefile复制( scp )文件...... ...然后在同一个V ...
[英]makefile is hiding the output but when i run command directly it shows full output
当我在没有 make 命令的情况下运行命令时,我得到这个 output 但是我使用make watch运行命令我只有这个 使用 makefile 运行命令时如何打印完整的 output 这是 Makefile ...
[英]Makefile: reading environment variables from `.env`
我想检查以下是否是从.env中的 .env 读取环境变量的正确/可接受的方式。 Makefile: .env的内容: 我还尝试使用另一种方法——引入init目标并在执行run-mysql-database之前调用它。 但是这种方法不起作用: 错误: make: source: No such f ...
[英]Is there a better way to write my makefile?
我有这个 makefile 这是我的工作区: 现在 makefile 已经构建了一切,我得到了一个错误 当我尝试重新制作时,我需要删除所有内容,因为它只检查 UI_Button.o 并说它是最新的,即使我更改了它不想重建的任何其他 .hpp 或 .cpp 文件。 有什么方法可以修复这两个错误吗? ...
[英]error: no C99 compiler found, eudev requires a C99 compiler
我在 buildroot 的 menuconfig 上配置后执行命令“make”,然后出现此错误。 它在我启用 eudev 时出现。 有人能帮我吗??? 当我执行 gcc --std=c99 时,output 是:gcc:致命错误:没有输入文件编译终止。 ...
[英]g++: error: unrecognized command-line option '--cflags' g++: error: unrecognized command-line option '--libs`'
我在尝试执行 mingw32-make 时遇到了这些错误: g++: error: unrecognized command-line option '--cflags' g++: error: unrecognized command-line option '--libs ” makefi ...
[英]How to automatically compile linked libraries in CMake when building an executable?
我有几个项目(git repos),每个项目都依赖于一些库(还有 git repos)。 每个项目只有一个目标可执行文件和来自其他存储库的链接库。 我的文件结构: 这是libraryX中的一个示例CMakeLists.txt文件: 目前我正在手动构建每个库,它生成*.so文件,然后我 go 到项目 ...
[英]Makefile multiple definition error when adding extern variable
我在 C 项目的 makefile 上遇到了问题(我不完全知道如何编写 makefile...) 这是我的项目文件夹的简单树: 我们必须有: program_1、program_2 和 main 需要 useful_func main 需要编译的 program_1 和 program_2 我最 ...
[英]Fortran error: (.text+0x0): multiple definition of
我试图将我的 Fortran 模块包含在一个广泛的库中,该库也是在 Fortran 中编写的。要编译和安装这个库,使用了 autotools 套件。 我制作了一个Makefile来单独编译(在另一个目录中并在此处解释)我的模块并检查它们是否运行良好。 测试成功。 然而,当我试图将它们与这个庞大的图书 ...
[英]Why is my print command executed twice in this Makefile?
作为记录,我是根据 Single Unix 规范的下一个修订版(即第 8 版)编写的, make命令预计会包含一些新的更改。 我的制作文件如下: 目标是,每当我键入make时,它都会通过将当前时间戳的第二部分作为 makefile 变量插入包含文件来重新制作main可执行文件,然后在编译命令行上将 ...
[英]How to change path in the commands of Makefile
题如果有一个命令必须在给定路径上运行,我该如何更改 makefile 中的路径? 示例说明例如,我的项目文件夹( D:\proj )的结构如下所示 test.py的内容如下import sys cur_path = sys.path[0] print("Current path:%s" %cur_ ...
[英]using .rodata and -fPIE in compliation
我是一名正在上计算机结构课程的学生,我有一个用汇编和 C 编写的作业。我发现了一个我不太明白的问题。 我们得到了一个用于运行该程序的 makefile,当连接到我们学校的服务器时,它可以按预期工作。 尝试在我的个人计算机上使用相同的 makefile 时出现问题。 其中一个程序集文件(随着我继续工 ...
[英]Makefile execute command only if other command returns results
我有一个 makefile 这个目标: 我想调用这个命令: 只有当这返回一些东西时: 我尝试了几种无效的语法,例如: 这 3 个示例给我错误,我还没有看到其他适用于我的用例的方法。 任何帮助,将不胜感激 ...
[英]Unexpected End of File
我在Ubunt18.04.5 LTS中下载了iasl 20190509版本。 当我使用“make iasl”命令构建包时,我收到此错误:$ make iasl make[1]: Entering directory 'acpica-unix2-20190509/generate/unix/iasl ...
[英]Unable to compile a CMake project which fetches two dependencies and one of them depends on the other, why?
我有以下问题。 我正在尝试编译一个依赖于两个库的项目: SFML和Thor ,后者依赖于前者。 在我的主要CMakeLists.txt中,我通过以下方式获取这些依赖项: SFML抓取的CMakeLists如下: Thor获取的是另一个: 问题是编译时出现以下错误: 你知道发生了什么事吗? 谢谢 ...
[英][Solved]SDL2 symbol(s) not found when linking
我使用 cmake 来组织我的项目,这是我的 CMakeLists.txt: 然后我使用了 cmake 命令,效果很好,如下所示: 但是当我尝试在构建目录中运行 make 时,结果如下: 我猜这是由链接问题引起的,我确实在 StackOverFlow 上找到了一些答案,但它们对我不起作用,这让我困惑 ...
[英]Automating GCC Compiler arguments to create easier compilations - Windows OS?
目标当我从根目录运行命令: gcc -ggdb -std=c99 -Wall -Werror hello.c -lcs50 -o test.exe我能够构建 test.exe 文件,当我运行 test.exe 时,一切都是好吧(感谢Manohar Reddy Poreddy 的这篇文章) 然而,所 ...
[英]How to make a Fortran Makefiles with object files (.o) and a share library (.so)?
我对 Makefile 的世界完全陌生。 我试着按照一些教程来制作我自己的 makefile。 在我发现的示例中,没有对包含目标文件 (.o) 和共享库 (.so) 的情况进行处理。 所以,我试图激发灵感,但我对如何制作 Fortran 联编文件的理解似乎有所欠缺。 我从一个与我通常在终端上使用的 ...