g++选项,从 Mac 到 cygwin
我正在尝试使用 sh make-simple.sh
从 cygwin 运行此代码一个名为 make-simple.sh 的文件 该文件包含编译 main.cpp 文件所需的以下代码,
#!/bin/bash
g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I/usr/include/nite -I/usr/include/ni -DXN_SSE -o Release/main.o ../SingleControl/main.cpp
g++ -o ./SingleControl ./Release/main.o ./Release/signal_catch.o ./Release/kbhit.o -arch i386 -arch x86_64 -L../Bin -lOpenNI -lXnVNite
我认为这仅适用于 Mac。是否可以使用 cygwin 使其在 Windows 下工作?
谢谢。
I am trying to run this code a file called make-simple.sh from cygwin with sh make-simple.sh
This file contains the following code needed to compile a main.cpp file
#!/bin/bash
g++ -c -arch i386 -arch x86_64 -O3 -fno-tree-pre -fno-strict-aliasing -DNDEBUG -msse3 -mssse3 -I/usr/include/nite -I/usr/include/ni -DXN_SSE -o Release/main.o ../SingleControl/main.cpp
g++ -o ./SingleControl ./Release/main.o ./Release/signal_catch.o ./Release/kbhit.o -arch i386 -arch x86_64 -L../Bin -lOpenNI -lXnVNite
I think that this works only on Mac. Is it possible to make it work under Windows with cygwin?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仅传递单个
-arch
值。编辑:或者更好,根本没有。像这样:
Pass only a single
-arch
value.EDIT: or better, none at all. Like this: