missing seperator error when [make all]

https://stackoverflow.com/questions/16931770/makefile4-missing-separator-stop

makefile has a very stupid relation with tabs , all actions of every rule are identified by tabs ...... and No 4 spaces dont make a tab , only a tab makes a tab...

to check i use the command cat -e -t -v  makefile_name

it shows the presence of tabs with ^I and line endings with $ both are vital to ensure that dependencies end properly and tabs mark the action for the rules so that they are easily identifiable to the make utility.....

example :

Kaizen ~/so_test $ cat -e -t -v  mk.t
all:ll$      ## here the $ is end of line ...
$
ll:ll.c   $
^Igcc  -c  -Wall -Werror -02 c.c ll.c  -o  ll  [email protected]  $<$
## the ^I above means a tab was there before the action part, so this lines ok .
 $
clean :$
   \rm -fr ll$
## see here there is no ^I which means , tab is not present ....
## in this case you need to open the file again and edit/ensure a tab
## starts the action part

321
down vote

accepted

makefile has a very stupid relation with tabs , all actions of every
rule are identified by tabs ...... and No 4 spaces dont make a tab ,
only a tab makes a tab...

to check i use the command cat -e -t -v makefile_name

it shows the presence of tabs with ^I and line endings with $ both
are vital to ensure that dependencies end properly and tabs mark the
action for the rules so that they are easily identifiable to the make
utility.....

example :

时间: 2024-08-06 03:35:47

missing seperator error when [make all]的相关文章

Ubuntu 13.10 PHP 5.5.x mcrypt missing – Fatal Error: Undefined function mcrypt_encrypt()!

[原文]http://www.tuicool.com/articles/goto?id=myM7veR I had updgraded my Ubuntu from 13.04 to 13.10 last week and everything went quite good. The only problems that I faced as developer are: Apache 2.4 was not working with default previous installation

[pr2_issue] pr2_dashboard IBPS missing, smart battery missing, c2 CPU missing, clock error

Hi all, I'm Zeon. Recently I got problems reported by pr2_dashboard such as IBPS 0-3 missing, smart battery 0.0-0.3  1.1-1.3  2.0-2.3  3.0-3.3 missing, c2 CPU Temperature & usage & HD Temperature missing, joystick stale, laser stale, clocks error.

error C2143: syntax error : missing &#39;;&#39; before &#39;{&#39;

这是我在实现哈夫曼树的时候,遇到的错误,具体为什么我也不清楚!!!因为这是我用学校实验室的电脑编译出现的错误(用的软件是VC6.0,贼老的版本!!!),我自己的是Code Blocks(没有出错)??? 代码如下: for ( i = 1; i <= n; i++ ) { huffNode HT[i](w[i],0,0,0);//初始化前n个节点(构造哈夫曼树的原始节点) } 然后,就有错了(-_-!) error C2057: expected constant expression erro

Eclipse - Mac Os Default JRE missing

转:http://stackoverflow.com/questions/1736993/eclipse-mac-os-default-jre-missing 1) Follow Joshua's answer: "Help->Install New Software... Select: Galileo -http://download.eclipse.org/releases/galileo Under Programming Languages choose: Eclipse Jav

ubuntu 15.04 64bit 下 steam无法启动

首先查看steam日志,在/tmp/dumps/下,以“用户名_output.txt”命名. $ cat /tmp/dumps/liuxu_output.txt Running Steam on ubuntu 15.10 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception handler for appid(steam)/version(1457636973) libGL error: unabl

android内核剖析学习笔记:AMS(ActivityManagerService)内部原理和工作机制

一.ActivityManagerService提供的主要功能: (1)统一调度各应用程序的Activity (2)内存管理 (3)进程管理 二.启动一个Activity的方式有以下几种: (1)在应用程序中调用startActivity启动指定的Activity (2)在Home程序中单击一个应用图标,启动新的Activity (3)按"Back"键,结束当前Activity,返回到上一个Activity (4)长按"Home"键,显示出当前正在运行的程序列表,从

Mycat+MySQL 主从复制

一.主从复制搭建(新环境5.6.33)1.设置复制Master配置信息 [mysqld] #repl master库 server-id=6 log-bin=E:\MySQL\4306\logbin\mysql-bin max_binlog_size=100M binlog-format=MIXED 2.启动Master实例3.Master实例上创建一个用于复制的帐户 mysql> use `mysql`; mysql> GRANT REPLICATION SLAVE ON *.* TO 'r

第一部分:为2440 制作自己的任意版本的交叉编译器

第一部分  安装交叉编译工具链 使用crosstool-0.43制作交叉编译工具链,随着gcc版本的增高,正确的制作已不太可能,crosstool-0.43制之后不再有更新,因此这个选用的是nt-ng工具制作交叉编译工具链. 1.nt-ng的安装 Crostool很多年不在维护了,下面尝试一下使用crosstool的下一代 crosstool-ng 具体使用说明见: http://www.crifan.com/files/doc/docbook/crosstool_ng/release/html

Xamarin.Android之绑定库教程

下面是我收集的常用的错误代码,绑定的时候,不只是错误需要处理,警告也是尽可能处理,不然会出现很多类丢失的情况 必备工具: 1.JD-GUI 能直接查看jar包里面的类结构 很多情况下,需要知道一个文件到底是类还是接口,才能写Metadata.xml文件 1.Class is not abstract and does not override abstract method 接口中存在泛型T,generator会将T自动转换成Java.Lang.Object类型,而子类实现的,并不是该类型,必须