另一个九天航模社
存在于Terra之上的另一个九天航模社
  • Home
  • Nichijou
  • Nijigen

《自制编程语言》在Windows下的修正

3/1/2014

0 Comments

 
书已拿到好久,写的也是非常好。只是在调试代码的时候因为系统的原因遇到一些小错误,然后就被虐待的很久,为了方便大家,把我的解决方案写出来。
关于crowbar book_ver0.1的makefile文件有若干小错误:
1、makefile的22行:
……
$(TARGET):$(OBJS)
        cd .\memory; $(MAKE);
        cd .\debug; $(MAKE);
……
23行和24行在这里老是提示“找不到指定的目录”,可能我的make的版本不支持在这个位置这样书写(大概原因是这个版本是给Linux用的)?修改成如此—--
         $(MAKE) -C memory
         $(MAKE) -C debug
参数C一定是大写,开始写成小写了……
或者写成
         cd .\memory && $(MAKE)
         cd .\debug && $(MAKE)
这大概就是Windows下的不同吧~
2、clean参数下的命令使用了rm,这是一个Linux下的命令,改为del命令正常~
0 Comments

    Author

    Write something about yourself. No need to be fancy, just an overview.

    Archives

    March 2014
    January 2014
    December 2013

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.