通过cygwin编译时出错 [英] Error while compiling through cygwin

查看:99
本文介绍了通过cygwin编译时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将cygwin用于64位Windows,但在编译Makefile时却遇到此错误

I am using cygwin for 64 bit Windows but while compiling a makefile I end up with this error

/bin/sh: -c: line 0: syntax error near unexpected token `('

我该怎么办?

推荐答案

只是猜测:您在Makefile中使用了bashisms,但是没有设置外壳(/bin/sh 报告错误).只是陈述

Just guessing: you use bashisms in your Makefile, but don't set the shell (/bin/sh reports the error). Just state

SHELL := /bin/bash

位于Makefile的顶部.

at the top of the Makefile.

这篇关于通过cygwin编译时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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