我正在使用Yacc和Lex進行項目工作。我正在使用Anjuta IDE進行該任務,並且遇到了Autotools的問題。我無法構建我的源代碼,因爲我的文件需要由Yacc生成的標題。我如何確保Yacc在編譯過程的其他部分之前完成其工作。Automake Yacc問題
0
A
回答
1
您需要添加您的lex和yacc文件作爲依賴關係,以便使會讓他們:
foo_SOURCES : foo_main.c foo.y foo.l
或類似的東西。更多細節將會有所幫助。
0
如果您有一個由Yacc的-d
選項生成的頭文件,您應該在BUILT_SOURCES
中列出它,以便在編譯任何其他源文件之前構建它。
甲Makefile.am
可能看起來像
BUILT_SOURCES = parser.h
AM_YFLAGS = -d
bin_PROGRAMS = foo
foo_SOURCES = ... parser.y ...
(此示例來自the Automake manual逐字拷貝。)
相關問題
- 1. Yacc範圍問題
- 2. AUTOMAKE條件編譯問題
- 3. automake和連接問題
- 4. yacc shift減少問題
- 5. Flex和Yacc語法問題
- 6. yacc/lex的基本問題
- 7. Ubuntu問題設置autoconf和automake
- 8. 這個yacc文件有什麼問題?
- 9. 窗口上lex/yacc的問題
- 10. Lex和Yacc問題與評論
- 11. 使用yyin與yacc文件的問題
- 12. Automake - 安裝版本'automake-1.14.1'的難度
- 13. 混合C++和Objective-C(懷疑Automake問題)
- 14. 問題與automake的鏈接的lib和libtool
- 15. 編譯lex/yacc項目時遇到問題
- 16. 問題的Yacc文件鏈接到符號表
- 17. YACC語法:運算符優先級問題
- 18. Yacc的問題:決定未來非終端
- 19. .emacs,automake和cmake
- 20. Automake:覆蓋DEFAULT_INCLUDES
- 21. 在YACC
- 22. automake依賴關係
- 23. 在automake的
- 24. gengetopt及Automake
- 25. automake和庫
- 26. YACC:不能從法yytext中值YACC
- 27. yacc未能減少(Python Lex-Yacc)
- 28. 不能在Automake的
- 29. 安裝automake 1.14時,glib2 build找不到automake 1.13
- 30. (的automake,libtool的)建立的automake在不同的目錄