【发布时间】:2019-03-19 01:46:03
【问题描述】:
我用 Eclipse 用 C++ 编写了一个程序。如果我构建它并在我的机器上运行它,它工作正常。但是,如果我将它发送给没有 SDL 框架的人,它就不起作用。我的机器和另一台无法使用它的机器是mac。我需要更改哪些内容来构建我的程序?
Eclipse 中的构建控制台只是这样说:
00:14:23 **** Incremental Build of configuration Release for project Salsa Kit ****
make all
Building file: ../src/main.cpp
Invoking: Cross G++ Compiler
g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.cpp"
Finished building: ../src/main.cpp
Building target: Salsa Kit.app
Invoking: Cross G++ Linker
g++ -L/Library/Frameworks/SDL2.framework -L/Library/Frameworks/SDL2_image.framework -framework SDL2 -framework Cocoa -framework SDL2_image -o "Salsa Kit.app" ./src/engine/SE.o ./src/engine/SE_Audio.o ./src/engine/SE_Graphics.o ./src/engine/SE_Input.o ./src/main.o
Finished building target: Salsa Kit.app
00:14:26 Build Finished. 0 errors, 0 warnings. (took 3s.139ms)
【问题讨论】: